Get all connector sync jobs
Beta; Added in 8.12.0
Get information about all stored connector sync jobs listed by their creation date in ascending order.
Query parameters
-
from
number Starting offset (default: 0)
-
size
number Specifies a max number of results to get
-
status
string A sync job status to fetch connector sync jobs for
Values are
canceling
,canceled
,completed
,error
,in_progress
,pending
, orsuspended
. -
connector_id
string A connector id to fetch connector sync jobs for
-
job_type
string | array[string] A comma-separated list of job types to fetch the sync jobs for
Values are
full
,incremental
, oraccess_control
.
GET
/_connector/_sync_job
Console
GET _connector/_sync_job?connector_id=my-connector-id&size=1
resp = client.connector.sync_job_list(
connector_id="my-connector-id",
size="1",
)
const response = await client.connector.syncJobList({
connector_id: "my-connector-id",
size: 1,
});
response = client.connector.sync_job_list(
connector_id: "my-connector-id",
size: "1"
)
$resp = $client->connector()->syncJobList([
"connector_id" => "my-connector-id",
"size" => "1",
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_connector/_sync_job?connector_id=my-connector-id&size=1"