Is there a way to do the equivalent of a 'lxc import <filename>' using pylxd?

I’m running lxd 4.3 and just getting to grips with pylxd is there a way to do the equivalent of a lxc import from pylxd?

There is a way todo every lxc command via the API (as “all” (give or take) lxc does is access the API) , try adding --debug to the lxc something command to see what happens behind the scenes!

1 Like

IIRC that particular one is a direct push of the file to /1.0/instances

1 Like