New

The executive guide to generative AI

Read more

获取连接器同步作业 API

编辑

获取连接器同步作业 API

编辑

此功能处于 Beta 阶段,可能会发生更改。其设计和代码不如正式 GA 功能成熟,按原样提供,不提供任何保证。Beta 功能不受正式 GA 功能的支持 SLA 约束。

检索有关连接器同步作业的详细信息。

要开始使用连接器 API,请查看我们的教程

请求

编辑

GET _connector/_sync_job/<connector_sync_job_id>

先决条件

编辑
  • 要使用自托管连接器同步数据,您需要在您自己的基础设施上部署 Elastic 连接器服务。此服务在 Elastic Cloud 上为 Elastic 托管连接器自动运行。

路径参数

编辑
<connector_sync_job_id>
(必需,字符串)

响应代码

编辑
400
未提供 connector_sync_job_id
404 (缺少资源)
找不到与 connector_sync_job_id 匹配的连接器同步作业。

示例

编辑

以下示例获取连接器同步作业 my-connector-sync-job

resp = client.perform_request(
    "GET",
    "/_connector/_sync_job/my-connector-sync-job",
)
print(resp)
response = client.connector.sync_job_get(
  connector_sync_job_id: 'my-connector-sync-job'
)
puts response
const response = await client.transport.request({
  method: "GET",
  path: "/_connector/_sync_job/my-connector-sync-job",
});
console.log(response);
GET _connector/_sync_job/my-connector-sync-job
Was this helpful?
Feedback