更新 externalOriginResourceConnector

命名空间:microsoft.graph

重要

Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

更新 externalOriginResourceConnector 对象的属性。

API 可用性

此 API 可用于以下国家级云部署。

全局服务 美国政府 L4 美国政府 L5 (DOD) 由世纪互联运营的中国
✅ ❌ ❌ ❌

权限

为此 API 选择标记为最低特权的权限。 只有在应用需要它时,才使用更高的特权权限。 有关委派权限和应用程序权限的详细信息,请参阅权限类型。 要了解有关这些权限的详细信息,请参阅 权限参考。

权限类型 最低特权权限 更高特权权限
委派(工作或学校帐户) EntitlementManagement.ReadWrite.All 不可用。
委派(个人 Microsoft 帐户) 不支持。 不支持。
应用程序 EntitlementManagement.ReadWrite.All 不可用。

提示

对于使用工作或学校帐户的委派访问权限,必须通过以下选项之一为登录用户分配具有受支持角色权限的管理员角色:

  • 一个 Microsoft Entra 角色 ,其中最小特权角色是 标识治理管理员。 这是特权最低的选项。

在仅限应用的情况下,可为调用应用分配上述支持的角色之一,而不是 EntitlementManagement.ReadWrite.All 应用程序权限。 Identity Governance 管理员角色的特权EntitlementManagement.ReadWrite.All低于应用程序权限。

有关详细信息,请参阅 权利管理中的委派和角色以及如何 将 访问治理委托给权利管理中的访问包管理员。

HTTP 请求

PATCH /identityGovernance/entitlementManagement/externalOriginResourceConnectors/{externalOriginResourceConnectorId}

请求标头

名称 说明
Authorization 持有者 {token}。 必填。 详细了解 身份验证和授权。
Content-Type application/json. 必需。

请求正文

在请求正文中, 仅 提供要更新的属性的值。 请求正文中未包含的现有属性会保留其以前的值,或者会根据其他属性值的更改重新计算。

下表指定可更新的属性。

属性 类型 说明
displayName String 连接器的显示名称。 可选。
description String 连接器的说明。 可选。
connectorType connectorType 连接符的类型。 连接器类型可以是 SAP Cloud Identity Access Governance (sapIag) 或 SAP Augmented 访问控制 (sapAc) 。 可能的值包括 sapIag、sapAc、unknownFutureValue。 可选。
connectionInfo connectionInfo 用于与外部资源系统通信的连接信息。 可选。

响应

如果成功,此方法将在响应正文中返回 200 OK 响应代码和更新的 externalOriginResourceConnector 对象。

示例

请求

以下示例显示了一个请求。

PATCH https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/externalOriginResourceConnectors/e363ebb8-6faa-4980-ac5b-eefc196e1cd4
Content-Type: application/json

{
  "id": "d743fe46-80f8-41b1-a2ee-7796e024edb9",
  "connectorType": "sapIag",
  "displayName": "SAP IAG 5.0",
  "description": "SAP IAG 5.0.0.0.0",
  "connectionInfo": {
    "@odata.type": "Microsoft.IGAELM.EC.FrontEnd.ExternalModel.externalTokenBasedSapIagConnectionInfo",
    "url": "https://IAGINTGORG-iag-intg-space-java-rest-arqapi.cfps.sap.hana.ondemand.com",
    "keyVaultName": "sap-key-vault",
    "subscriptionId": "caa5v042-9c76-44de-9e84-f3e3071a7b4e",
    "resourceGroup": "test-rg",
    "accessTokenUrl": "https://entra-intg-l4nds6yn.authentication.sap.hana.ondemand.com/oauth/token",
    "clientId": "sb-8d896b-72b5-46ce-9273-471874a09137!b133623|iagapi-iag-intg-space!b11378",
    "secretName": "clienecret"
  }
}

响应

以下示例显示了相应的响应。

注意:为了提高可读性,可能缩短了此处显示的响应对象。

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#identityGovernance/entitlementManagement/externalOriginResourceConnector/$entity",
  "@odata.type": "#microsoft.graph.externalOriginResourceConnector",
  "id": "e363ebb8-6faa-4980-ac5b-eefc196e1cd",
  "displayName": "SAP Identity Access Governance Connector Test",
  "description": "SAP Identity Access Governance Connector test",
  "connectorType": "sapIag",
  "connectionInfo": {
    "@odata.type": "microsoft.graph.externalTokenBasedSapIagConnectionInfo",
              "url": "dev.test",
              "accessTokenUrl": "9e90019f-6256-41fa-a225-5ef9cc1d9bf8",
              "clientId": "e9ad8b1d-959c-4e86-8ba2-2cbf4d14bc29",
              "keyVaultName": "Keyvault",
              "secretName": "Test",
              "subscriptionId": "5ee98b73-d9df-43a7-8a92-36855054bdee",
              "resourceGroup": "SAPIAG Group"
  },
  "createdBy": "kayat@contoso.com",
  "createdDateTime": "2025-10-29T09:50:23Z",
  "modifiedBy": "kayat@contoso.com",
  "modifiedDateTime": "2025-12-04T01:10:28Z"
}