Search...nnector(3pm)

πŸ“¦
version 8.12 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Okay bestie, welcome to the Search...nnector(3pm) page β€” yes, the name got a lil truncated, we don't talk about it πŸ™ˆ β€” this is your client for creating and managing Elastic connectors, no cap.


✨ VERSION ✨

version 8.12 β€” that's the one, that's the vibe πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So the connector and sync jobs API is literally your bestie for creating and managing Elastic connectors and sync jobs inside an internal index. Iconic behaviour honestly. 🫢

This API is the alternative to just... relying solely on the Kibana UI for connector and sync job management. It comes with a whole set of validations and assertions to make sure the state representation in the internal index stays valid. She's got boundaries, and honestly? Respect. πŸ’―

The full documentation for the Eql feature lives here, go be nosy:

https://www.elastic.co/guide/en/elasticsearch/reference/master/connector-apis.html

Also, and this is important: it does Search::Elasticsearch::Role::Client::Direct. 🌸


πŸŽ€ METHODS πŸŽ€

put()

$response = $e->connector->put(
    connector_id => "my-connector",
    body => {
        index_name => "search-google-drive",
        name => "My Connector",
        service_type => "google_drive"
    }
);

The put() method creates a connector. That's it, that's the whole job. Main character energy, minimal effort, ate. ✨


πŸ‘‘ AUTHOR πŸ‘‘

Enrico Zimuel <enrico.zimuel@elastic.co> β€” the author, the moment, the legend. πŸ‘‘


This software is Copyright (c) 2024 by Elasticsearch BV.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004

And that's a wrap, bestie 🎬 β€” this lil masterpiece was brought to you by perl v5.38.2, dated 2024-02-04, and lives in the Search...nnector(3pm) manual. Go forth and connect some connectors. Slay πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from