1
0

get-connector-api.asciidoc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. [[get-connector-api]]
  2. === Get connector API
  3. ++++
  4. <titleabbrev>Get connector</titleabbrev>
  5. ++++
  6. beta::[]
  7. .New API reference
  8. [sidebar]
  9. --
  10. For the most up-to-date API details, refer to {api-es}/group/endpoint-connector[Connector APIs].
  11. --
  12. Retrieves the details about a connector.
  13. To get started with Connector APIs, check out <<es-connectors-tutorial-api, our tutorial>>.
  14. [[get-connector-api-request]]
  15. ==== {api-request-title}
  16. `GET _connector/<connector_id>`
  17. [[get-connector-api-prereq]]
  18. ==== {api-prereq-title}
  19. * To sync data using self-managed connectors, you need to deploy the <<es-connectors-deploy-connector-service,Elastic connector service>>. on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
  20. [[get-connector-api-path-params]]
  21. ==== {api-path-parms-title}
  22. `<connector_id>`::
  23. (Required, string)
  24. [[get-connector-api-response-codes]]
  25. ==== {api-response-codes-title}
  26. `400`::
  27. The `connector_id` was not provided.
  28. `404` (Missing resources)::
  29. No connector matching `connector_id` could be found.
  30. [[get-connector-api-example]]
  31. ==== {api-examples-title}
  32. The following example gets the connector `my-connector`:
  33. ////
  34. [source,console]
  35. --------------------------------------------------
  36. PUT _connector/my-connector
  37. {
  38. "index_name": "search-google-drive",
  39. "name": "Google Drive Connector",
  40. "service_type": "google_drive"
  41. }
  42. --------------------------------------------------
  43. // TESTSETUP
  44. [source,console]
  45. --------------------------------------------------
  46. DELETE _connector/my-connector
  47. --------------------------------------------------
  48. // TEARDOWN
  49. ////
  50. [source,console]
  51. ----
  52. GET _connector/my-connector
  53. ----