Showing image details
/v2/images/{image_id}Show details of an image with the specified ID.
Request
Path parameters
image_idstringrequiredThe UUID of the image.
Example request
- cURL
- HTTP
curl -ks -H 'Content-Type: application/json' \
-H 'X-Auth-Token: gAAAAA<...>' \
https://api.vietnix.cloud:9292/v2/images/9775d86a-8bf8-4200-a4b5-d892e931e8f6
GET https://api.vietnix.cloud:9292/v2/images/{image_id}
Response
Parameters
checksumstringrequiredHash used over the image data. May be null.
container_formatenumrequiredFormat of the image container (e.g. ami, ari, aki, bare, ovf, ova, docker). May be null.
created_atstringrequiredDate/time when the resource was created (ISO 8601).
disk_formatenumrequiredDisk format (e.g. qcow2, raw, vmdk, vhd). May be null.
filestringrequiredThe URL for the virtual machine image file (relative path).
idstringrequiredImage UUID.
min_diskintegerrequiredAmount of disk space in GB required to boot the image. May be null.
min_ramintegerrequiredAmount of RAM in MB required to boot the image. May be null.
namestringrequiredThe name of the image. May be null.
os_hash_algostringrequiredAlgorithm used to compute secure hash for the image (new in 2.7). May be null.
os_hash_valuestringrequiredHexdigest of the secure hash computed using os_hash_algo (new in 2.7). May be null.
os_hiddenbooleanrequiredIf true, image is hidden from default image-list responses (new in 2.7).
ownerstringrequiredIdentifier for the owner (project/tenant ID). May be null.
protectedbooleanrequiredIf true, image cannot be deleted.
schemastringrequiredURL for the image schema.
selfstringrequiredThe URL for the virtual machine image.
sizeintegerrequiredSize of the image data in bytes. May be null.
statusstringrequiredImage status (e.g. active).
tagsarrayrequiredList of tags for this image, possibly empty.
updated_atstringrequiredDate/time when the resource was updated (ISO 8601) or null.
virtual_sizeintegerrequiredVirtual size of the image. May be null.
visibilitystringrequiredImage visibility (e.g. public, private, shared).
direct_urlstringDirect URL to the image file in external store. Present only if show_image_direct_url is enabled on the Image service.
locationsarrayArray of location objects (each contains url and metadata) when show_multiple_locations is enabled on the Image service.
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. |
| 404 - Not Found | The requested resource could not be found. |
Example response
Response body
{
"image_validated": "yes",
"name": "alpine",
"disk_format": "qcow2",
"container_format": "bare",
"visibility": "shared",
"size": 120061952,
"virtual_size": 127926272,
"status": "active",
"checksum": "7625f1f6a355d3a042a1f39b79ab3513",
"protected": false,
"min_ram": 0,
"min_disk": 1,
"owner": "f33507157a634f1cac71e06a70fb558e",
"os_hidden": false,
"os_hash_algo": "sha512",
"os_hash_value": "d0eec0ffc7c1c60dd1c3f42a653086825b3e4ddcf07f49475c31e35da53c5e3c0df7e962c6d570591c3d5e2f8587aef54e1b40a016d944bca3cbaedec8f7f213",
"id": "9775d86a-8bf8-4200-a4b5-d892e931e8f6",
"created_at": "2025-10-22T08:40:44Z",
"updated_at": "2025-10-22T08:54:14Z",
"direct_url": "file:///mnt/vstorage/vols/datastores/glance/9775d86a-8bf8-4200-a4b5-d892e931e8f6",
"tags": [],
"self": "/v2/images/9775d86a-8bf8-4200-a4b5-d892e931e8f6",
"file": "/v2/images/9775d86a-8bf8-4200-a4b5-d892e931e8f6/file",
"schema": "/v2/schemas/image"
}