Skip to Content
kosemdocs
ReferenceAPIEnvironments

List environment access requests

Lists just-in-time access requests opened by a standalone environment, newest first.

GET
/v1/projects/{project}/environments/{environment}/accessRequests

Lists just-in-time access requests opened by a standalone environment, newest first.

Authorization

bearer
headerAuthorizationBearer <token>

An access token, or an API key.

Path Parameters

project*string

The project's ID.

Match^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$
environment*string

The environment's ID.

Match^env_[0-7][0-9a-hjkmnp-tv-z]{25}$

Query Parameters

state?string

Optional filter by request state.

Value in"""PENDING""APPROVED""DENIED""EXPIRED"

Response Body

OK

application/json
  1. response
requests*array<>

Access requests for the environment, newest first.

Example Request
curl -X GET 'https://api.kosem.ai/v1/projects/string/environments/string/accessRequests'
Example Response
{
  "requests": [
    {
      "createTime": "2019-08-24T14:15:22Z",
      "environment": "string",
      "expireTime": "2019-08-24T14:15:22Z",
      "grantId": "string",
      "id": "string",
      "note": "string",
      "reason": "string",
      "requestedProvider": "string",
      "requestedScope": {
        "property1": null,
        "property2": null
      },
      "requestedTarget": "string",
      "resolveTime": "2019-08-24T14:15:22Z",
      "resolvedAlias": "string",
      "resolvedExpireTime": "2019-08-24T14:15:22Z",
      "resolvedProvider": "string",
      "resolvedScope": {
        "property1": null,
        "property2": null
      },
      "resolvedTarget": "string",
      "resolver": "string",
      "state": "PENDING",
      "targetKind": ""
    }
  ]
}