Skip to Content
kosemdocs
ReferenceAPIEnvironments

Create registry request

Asks a project's organization to share a registry covering an image or an address. It names no registry, so that a project learns nothing of what its organization doesn't share with it. Asking again while a request waits returns that request.

POST
/v1/projects/{project}/registry-requests

Asks a project's organization to share a registry covering an image or an address.

It names no registry, so that a project learns nothing of what its organization doesn't share with it. Asking again while a request waits returns that request.

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

Request Body

application/json
  1. body
address*string

An image, such as ghcr.io/acme/devbox:1, or a registry's address, such as ghcr.io/acme.

Length1 <= length <= 512

Response Body

Created

application/json
  1. response
address*string

What it asked for, as a registry's prefix would name it, such as ghcr.io/acme/devbox.

createTime*string

When it was asked.

Formatdate-time
decideTime?string

When it was decided.

Formatdate-time
name*string

Resource name, organizations/{organization_id}/registry-requests/{request_id}.

project*string

The project that asked, projects/{project_id}.

registry?string

The registry shared with the project, once approved.

requester*string

Who asked, as a member such as user:usr_….

state*string

PENDING until an Owner decides.

Value in"PENDING""APPROVED""DECLINED"
Example Request
curl -X POST 'https://api.kosem.ai/v1/projects/string/registry-requests' \
  -H 'Content-Type: application/json' \
  -d '{
  "address": "string"
}'
Example Response
{
  "address": "string",
  "createTime": "2019-08-24T14:15:22Z",
  "decideTime": "2019-08-24T14:15:22Z",
  "name": "string",
  "project": "string",
  "registry": "string",
  "requester": "string",
  "state": "PENDING"
}