Files
elasticsearch-js/docs/reference/connector-update_index_name.asciidoc
2024-12-05 14:47:29 -06:00

72 lines
4.1 KiB
Plaintext

[[reference-connector-update_index_name]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
++++
<style>
.lang-ts a.xref {
text-decoration: underline !important;
}
</style>
++++
[[client.connector.updateIndexName]]
== client.connector.updateIndexName
Update the connector index name. Update the `index_name` field of a connector, specifying the index where the data ingested by the connector is stored.
{ref}/update-connector-index-name-api.html[{es} documentation]
[discrete]
== Function signature
[source,ts]
----
(ConnectorUpdateIndexNameRequest, options?): Promise<ConnectorUpdateIndexNameResponse>
----
[discrete]
=== Request
[source,ts,subs=+macros]
----
interface ConnectorUpdateIndexNameRequest extends <<RequestBase>> {
connector_id: <<Id>>
index_name: <<SpecUtilsWithNullValue>><<<IndexName>>>
}
----
[discrete]
=== Response
[source,ts,subs=+macros]
----
interface ConnectorUpdateIndexNameResponse {
result: <<Result>>
}
----