Can view from web UI XML definition of domains
This commit is contained in:
virtweb_backend/src
virtweb_frontend
@ -113,6 +113,10 @@ export class VMInfo implements VMInfoInterface {
|
||||
get VNCURL(): string {
|
||||
return `/vm/${this.uuid}/vnc`;
|
||||
}
|
||||
|
||||
get XMLURL(): string {
|
||||
return `/vm/${this.uuid}/xml`;
|
||||
}
|
||||
}
|
||||
|
||||
export class VMApi {
|
||||
@ -154,6 +158,18 @@ export class VMApi {
|
||||
return new VMInfo(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the source XML configuration of a domain for debugging purposes
|
||||
*/
|
||||
static async GetSingleXML(uuid: string): Promise<string> {
|
||||
return (
|
||||
await APIClient.exec({
|
||||
uri: `/vm/${uuid}/src`,
|
||||
method: "GET",
|
||||
})
|
||||
).data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the information about a single VM
|
||||
*/
|
||||
|
Reference in New Issue
Block a user