获取 synchronizationJob
命名空间:microsoft.graph
重要
Microsoft Graph版本下的 /beta API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。
检索现有同步作业及其属性。
权限
要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限。
| 权限类型 | 权限(从最低特权到最高特权) |
|---|---|
| 委派(工作或学校帐户) | Directory.Read.All |
| 委派(个人 Microsoft 帐户) | 不支持。 |
| 应用程序 | Application.ReadWrite.OwnedBy、Directory.ReadWrite.All |
HTTP 请求
GET /servicePrincipals/{id}/synchronization/jobs/{jobId}/
请求标头
| 名称 | 类型 | 说明 |
|---|---|---|
| Authorization | string | Bearer {token}。必需。 |
请求正文
请勿提供此方法的请求正文。
响应
如果成功,在 200 OK 响应正文中返回 synchronizationJob 响应。
示例
请求
请求示例如下所示。
GET https://graph.microsoft.com/beta/servicePrincipals/{id}/synchronization/jobs/{jobId}/
响应
响应示例如下所示。
注意: 为了提高可读性,可能缩短了此处显示的响应对象。
HTTP/1.1 200 OK
Content-type: application/json
{
"id": "{jobId}",
"templateId": "BoxOutDelta",
"schedule": {
"expiration": null,
"interval": "P10675199DT2H48M5.4775807S",
"state": "Disabled"
},
"status": {
"countSuccessiveCompleteFailures": 0,
"escrowsPruned": false,
"synchronizedEntryCountByType": [],
"code": "Paused",
"lastExecution": null,
"lastSuccessfulExecution": null,
"progress": [],
"lastSuccessfulExecutionWithExports": null,
"steadyStateFirstAchievedTime": "0001-01-01T00:00:00Z",
"steadyStateLastAchievedTime": "0001-01-01T00:00:00Z",
"quarantine": {
"currentBegan": "",
"nextAttempt": "",
"reason": "",
"seriesBegan": "",
"seriesCount": 2,
"error": {
"code": "SalesforceInvalidCredentials",
"message": "Your Salesforce.com credentials are invalid. Please obtain a current Salesforce.com administrative user name, password and security token, and enter those in the screen for configuring user provisioning",
"tenantActionable": true
}
},
"troubleshootingUrl": null
},
"synchronizationJobSettings": [
{
"name": "QuarantineTooManyDeletesThreshold",
"value": "500"
}
]
}
反馈
提交和查看相关反馈