同步化¶
本节介绍数据和元数据的提取和推送。
数据值推送¶
要将数据值推送到远程服务器,必须首先配置 系统设置 > 中相关服务器的 URL 和凭据 同步,然后向以下资源发出 POST 请求:
/ api / 33 / synchronization / dataPush
元数据拉取¶
要从远程 JSON 文档中启动元数据拉取,您可以创建一个 使用 url 作为请求负载的 POST 请求到以下资源:
/ api / 33 / synchronization / metadataPull
{
"name": "User account expiry alert",
"type": "ACCOUNT_EXPIRY_ALERT",
"cronExpression": "0 0 2 ? * *",
"nextExecutionTime": "2023-03-15T02:00:00.000",
"status": "SCHEDULED",
"enabled": true,
"configurable": false,
"sequence": [
{
"id": "fUWM1At1TUx",
"name": "User account expiry alert",
"type": "ACCOUNT_EXPIRY_ALERT",
"cronExpression": "0 0 2 ? * *",
"nextExecutionTime": "2023-03-15T02:00:00.000",
"status": "SCHEDULED"
}
]
}
Most notably the sequence has only a single item. Information on top level object and the object in the sequence both originate from the job configuration.
可用性检查¶
检查远程数据服务器的可用性并验证用户 您可以向以下资源发出 GET 请求:
/ api / 33 /同步/可用性