Show VM screenshot

This commit is contained in:
2023-10-18 10:23:40 +02:00
parent 62364594c9
commit 3042bbdac6
7 changed files with 82 additions and 4 deletions

@ -136,6 +136,18 @@ export class VMApi {
).data.state;
}
/**
* Get a screenshot of a VM
*/
static async Screenshot(vm: VMInfo): Promise<Blob> {
return (
await APIClient.exec({
uri: `/vm/${vm.uuid}/screenshot`,
method: "GET",
})
).data;
}
/**
* Start the VM
*/