Skip to content

GET /api/appvm/images

Updated

List OCI images already imported into this Lite host.

PropertyValue
Scoperead
Request bodynone
Success200 OK

Endpoint

GET ${baseUrl}/api/appvm/images
read

List OCI images already imported into this Lite host.

Use your host URL and API key as shell variables:

baseUrl="https://agent.example.com"
VIRT_AGENT_API_KEY="<your-api-key>"

cURL template

curl --request GET "${baseUrl}/api/appvm/images" \
  --header "Authorization: Bearer ${VIRT_AGENT_API_KEY}"
LocationNameTypeRequiredDescription
HeaderAuthorizationbearer tokenyesBearer ${VIRT_AGENT_API_KEY}.

Returns an object with ready images and in-flight imports.

ObjectFieldTypePresenceDescription
Responseimagesarray of objectsalwaysReady AppVM templates on disk.
importsarray of objectsalwaysIn-flight or failed imports. This list is memory-backed and can be empty after agent restart.
images[]idstringalwaysAppVM image id. Use this as image_id in POST /api/appvm/vms.
referencestringalwaysOCI reference used to import or build the image.
digeststringalwaysSource manifest digest.
tagsarray of stringsalwaysTags observed at import time that pointed to the same digest.
fs_bytesintegeralwaysTemplate filesystem virtual size in bytes.
processobjectalwaysEffective OCI process defaults. Nested fields are documented in the images[].process rows below.
healthcheckobjectoptionalDocker-style healthcheck when present. Omitted when the image has no healthcheck.
created_atstringalwaysTemplate creation timestamp.
buildobjectoptionalBuild source metadata for Dockerfile or git-built images.
disk_bytesintegeralwaysHost disk usage of the template qcow2.
images[].processargsarray of stringsalwaysDefault command arguments from the OCI image.
envarray of stringsalwaysDefault environment entries in KEY=VALUE form.
cwdstringalwaysDefault working directory.
userstringalwaysDefault user from the OCI image.
images[].healthchecktestarray of stringsalways when healthcheck existsExecutable healthcheck command. Docker CMD-SHELL checks are normalized to /bin/sh -c ….
interval_secsintegeralways when healthcheck existsInterval between healthcheck runs, in seconds.
timeout_secsintegeralways when healthcheck existsHealthcheck timeout, in seconds.
retriesintegeralways when healthcheck existsConsecutive failed checks required before the workload is unhealthy.
start_period_secsintegeralways when healthcheck existsStartup grace period before failures count.
images[].builddockerfilestringalways when build existsInline Dockerfile source for local builds. Empty for git-sourced builds.
context_sha256stringoptionalSHA-256 digest of the persisted build context tar.
gitobjectoptionalGit build source. Nested fields are documented in the images[].build.git rows below.
images[].build.giturlstringalways when git existsPublic git repository URL.
git_refstringoptionalBranch, tag, or commit. Omitted means the repository default branch.
subdirstringoptionalBuild context subdirectory. Omitted means repository root.
dockerfilestringoptionalDockerfile path inside the repository context. Omitted means Dockerfile.
imports[]idstringalwaysImage id being imported.
referencestringalwaysOCI reference being imported.
statusstringalwaysimporting or failed.
errorstringfailed imports onlyImport failure message.
Terminal window
baseUrl="https://agent.example.com"
VIRT_AGENT_API_KEY="<your-api-key>"
curl "${baseUrl}/api/appvm/images" \
--header "Authorization: Bearer ${VIRT_AGENT_API_KEY}"
{
"images": [
{
"id": "nginx_latest",
"reference": "docker.io/library/nginx:latest",
"digest": "sha256:0123456789abcdef",
"tags": ["latest"],
"fs_bytes": 2147483648,
"process": {
"args": ["nginx", "-g", "daemon off;"],
"env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"],
"cwd": "/",
"user": "0"
},
"created_at": "2026-07-03T10:00:00Z",
"disk_bytes": 536870912
}
],
"imports": []
}
StatusCodeDescription
401UNAUTHORIZEDAPI key is missing or invalid.
403FORBIDDENAPI key is valid but not allowed to access the endpoint.
500STORAGE_ERRORThe host could not read AppVM image metadata.