Skip to Content
kosemdocs
ReferenceAPIEnvironments

List built in images

Lists kosem's built-in images, which kosem prepares for every project on kosem-managed machines. An environment whose image is one of these starts from kosem's prepared copy without any setup, and the copy doesn't count against your quotas. Self-hosted runners pull these images from their registry directly.

GET
/v1/images

Lists kosem's built-in images, which kosem prepares for every project on kosem-managed machines.

An environment whose image is one of these starts from kosem's prepared copy without any setup, and the copy doesn't count against your quotas. Self-hosted runners pull these images from their registry directly.

Authorization

bearer
headerAuthorizationBearer <token>

An access token, or an API key.

Query Parameters

parent?string

Optional organization or project resource name (organizations/{organization_id} or projects/{project_id}) to count environments running each version within that scope. Requires environments.images.list on the parent.

Response Body

OK

application/json
  1. response
images*array<>

Images, oldest first for custom images and in catalog order for built-in images.

nextPageToken*string

Token for the next page; empty on the last page.

Example Request
curl -X GET 'https://api.kosem.ai/v1/images'
Example Response
{
  "images": [
    {
      "availability": {
        "allProjects": true,
        "projects": [
          "string"
        ]
      },
      "builtIn": true,
      "checkTime": "2019-08-24T14:15:22Z",
      "createTime": "2019-08-24T14:15:22Z",
      "description": "string",
      "displayName": "string",
      "followTag": true,
      "keepVersions": 0,
      "name": "string",
      "refreshReason": "string",
      "registry": "string",
      "source": "string",
      "state": "PREPARING",
      "stateReason": "string",
      "updateTime": "2019-08-24T14:15:22Z",
      "user": "string",
      "versions": [
        {
          "arches": [
            "string"
          ],
          "createTime": "2019-08-24T14:15:22Z",
          "digest": "string",
          "environments": 0,
          "prepareTime": "2019-08-24T14:15:22Z",
          "sizeBytes": 0
        }
      ]
    }
  ],
  "nextPageToken": "string"
}