elasticsearch/docs/reference/connector/docs/_connectors-create-native.asciidoc

38 lines
1.1 KiB
Text

[discrete#es-connectors-{service-name-stub}-create-use-the-ui]
==== Use the UI
To create a new {service-name} connector:
. Navigate to the *Search -> Connectors* page in the Kibana UI.
. 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.