Show VM screenshot
This commit is contained in:
virtweb_frontend/src
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user