Get filesystem path info
Changed onReturns information about a path in the guest filesystem. Useful for checking if a path exists, its type, and permissions before performing file operations.
get/instances/{id}/stat
Request
- Base URLhttp://localhost:4973
- URLhttp://localhost:4973/instances/{id}/stat
- AuthHTTP bearer
Path parameters
idstring required
Instance ID or name
Query parameters
pathstring required
Path to stat in the guest filesystem
follow_linksboolean
Follow symbolic links (like stat vs lstat)
Response
Path information
Example response
{
"exists": true,
"is_file": true,
"link_target": "/actual/target/path",
"mode": 420,
"size": 1024,
"error": "permission denied"
}Changes
- info
added the non-success response with the status
- info
- info
endpoint added
- info