get-connector-sync-job-api.asciidoc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [[get-connector-sync-job-api]]
  2. === Get connector sync job API
  3. ++++
  4. <titleabbrev>Get connector sync job</titleabbrev>
  5. ++++
  6. beta::[]
  7. Retrieves the details about a connector sync job.
  8. To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].
  9. [[get-connector-sync-job-api-request]]
  10. ==== {api-request-title}
  11. `GET _connector/_sync_job/<connector_sync_job_id>`
  12. [[get-connector-sync-job-api-prereq]]
  13. ==== {api-prereq-title}
  14. * To sync data using self-managed connectors, you need to deploy the {enterprise-search-ref}/build-connector.html[Elastic connector service] on your own infrastructure. This service runs automatically on Elastic Cloud for native connectors.
  15. [[get-connector-sync-job-api-path-params]]
  16. ==== {api-path-parms-title}
  17. `<connector_sync_job_id>`::
  18. (Required, string)
  19. [[get-connector-sync-job-api-response-codes]]
  20. ==== {api-response-codes-title}
  21. `400`::
  22. The `connector_sync_job_id` was not provided.
  23. `404` (Missing resources)::
  24. No connector sync job matching `connector_sync_job_id` could be found.
  25. [[get-connector-sync-job-api-example]]
  26. ==== {api-examples-title}
  27. The following example gets the connector sync job `my-connector-sync-job`:
  28. [source,console]
  29. ----
  30. GET _connector/_sync_job/my-connector-sync-job
  31. ----
  32. // TEST[skip:there's no way to clean up after creating a connector sync job, as we don't know the id ahead of time. Therefore, skip this test.]