Listing Images
/v2/imagesList virtual machine images.
Request
Query parameters
created_atstringSpecify 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.
limitintegerRequests a page size of items. Use with marker for pagination.
markerstringThe ID of the last-seen item for pagination.
member_statusstringFilters by member status. Valid values: accepted, pending, rejected, all. Default is accepted.
namestringFilter by image name.
os_hiddenbooleanWhen true, include images marked as hidden. New in version 2.7.
ownerstringFilter by project (tenant) ID; shows images shared by the specified owner.
protectedbooleanFilter by protected property. Valid values: true, false. Any other value returns 400.
size_maxstringMaximum image size (bytes).
size_minstringMinimum image size (bytes).
statusintegerFilter by image status (e.g. active).
tagstringFilter by tag value. Can be repeated; queries are conjunctive (images must contain all specified tags).
updated_atstringSpecify a comparison filter based on the date and time when the resource was last modified. Format: ISO 8601.
visibilitystringFilter by visibility. Valid values: public, private, community, shared, all. If omitted, the response shows public, private, and shared images with member status accepted.
sort_dirstringSort direction: asc or desc. Default direction is desc.
sort_keystringSort by attribute (e.g. name, id, updated_at). Default is created_at.
sortstringCombined sort key and direction. Multiple pairs allowed, comma-separated. Example: sort=name:asc,status:desc.
Example request
- cURL
- HTTP
curl -ks -H 'Content-Type: application/json' \
-H 'X-Auth-Token: gAAAAA<...>' \
https://api.vietnix.cloud:9292/v2/images
GET https://api.vietnix.cloud:9292/v2/images
Response
Parameters
imagesarrayrequiredA list of image objects.
firststringrequiredThe URI for the first page of response.
nextstringrequiredThe URI for the next page of response. Not present on the last page.
schemastringrequiredThe URL for the schema describing a virtual machine image.
Common fields inside each image object:
idstringrequiredImage ID.
namestringrequiredHuman-readable image name.
statusstringrequiredImage status (e.g. active).
visibilitystringrequiredVisibility (public, private, shared, ...).
ownerstringrequiredProject (tenant) ID that owns the image.
sizeintegerrequiredImage size in bytes.
min_ramintegerrequiredMinimum RAM required (MB).
min_diskintegerrequiredMinimum disk required (GB).
created_atstringrequiredCreation time (ISO 8601).
updated_atstringrequiredLast update time (ISO 8601) or null.
protectedbooleanrequiredWhether the image is protected.
tagsarrayrequiredA list of tag strings.
checksumstringrequiredImage checksum.
disk_formatstringrequiredDisk format (e.g. qcow2, raw).
container_formatstringrequiredContainer format (e.g. bare).
os_typestringrequiredOS type (e.g. linux).
os_distrostringrequiredOS distribution.
os_hash_algostringrequiredHash algorithm used (e.g. sha512).
os_hash_valuestringrequiredHash value.
filestringrequiredURL path to the image file (relative to the API).
direct_urlstringrequiredDirect 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 Code | Description |
|---|---|
| 200 - OK | Request was successful. |
Error
| Status Code | Description |
|---|---|
| 400 - Bad Request | Some content in the request was invalid. |
| 401 - Unauthorized | User must authenticate before making a request. |
| 403 - Forbidden | Policy does not allow current user to do this operation. |