v1

latestOpenAPI 3.1.02026-07-2675394318.9 KB
inspect

List files in image

Returns files list

get/inspect/{image_uuid}/list

Path parameters

image_uuidstring uuid required

A UUID string

Example:12345678-9abc-baba-deda-0123456789ab

The UUID of the image to inspect

Query parameters

pathstring required
Example:/etc

The path of the directory to inspect inside the image

textboolean

If present (with or without value), returns text/plain format instead of JSON

Response

OK

pathstring required

The directory path that was listed

Example response

{
  "path": "/etc",
  "files": [
    {
      "size": 1024,
      "path": "passwd",
      "mode": 33188,
      "mtime": 1640995200,
      "nlink": 1,
      "is_regular": true
    }
  ]
}