mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
38 lines
1.3 KiB
Text
38 lines
1.3 KiB
Text
[discrete#es-connectors-{service-name-stub}-create-use-the-ui]
|
|
==== Use the UI
|
|
|
|
To create a new {service-name} connector:
|
|
|
|
. In the Kibana UI, navigate to the *Search -> Content -> Connectors* page from the main menu, or use the {kibana-ref}/kibana-concepts-analysts.html#_finding_your_apps_and_objects[global search field].
|
|
. Follow the instructions to create a new native *{service-name}* connector.
|
|
|
|
For additional operations, see <<es-connectors-usage>>.
|
|
|
|
[discrete#es-connectors-{service-name-stub}-create-use-the-api]
|
|
==== Use the API
|
|
|
|
You can use the {es} {ref}/connector-apis.html[Create connector API] to create a new native {service-name} connector.
|
|
|
|
For example:
|
|
|
|
[source, console,subs="+attributes"]
|
|
----
|
|
PUT _connector/my-{service-name-stub}-connector
|
|
{
|
|
"index_name": "my-elasticsearch-index",
|
|
"name": "Content synced from {service-name}",
|
|
"service_type": "{service-name-stub}",
|
|
"is_native": true
|
|
}
|
|
----
|
|
// TEST[skip:can't test in isolation]
|
|
|
|
.You'll also need to *create an API key* for the connector to use.
|
|
|
|
[%collapsible]
|
|
===================================
|
|
include::_connectors-create-native-api-key.asciidoc[]
|
|
===================================
|
|
|
|
Refer to the {ref}/connector-apis.html[{es} API documentation] for details of all available Connector APIs.
|
|
|