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
}
]
}Gets the list of non-human identities with access to this resource.
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
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the resource.
Limit the number of results returned.
List of non-human identities with access to this resource.
Show child attributes
The ID of the principal with access.
"1b978423-db0a-4037-a4cf-f79c60cb67b3"
The type of an entity.
GROUP, RESOURCE, USER "GROUP"
The ID of the entity being accessed.
"1b978423-db0a-4037-a4cf-f79c60cb67b3"
The type of an entity.
GROUP, RESOURCE, USER "GROUP"
The principal has direct access to this entity (vs. inherited access).
true
The number of ways in which the principal has access to this entity (directly and inherited).
3
The AccessLevel object is used to represent the level of access that a principal has. The "default" access
level is a AccessLevel object whose fields are all empty strings.
View the AccessLevel of a resource/user or resource/group pair to see the level of access granted to the resource.
Show child attributes
{
"access_level_name": "AdminRole",
"access_level_remote_id": "arn:aws:iam::590304332660:role/AdministratorAccess"
}The day and time the principal's access will expire.
"2022-01-23T04:56:07.000Z"
Was this page helpful?