Skip to navigation

Get an image and its builds

Returns the image and the status of its build on each vendor. Poll it after POST /v1/images until every build is ready or failed. A failed build carries the reason in error.

Scope: sandboxes.

Authentication

AuthorizationBearer

A Meadow API key, sent as Authorization: Bearer mdw_.... The header x-api-key: mdw_... is accepted in its place.

Path parameters

image_idstringRequired

The image id returned by POST /v1/images.

Response headers

x-request-idstringOptional

Meadow’s id for this request, req_ and 24 hex characters. Every response carries it, including errors, streams and unknown routes. Every error in the Error schema repeats it as request_id. Quote it when you report a problem.

Response

The image.
idstring

Pass as image_id on POST /v1/sandboxes.

buildslist of objects
One entry per provider the image has been built on, or is building on.
created_atdatetime
When the image was first created.
project_idstringOptional
The project the image belongs to.
statusenumOptional
  • active: the image can be used.
  • deleting: DELETE /v1/images/{image_id} was called and a vendor image is still being removed. A deleting image cannot start a sandbox. Posting the same Dockerfile again builds a new image with a new id.
  • deleted: shown only on an image with vendor_copies_may_remain, which stays readable. Any other deleted image returns 404.
Allowed values:
vendor_copies_may_remainlist of enumsOptional

Vendors where Meadow stopped trying to delete its copy of this image, so a copy may still exist there. Absent when there are none. See DELETE /v1/images/{image_id}. An active image can carry it too: a rebuild removes the previous build’s vendor image under the same rule. Deleting such an image later returns 200, not 204, and it stays readable as deleted.

Allowed values:
namestring or nullOptional
The label given at create. Null when none was given.
sha256stringOptional
Hash of the Dockerfile text and build context. Two images with the same hash in one project are the same image.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error