Skip to main content

Listing Images

GET/v2/images

List virtual machine images.

Request​

Query parameters​

created_atstring

Specify a comparison filter based on the date and time when the resource was created. Format: ISO 8601 (e.g. 2015-08-27T09:49:58-05:00). If time zone is omitted UTC is assumed.

limitinteger

Requests a page size of items. Use with marker for pagination.

markerstring

The ID of the last-seen item for pagination.

member_statusstring

Filters by member status. Valid values: accepted, pending, rejected, all. Default is accepted.

namestring

Filter by image name.

os_hiddenboolean

When true, include images marked as hidden. New in version 2.7.

ownerstring

Filter by project (tenant) ID; shows images shared by the specified owner.

protectedboolean

Filter by protected property. Valid values: true, false. Any other value returns 400.

size_maxstring

Maximum image size (bytes).

size_minstring

Minimum image size (bytes).

statusinteger

Filter by image status (e.g. active).

tagstring

Filter by tag value. Can be repeated; queries are conjunctive (images must contain all specified tags).

updated_atstring

Specify a comparison filter based on the date and time when the resource was last modified. Format: ISO 8601.

visibilitystring

Filter by visibility. Valid values: public, private, community, shared, all. If omitted, the response shows public, private, and shared images with member status accepted.

sort_dirstring

Sort direction: asc or desc. Default direction is desc.

sort_keystring

Sort by attribute (e.g. name, id, updated_at). Default is created_at.

sortstring

Combined sort key and direction. Multiple pairs allowed, comma-separated. Example: sort=name:asc,status:desc.

Example request​

curl -ks -H 'Content-Type: application/json' \
-H 'X-Auth-Token: gAAAAA<...>' \
https://api.vietnix.cloud:9292/v2/images

Response​

Parameters​

imagesarrayrequired

A list of image objects.

firststringrequired

The URI for the first page of response.

nextstringrequired

The URI for the next page of response. Not present on the last page.

schemastringrequired

The URL for the schema describing a virtual machine image.

Common fields inside each image object:

idstringrequired

Image ID.

namestringrequired

Human-readable image name.

statusstringrequired

Image status (e.g. active).

visibilitystringrequired

Visibility (public, private, shared, ...).

ownerstringrequired

Project (tenant) ID that owns the image.

sizeintegerrequired

Image size in bytes.

min_ramintegerrequired

Minimum RAM required (MB).

min_diskintegerrequired

Minimum disk required (GB).

created_atstringrequired

Creation time (ISO 8601).

updated_atstringrequired

Last update time (ISO 8601) or null.

protectedbooleanrequired

Whether the image is protected.

tagsarrayrequired

A list of tag strings.

checksumstringrequired

Image checksum.

disk_formatstringrequired

Disk format (e.g. qcow2, raw).

container_formatstringrequired

Container format (e.g. bare).

os_typestringrequired

OS type (e.g. linux).

os_distrostringrequired

OS distribution.

os_hash_algostringrequired

Hash algorithm used (e.g. sha512).

os_hash_valuestringrequired

Hash value.

filestringrequired

URL path to the image file (relative to the API).

direct_urlstringrequired

Direct URL to the image file, if available.

Sample Response​

Response body
{
"images": [
{
"os_distro": "fedora42",
"os_admin_user": "root",
"hci_allow_set_password": "True",
"image_validated": "yes",
"name": "Fedora-42-x64",
"disk_format": "qcow2",
"container_format": "bare",
"visibility": "public",
"size": 2189361152,
"virtual_size": 5368709120,
"status": "active",
"checksum": "b372bf54310cc7015035bb45f3867520",
"protected": false,
"min_ram": 0,
"min_disk": 5,
"owner": "a430f930af8e47d7a1820a477129c343",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "8d4281f665bce5594f7f485df224e21c48362d42019f2dfe17c1a4c9086dbfd43a8725cd06809d3582d30d88e887c6da623f8e16c211c242acf61d5bcfd6e6af",
"id": "5f8ee89a-de28-4d4d-9a96-707b0393ee37",
"created_at": "2025-10-02T08:30:39Z",
"updated_at": "2025-10-02T08:44:31Z",
"direct_url": "file:///mnt/vstorage/vols/datastores/glance/5f8ee89a-de28-4d4d-9a96-707b0393ee37",
"tags": [],
"self": "/v2/images/5f8ee89a-de28-4d4d-9a96-707b0393ee37",
"file": "/v2/images/5f8ee89a-de28-4d4d-9a96-707b0393ee37/file",
"schema": "/v2/schemas/image"
}
]
}

Status codes​

Success​

Status CodeDescription
200 - OKRequest was successful.

Error​

Status CodeDescription
400 - Bad RequestSome content in the request was invalid.
401 - UnauthorizedUser must authenticate before making a request.
403 - ForbiddenPolicy does not allow current user to do this operation.