Skip to Content
kosemdocs
ReferenceAPIEnvironments

List environment grants

Lists the access profiles and secrets granted to a standalone environment.

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

Lists the access profiles and secrets granted to a standalone environment.

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}$

Response Body

OK

application/json
  1. response
grants*array<>

Grants assigned to the environment, oldest first.

Example Request
curl -X GET 'https://api.kosem.ai/v1/projects/string/environments/string/grants'
Example Response
{
  "grants": [
    {
      "alias": "string",
      "createTime": "2019-08-24T14:15:22Z",
      "expireTime": "2019-08-24T14:15:22Z",
      "grantor": "string",
      "id": "string",
      "lastUsedTime": "2019-08-24T14:15:22Z",
      "provider": "string",
      "scope": {
        "property1": null,
        "property2": null
      },
      "target": "string",
      "targetKind": "ACCESS_PROFILE",
      "useCount": 0
    }
  ]
}