mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
54 lines
1.5 KiB
Text
54 lines
1.5 KiB
Text
[[get-connector-sync-job-api]]
|
|
=== Get connector sync job API
|
|
++++
|
|
<titleabbrev>Get connector sync job</titleabbrev>
|
|
++++
|
|
|
|
beta::[]
|
|
|
|
.New API reference
|
|
[sidebar]
|
|
--
|
|
For the most up-to-date API details, refer to {api-es}/group/endpoint-connector[Connector APIs].
|
|
--
|
|
|
|
Retrieves the details about a connector sync job.
|
|
|
|
To get started with Connector APIs, check out <<es-connectors-tutorial-api, our tutorial>>.
|
|
|
|
|
|
[[get-connector-sync-job-api-request]]
|
|
==== {api-request-title}
|
|
|
|
`GET _connector/_sync_job/<connector_sync_job_id>`
|
|
|
|
[[get-connector-sync-job-api-prereq]]
|
|
==== {api-prereq-title}
|
|
|
|
* 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.
|
|
|
|
[[get-connector-sync-job-api-path-params]]
|
|
==== {api-path-parms-title}
|
|
|
|
`<connector_sync_job_id>`::
|
|
(Required, string)
|
|
|
|
[[get-connector-sync-job-api-response-codes]]
|
|
==== {api-response-codes-title}
|
|
|
|
`400`::
|
|
The `connector_sync_job_id` was not provided.
|
|
|
|
`404` (Missing resources)::
|
|
No connector sync job matching `connector_sync_job_id` could be found.
|
|
|
|
[[get-connector-sync-job-api-example]]
|
|
==== {api-examples-title}
|
|
|
|
The following example gets the connector sync job `my-connector-sync-job`:
|
|
|
|
[source,console]
|
|
----
|
|
GET _connector/_sync_job/my-connector-sync-job
|
|
----
|
|
// 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.]
|