Skip to main content
GET
/
resources
/
{resource_id}
/
non-human-identities
cURL
curl --request GET \
  --url https://api.opal.dev/v1/resources/{resource_id}/non-human-identities \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "principal_id": "74908af0-9383-4feb-b7ea-8b305d737338",
      "principal_type": "RESOURCE",
      "entity_id": "db04925a-635d-4764-870e-500b9b035c8e",
      "entity_type": "RESOURCE",
      "expiration_date": "2022-01-23T04:56:07.000Z",
      "has_direct_access": true,
      "num_access_paths": 3
    },
    {
      "principal_id": "d940df34-726a-4403-864e-16cb2a0d6793",
      "principal_type": "RESOURCE",
      "entity_id": "c26cd16c-a3fa-4b82-96b1-32177f8b8f59",
      "entity_type": "RESOURCE",
      "expiration_date": "2022-01-23T04:56:07.000Z",
      "has_direct_access": true,
      "num_access_paths": 3
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

resource_id
string<uuid>
required

The ID of the resource.

Query Parameters

limit
integer

Limit the number of results returned.

Response

200 - application/json

List of non-human identities with access to this resource.

results
object[]