v4

latestOpenAPI 3.1.02026-08-02261331761.5 KB
Operation Approval (EAP)

List Operation Approvals

get/v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/operation_approval

Path parameters

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").

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").

Query parameters

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

An enumeration.

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

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.

resource_instancestring

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

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

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).

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"
      },
      "reason": "I need to create a new transfer for my client",
      "org_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
      "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
      "env_id": "40ef0e48-a11f-4963-a229-e396c9f7e7c4",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "status": "approved",
      "reviewer_user_id": "1b287364-14ff-4b72-8953-b40399093a6f",
      "reviewed_at": "2019-08-24T14:15:22Z",
      "reviewer_comment": "transfer for a new client",
      "type": "operation_approval",
      "requesting_user_email": "maya@permit.io",
      "requesting_user_first_name": "Maya",
      "requesting_user_last_name": "Barak",
      "resource_key": "transfer",
      "resource_instance_key": "38462985692"
    }
  ]
}