Registries
Container registry logins for private images.
Every path is under /api/v1; see the API for authenticating, errors and rate
limits, and the schemas for the bodies.
The organization's image registries, without logins (org:read)
GET /api/v1/orgs/{org}/registries
| Parameter | In | Description |
|---|---|---|
org |
path | ID |
Answers:
200: OK, object with the fields below
| Field | Type | Description |
|---|---|---|
can_write |
boolean, required | The caller may add, change, test and delete these registries. |
registries |
array of Registry, required |
Errors: 404 (how errors look).
Add an organization registry or change it; new logins are tested first (registry:write)
PUT /api/v1/orgs/{org}/registries/{name}
| Parameter | In | Description |
|---|---|---|
org |
path | ID |
name |
path | string |
Body (application/json): RegistryInput.
Answers:
Errors: 400, 403, 404, 422 (how errors look).
Delete an organization registry and its logins (registry:write)
DELETE /api/v1/orgs/{org}/registries/{name}
| Parameter | In | Description |
|---|---|---|
org |
path | ID |
name |
path | string |
Answers:
204: Deleted
Errors: 403, 404 (how errors look).
Test an organization registry's saved logins again and keep the result (registry:write)
POST /api/v1/orgs/{org}/registries/{name}/test
| Parameter | In | Description |
|---|---|---|
org |
path | ID |
name |
path | string |
Answers:
200: OK, RegistryTest
Errors: 403, 404, 422 (how errors look).
The project's own image registries, without logins (project:read)
GET /api/v1/projects/{project}/registries
| Parameter | In | Description |
|---|---|---|
project |
path | ID |
Answers:
200: OK, object with the fields below
| Field | Type | Description |
|---|---|---|
can_write |
boolean, required | The caller may add, change, test and delete these registries. |
registries |
array of Registry, required |
Errors: 404 (how errors look).
Add a project registry or change it; new logins are tested first (registry:write)
PUT /api/v1/projects/{project}/registries/{name}
| Parameter | In | Description |
|---|---|---|
project |
path | ID |
name |
path | string |
Body (application/json): RegistryInput.
Answers:
Errors: 400, 403, 404, 422 (how errors look).
Delete a project registry and its logins (registry:write)
DELETE /api/v1/projects/{project}/registries/{name}
| Parameter | In | Description |
|---|---|---|
project |
path | ID |
name |
path | string |
Answers:
204: Deleted
Errors: 403, 404 (how errors look).
Test a project registry's saved logins again and keep the result (registry:write)
POST /api/v1/projects/{project}/registries/{name}/test
| Parameter | In | Description |
|---|---|---|
project |
path | ID |
name |
path | string |
Answers:
200: OK, RegistryTest
Errors: 403, 404, 422 (how errors look).