Claim a connector sync job Technical preview
This action updates the job status to in_progress
and sets the last_seen
and started_at
timestamps to the current time.
Additionally, it can set the sync_cursor
property for the sync job.
This API is not intended for direct connector management by users. It supports the implementation of services that utilize the connector protocol to communicate with Elasticsearch.
To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
Path parameters
-
The unique identifier of the connector sync job.
Body Required
-
sync_cursor object
The cursor object from the last incremental sync job. This should reference the
sync_cursor
field in the connector state for which the job runs.Additional properties are allowed.
-
The host name of the current system that will run the job.
curl \
-X PUT http://api.example.com/_connector/_sync_job/{connector_sync_job_id}/_claim \
-H "Content-Type: application/json" \
-d '{"sync_cursor":{},"worker_hostname":"string"}'
{
"sync_cursor": {},
"worker_hostname": "string"
}
{}