參照端點

通過向/acl/reference端點發出GET請求,可以列出所有權限和資源類型的名稱。 然後,這些名稱可用於檢視目前使用者之有效原則的API呼叫。

權限是通過Adobe Admin Console管理的策略,映射到零個或多個資源類型策略。 資源類型是一種策略,可為特定類型的Platform資源(如資料集或方案)啟用讀、寫和/或刪除功能。

API格式

GET /acl/reference

要求

curl -X GET \
  https://platform.adobe.io/data/foundation/access-control/acl/reference \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {IMS_ORG}'

回應

成功的響應返回permissions對象和resource-types對象,每個對象分別包含訪問權限或資源類型的完整名稱清單。

{
  "permissions": {
    "export-audience-for-segment": {
      "segments": [
        "read"
      ]
    },
    "manage-datasets": {
      "connection": [
        "read",
        "write",
        "delete"
      ],
      "datasets": [
        "read",
        "write",
        "delete"
      ]
    }
    {"..."}
  },
  "resource-types": {
    "classes": [
      "read",
      "write",
      "delete"
    ],
    "connection": [
      "read",
      "write",
      "delete"
    ],
    "data-types": [
      "read",
      "write",
      "delete"
    ],
    "...": [
      "..."
    ]
  }
}

本頁內容