v4

latestOpenAPI 3.1.02026-08-02261331761.5 KB
Access Requests (EAP)

List Access Requests

get/v2/facts/{proj_id}/{env_id}/access_requests/{elements_config_id}/user/{user_id}/tenant/{tenant_id}

Path parameters

tenant_idstring required

Either the unique id of the tenant, or the URL-friendly key of the tenant (i.e: the "slug").

Either the unique id of the tenant, or the URL-friendly key of the tenant (i.e: the "slug").

user_idstring required

Either the unique id of the user, or the URL-friendly key of the user (i.e: the "slug").

Either the unique id of the user, or the URL-friendly key of the user (i.e: the "slug").

elements_config_idstring required

Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").

Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").

proj_idstring required

Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").

Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").

env_idstring required

Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

Query parameters

status'pending' | 'approved' | 'denied' | 'canceled'

An enumeration.

Optional status filter, will only return access requests with this status.

rolestring

Optional role filter, will only return access request granted with that role.

Optional role filter, will only return access request granted with that role.

resourcestring

Optional resource filter, will only return access request granted in that resource.

Optional resource filter, will only return access request granted in that resource.

pageinteger

Page number of the results to fetch, starting at 1.

Page number of the results to fetch, starting at 1.

per_pageinteger

The number of results per page (max 100).

The number of results per page (max 100).

resource_instance_idstring

For ReBAC Elements, the resource instance ID or key to work on

For ReBAC Elements, the resource instance ID or key to work on

Response

Successful Response

total_countinteger required
page_countinteger

Example response

{
  "data": [
    {
      "requesting_user_id": "1c1e4ada-f282-40e6-b3b7-20b3a51c93b5",
      "access_request_details": {
        "tenant": "34f5c98e-f430-457b-a812-92637d0c6fd0",
        "resource": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
        "resource_instance": "2d98d9f8-e1b7-4f1d-baad-2edbf6fa6c66",
        "role": "ac4e70c8-d5be-48af-93eb-760f58fc91a9"
      },
      "reason": "string",
      "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
      "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
      "environment_id": "40ef0e48-a11f-4963-a229-e396c9f7e7c4",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "status": "pending",
      "type": "access_request",
      "requesting_user_email": "john@example.com",
      "requesting_user_first_name": "John",
      "requesting_user_last_name": "Doe"
    }
  ]
}