v5

latestOpenAPI 3.1.02026-07-31151195455.5 KB
resources

Returns all the scoped role permissions that apply to the given resource. Only OPAL_SCOPED_ROLE resource type supports this field.

get/resources/{resource_id}/scoped-role-permissions

Path parameters

resource_idstring uuid required

The ID of the resource whose scoped role permissions belong to.

Response

The role permissions that this Opal Scoped Role has.

Example response

{
  "permissions": [
    {
      "target_ids": [
        "a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1",
        "8294e9c9-deb6-48e9-9c99-da2a1e04a87f"
      ],
      "target_type": "RESOURCE",
      "permission_name": "READ"
    }
  ]
}