引用端點

可以通過向以下對象發出GET請求來列出所有權限和資源類型的名稱: /acl/reference 端點。 然後,這些名稱可用於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: {ORG_ID}'

回應

成功的響應返回 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"
    ],
    "...": [
      "..."
    ]
  }
}

本頁內容