chi.image

The chi.image module exposes a functional interface for interacting with disk images.

chi.image.get_image(ref)[source]

Get an image by its ID or name.

Parameters:

ref (str) – The ID or name of the image.

Returns:

The image matching the ID or name.

Raises:

NotFound – If the image could not be found.

chi.image.get_image_id(name)[source]

Look up an image’s ID from its name.

Parameters:

name (str) – The name of the image.

Returns:

The ID of the found image.

Raises:

ValueError – If the image could not be found, or if multiple images matched the name.

chi.image.list_images()[source]

List all images under the current project.

Returns:

All images associated with the current project.