70 lines
4.0 KiB
Plaintext
70 lines
4.0 KiB
Plaintext
[[reference-connector-put]]
|
|
|
|
////////
|
|
===========================================================================================================================
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|
|
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|
|
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|
|
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|
|
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|
|
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|
|
|| ||
|
|
|| ||
|
|
|| 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> ||
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
===========================================================================================================================
|
|
////////
|
|
|
|
[discrete]
|
|
=== client.connector.put
|
|
|
|
Create or update a connector.
|
|
|
|
{ref}/create-connector-api.html[{es} documentation]
|
|
|
|
[discrete]
|
|
==== Function signature
|
|
|
|
[source,ts]
|
|
----
|
|
(ConnectorPutRequest, options?): Promise<ConnectorPutResponse>
|
|
----
|
|
|
|
[discrete]
|
|
===== `ConnectorPutRequest`
|
|
|
|
[source,ts]
|
|
----
|
|
interface ConnectorPutRequest extends <<shared-type-request-base, RequestBase>> {
|
|
connector_id?: <<shared-type-id, Id>>
|
|
description?: string
|
|
index_name?: <<shared-type-index-name, IndexName>>
|
|
is_native?: boolean
|
|
language?: string
|
|
name?: string
|
|
service_type?: string
|
|
}
|
|
----
|
|
|
|
[discrete]
|
|
===== `ConnectorPutResponse`
|
|
|
|
[source,ts]
|
|
----
|
|
interface ConnectorPutResponse {
|
|
result: <<shared-type-result, Result>>
|
|
id: <<shared-type-id, Id>>
|
|
}
|
|
----
|
|
|