@xen-orchestra/rest-api 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/abstract-classes/base-controller.mjs +37 -0
- package/dist/abstract-classes/xapi-xo-controller.mjs +5 -10
- package/dist/abstract-classes/xo-controller.mjs +40 -0
- package/dist/helpers/object-wrapper.helper.mjs +2 -2
- package/dist/hosts/host.controller.mjs +75 -0
- package/dist/index.mjs +4 -3
- package/dist/middlewares/generic-error-handler.middleware.mjs +5 -1
- package/dist/open-api/common/response.common.mjs +21 -0
- package/dist/open-api/oa-examples/host.oa-example.mjs +777 -0
- package/dist/open-api/oa-examples/server.oa-example.mjs +28 -0
- package/dist/open-api/oa-examples/sr.oa-example.mjs +81 -0
- package/dist/open-api/oa-examples/task.oa-example.mjs +1 -0
- package/dist/open-api/oa-examples/vbd.oa-example.mjs +34 -0
- package/dist/open-api/oa-examples/vdi-snapshot.oa-example.mjs +42 -0
- package/dist/open-api/oa-examples/vdi.oa-example.mjs +84 -0
- package/dist/open-api/oa-examples/vm.oa-example.mjs +245 -0
- package/dist/open-api/routes/routes.js +603 -15
- package/dist/rest-api/rest-api.mjs +9 -0
- package/dist/servers/server.controller.mjs +60 -0
- package/dist/srs/sr.controller.mjs +59 -0
- package/dist/vbds/vbd.controller.mjs +61 -0
- package/dist/vdi-snapshots/vdi-snapshot.controller.mjs +59 -0
- package/dist/vdis/vdi.controller.mjs +59 -0
- package/dist/vms/vm.controller.mjs +60 -4
- package/open-api/spec/swagger.json +11219 -737
- package/package.json +2 -2
- package/tsoa.json +3 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const serverIds = [
|
|
2
|
+
'/rest/v0/servers/f07ab729-c0e8-721c-45ec-f11276377030',
|
|
3
|
+
'/rest/v0/servers/d5d1c4a3-4c5e-ca7b-6be8-33c824f87571',
|
|
4
|
+
];
|
|
5
|
+
export const partialServers = [
|
|
6
|
+
{
|
|
7
|
+
id: '63375ed4-6d71-4fce-91b0-0a98921b1f9f',
|
|
8
|
+
status: 'connected',
|
|
9
|
+
href: '/rest/v0/servers/63375ed4-6d71-4fce-91b0-0a98921b1f9f',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: '7202d2b7-913a-473b-b6d1-39447a51643f',
|
|
13
|
+
status: 'connected',
|
|
14
|
+
href: '/rest/v0/servers/7202d2b7-913a-473b-b6d1-39447a51643f',
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
export const server = {
|
|
18
|
+
host: '192.168.1.2',
|
|
19
|
+
label: 'MRA local',
|
|
20
|
+
username: 'root',
|
|
21
|
+
allowUnauthorized: true,
|
|
22
|
+
poolNameLabel: 'MRA local',
|
|
23
|
+
enabled: true,
|
|
24
|
+
readOnly: false,
|
|
25
|
+
id: '63375ed4-6d71-4fce-91b0-0a98921b1f9f',
|
|
26
|
+
status: 'connected',
|
|
27
|
+
poolId: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
28
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export const srIds = [
|
|
2
|
+
'/rest/v0/srs/e46e7ea5-1bbe-e499-69a5-6bfb395eb146',
|
|
3
|
+
'/rest/v0/srs/3d1227f3-7d40-a104-efc6-fb797b58f258',
|
|
4
|
+
];
|
|
5
|
+
export const partialSrs = [
|
|
6
|
+
{
|
|
7
|
+
uuid: '4cb0d74e-a7c1-0b7d-46e3-09382c012abb',
|
|
8
|
+
name_label: 'Local storage',
|
|
9
|
+
allocationStrategy: 'thin',
|
|
10
|
+
href: '/rest/v0/srs/4cb0d74e-a7c1-0b7d-46e3-09382c012abb',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
uuid: 'c4284e12-37c9-7967-b9e8-83ef229c3e03',
|
|
14
|
+
name_label: 'Local storage',
|
|
15
|
+
allocationStrategy: 'thin',
|
|
16
|
+
href: '/rest/v0/srs/c4284e12-37c9-7967-b9e8-83ef229c3e03',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
uuid: '8aa2fb4a-143e-c2bc-05d4-c68bbb101d41',
|
|
20
|
+
name_label: 'Local storage',
|
|
21
|
+
allocationStrategy: 'thin',
|
|
22
|
+
href: '/rest/v0/srs/8aa2fb4a-143e-c2bc-05d4-c68bbb101d41',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
uuid: 'c787b75c-3e0d-70fa-d0c3-cbfd382d7e33',
|
|
26
|
+
name_label: 'XOSTOR NVME',
|
|
27
|
+
allocationStrategy: 'thin',
|
|
28
|
+
href: '/rest/v0/srs/c787b75c-3e0d-70fa-d0c3-cbfd382d7e33',
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
export const sr = {
|
|
32
|
+
type: 'SR',
|
|
33
|
+
content_type: 'user',
|
|
34
|
+
physical_usage: 16423866368,
|
|
35
|
+
allocationStrategy: 'thin',
|
|
36
|
+
current_operations: {},
|
|
37
|
+
inMaintenanceMode: false,
|
|
38
|
+
name_description: '',
|
|
39
|
+
name_label: 'Local storage',
|
|
40
|
+
size: 73682485248,
|
|
41
|
+
shared: false,
|
|
42
|
+
SR_type: 'ext',
|
|
43
|
+
tags: [],
|
|
44
|
+
usage: 112759681168,
|
|
45
|
+
VDIs: [
|
|
46
|
+
'7192fab6-e985-42a5-9d23-62deca4b8823',
|
|
47
|
+
'a2caa5f0-b7c9-4ac3-8a65-a9829a39bd98',
|
|
48
|
+
'f8e3da31-4556-4922-b7ce-76429fa88d5e',
|
|
49
|
+
'4b737630-2958-46f0-a997-c9dc8f4457b4',
|
|
50
|
+
'882e52c5-afd5-44b5-a218-e4f7d1aa68b3',
|
|
51
|
+
'd636a574-ebe4-42b8-9456-790e111c60f0',
|
|
52
|
+
'55860d04-cf0a-4cc3-8295-e537ad4a9687',
|
|
53
|
+
'fbda4d74-9017-460a-8a4c-bb5c39795ec4',
|
|
54
|
+
'0e63828c-5a37-429d-b28f-9172424a541a',
|
|
55
|
+
'fc3ff36a-3f08-4999-a3ea-7944e44a2e9b',
|
|
56
|
+
'b4661cb7-6b3f-46e4-b2b7-1acb9d3a28be',
|
|
57
|
+
'656052a2-2e3e-467b-88ba-63a9ea5e4a54',
|
|
58
|
+
'82182c28-9883-4aa4-8807-7cd781e6ca5b',
|
|
59
|
+
'daafd3d5-3c8d-42d1-8f3d-100341b1d0b4',
|
|
60
|
+
'6b4d50c0-e6e3-4126-b658-e98a8001588a',
|
|
61
|
+
'802bdb62-11bc-4a31-9e71-cef8dad121ea',
|
|
62
|
+
'c0dea89f-4ea8-45a3-856d-cad1d5bbe374',
|
|
63
|
+
'1d8129a2-6f29-4966-abfd-763ecd07d4bc',
|
|
64
|
+
'1c5c13c8-30b4-4935-8116-6b0d878cf02d',
|
|
65
|
+
'499e9da8-c26a-4179-b929-69dc49f46ad1',
|
|
66
|
+
],
|
|
67
|
+
other_config: {
|
|
68
|
+
'i18n-original-value-name_label': 'Local storage',
|
|
69
|
+
'i18n-key': 'local-storage',
|
|
70
|
+
},
|
|
71
|
+
sm_config: {
|
|
72
|
+
devserial: 'scsi-35707c181005e11cd',
|
|
73
|
+
},
|
|
74
|
+
$container: '84e555d8-267a-4720-aa5f-fd19035aadae',
|
|
75
|
+
$PBDs: ['387a2513-e835-baba-5684-e4a104acd78b'],
|
|
76
|
+
id: 'c4284e12-37c9-7967-b9e8-83ef229c3e03',
|
|
77
|
+
uuid: 'c4284e12-37c9-7967-b9e8-83ef229c3e03',
|
|
78
|
+
$pool: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
79
|
+
$poolId: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
80
|
+
_xapiRef: 'OpaqueRef:a7bf6969-0e15-9fa5-f987-8515fee801c5',
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const taskLocation = '/rest/v0/tasks/0m7kl0j9l';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const vbdIds = [
|
|
2
|
+
'/rest/v0/vbds/5f9a4c0b-3548-6171-4396-699a0e56cc60',
|
|
3
|
+
'/rest/v0/vbds/60c7c9b6-35ba-1791-67b5-6aaf90eea11d',
|
|
4
|
+
];
|
|
5
|
+
export const partialVbds = [
|
|
6
|
+
{
|
|
7
|
+
device: 'xvda',
|
|
8
|
+
bootable: false,
|
|
9
|
+
uuid: '5f9a4c0b-3548-6171-4396-699a0e56cc60',
|
|
10
|
+
href: '/rest/v0/vbds/5f9a4c0b-3548-6171-4396-699a0e56cc60',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
device: null,
|
|
14
|
+
bootable: false,
|
|
15
|
+
uuid: '60c7c9b6-35ba-1791-67b5-6aaf90eea11d',
|
|
16
|
+
href: '/rest/v0/vbds/60c7c9b6-35ba-1791-67b5-6aaf90eea11d',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
export const vbd = {
|
|
20
|
+
type: 'VBD',
|
|
21
|
+
attached: false,
|
|
22
|
+
bootable: false,
|
|
23
|
+
device: 'xvda',
|
|
24
|
+
is_cd_drive: false,
|
|
25
|
+
position: '0',
|
|
26
|
+
read_only: false,
|
|
27
|
+
VDI: '656052a2-2e3e-467b-88ba-63a9ea5e4a54',
|
|
28
|
+
VM: '4fe90510-8da4-1530-38e2-a7876ef374c7',
|
|
29
|
+
id: '5f9a4c0b-3548-6171-4396-699a0e56cc60',
|
|
30
|
+
uuid: '5f9a4c0b-3548-6171-4396-699a0e56cc60',
|
|
31
|
+
$pool: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
32
|
+
$poolId: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
33
|
+
_xapiRef: 'OpaqueRef:fd30f949-d0ea-f3bc-c5da-cde875dad9db',
|
|
34
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const vdiSnapshotIds = [
|
|
2
|
+
'/rest/v0/vdi-snapshots/d2727772-735b-478f-b6f9-11e7db56dfd0',
|
|
3
|
+
'/rest/v0/vdi-snapshots/d0b9b037-097c-4af3-9e56-edb4331d51b2',
|
|
4
|
+
];
|
|
5
|
+
export const partialVdiSnapshots = [
|
|
6
|
+
{
|
|
7
|
+
uuid: 'd2727772-735b-478f-b6f9-11e7db56dfd0',
|
|
8
|
+
snapshot_time: 1732707378,
|
|
9
|
+
$snapshot_of: '5a914286-9f47-41ae-b9f7-2a1456ee0ce7',
|
|
10
|
+
href: '/rest/v0/vdi-snapshots/d2727772-735b-478f-b6f9-11e7db56dfd0',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
uuid: 'd0b9b037-097c-4af3-9e56-edb4331d51b2',
|
|
14
|
+
snapshot_time: 1725609856,
|
|
15
|
+
href: '/rest/v0/vdi-snapshots/d0b9b037-097c-4af3-9e56-edb4331d51b2',
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
export const vdiSnapshot = {
|
|
19
|
+
type: 'VDI-snapshot',
|
|
20
|
+
cbt_enabled: false,
|
|
21
|
+
missing: false,
|
|
22
|
+
name_description: 'Created by XO',
|
|
23
|
+
name_label: 'Windows Server 2019 (64-bit)_iruti',
|
|
24
|
+
size: 34359738368,
|
|
25
|
+
snapshots: [],
|
|
26
|
+
tags: [],
|
|
27
|
+
usage: 8436632576,
|
|
28
|
+
VDI_type: 'user',
|
|
29
|
+
current_operations: {},
|
|
30
|
+
other_config: {
|
|
31
|
+
content_id: 'c6d140d1-3456-4a9a-aafd-097202de4e94',
|
|
32
|
+
},
|
|
33
|
+
$SR: 'c787b75c-3e0d-70fa-d0c3-cbfd382d7e33',
|
|
34
|
+
$VBDs: ['bdfb401e-4828-97b2-f925-9dd185ae9eb4'],
|
|
35
|
+
snapshot_time: 1732707378,
|
|
36
|
+
$snapshot_of: '5a914286-9f47-41ae-b9f7-2a1456ee0ce7',
|
|
37
|
+
id: 'd2727772-735b-478f-b6f9-11e7db56dfd0',
|
|
38
|
+
uuid: 'd2727772-735b-478f-b6f9-11e7db56dfd0',
|
|
39
|
+
$pool: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
40
|
+
$poolId: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
41
|
+
_xapiRef: 'OpaqueRef:89fa6fd2-321d-d7be-9ed1-3b810934793d',
|
|
42
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export const vdiIds = [
|
|
2
|
+
'/rest/v0/vdis/5e13f673-760e-41be-826e-620d16b7f43b',
|
|
3
|
+
'/rest/v0/vdis/771d5baf-4364-42f9-8c92-8e5fe08b332a',
|
|
4
|
+
];
|
|
5
|
+
export const partialVdis = [
|
|
6
|
+
{
|
|
7
|
+
type: 'VDI',
|
|
8
|
+
cbt_enabled: true,
|
|
9
|
+
missing: false,
|
|
10
|
+
name_description: 'fromESXI from esxi',
|
|
11
|
+
name_label: '[ESXI]alpine-uefi_0-flat.vmdk',
|
|
12
|
+
parent: 'd636a574-ebe4-42b8-9456-790e111c60f0',
|
|
13
|
+
size: 2147483648,
|
|
14
|
+
snapshots: [
|
|
15
|
+
'f8e3da31-4556-4922-b7ce-76429fa88d5e',
|
|
16
|
+
'882e52c5-afd5-44b5-a218-e4f7d1aa68b3',
|
|
17
|
+
'0e63828c-5a37-429d-b28f-9172424a541a',
|
|
18
|
+
'499e9da8-c26a-4179-b929-69dc49f46ad1',
|
|
19
|
+
],
|
|
20
|
+
tags: [],
|
|
21
|
+
usage: 8704,
|
|
22
|
+
VDI_type: 'user',
|
|
23
|
+
current_operations: {},
|
|
24
|
+
other_config: {
|
|
25
|
+
content_id: 'c34003dd-a003-e8a3-1a4e-a79e17ba8747',
|
|
26
|
+
},
|
|
27
|
+
$SR: 'c4284e12-37c9-7967-b9e8-83ef229c3e03',
|
|
28
|
+
$VBDs: ['062adf71-ed8c-4d50-8a73-f838bd78c174'],
|
|
29
|
+
id: '4b737630-2958-46f0-a997-c9dc8f4457b4',
|
|
30
|
+
uuid: '4b737630-2958-46f0-a997-c9dc8f4457b4',
|
|
31
|
+
$pool: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
32
|
+
$poolId: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
33
|
+
_xapiRef: 'OpaqueRef:d47c4498-6c8a-e5c2-e1aa-f2b55952da3e',
|
|
34
|
+
href: '/rest/v0/vdis/4b737630-2958-46f0-a997-c9dc8f4457b4',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: 'VDI',
|
|
38
|
+
cbt_enabled: true,
|
|
39
|
+
missing: false,
|
|
40
|
+
name_description: 'Created by XO',
|
|
41
|
+
name_label: 'Windows 11_okevu',
|
|
42
|
+
parent: 'c2478210-cbbc-4796-9688-351c7f7808fa',
|
|
43
|
+
size: 68719476736,
|
|
44
|
+
snapshots: [
|
|
45
|
+
'6365acbc-ad52-4cb3-b231-8e76febcda09',
|
|
46
|
+
'fc009f25-9629-4e2d-8fa6-6d066c8ce1c9',
|
|
47
|
+
'499e9da8-c26a-4179-b929-69dc49f46ad1',
|
|
48
|
+
],
|
|
49
|
+
tags: [],
|
|
50
|
+
usage: 139264,
|
|
51
|
+
VDI_type: 'user',
|
|
52
|
+
current_operations: {},
|
|
53
|
+
other_config: {},
|
|
54
|
+
$SR: '4cb0d74e-a7c1-0b7d-46e3-09382c012abb',
|
|
55
|
+
$VBDs: ['7ced40d8-74c0-744c-dec5-5165224e314a'],
|
|
56
|
+
id: '44dc6b83-7144-4b00-ab9c-398bf513b952',
|
|
57
|
+
uuid: '44dc6b83-7144-4b00-ab9c-398bf513b952',
|
|
58
|
+
$pool: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
59
|
+
$poolId: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
60
|
+
_xapiRef: 'OpaqueRef:b90dc557-8418-2e21-bc97-13c3f8caa6ca',
|
|
61
|
+
href: '/rest/v0/vdis/44dc6b83-7144-4b00-ab9c-398bf513b952',
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
export const vdi = {
|
|
65
|
+
type: 'VDI',
|
|
66
|
+
cbt_enabled: false,
|
|
67
|
+
missing: false,
|
|
68
|
+
name_description: 'Created by XO',
|
|
69
|
+
name_label: 'AlmaLinux 9_16s8',
|
|
70
|
+
size: 16106127360,
|
|
71
|
+
snapshots: [],
|
|
72
|
+
tags: [],
|
|
73
|
+
usage: 34304,
|
|
74
|
+
VDI_type: 'user',
|
|
75
|
+
current_operations: {},
|
|
76
|
+
other_config: {},
|
|
77
|
+
$SR: '4cb0d74e-a7c1-0b7d-46e3-09382c012abb',
|
|
78
|
+
$VBDs: ['f11d8f64-973d-5b87-3be9-26c26557cf06'],
|
|
79
|
+
id: 'c77f9955-c1d2-4b39-aa1c-73cdb2dacb7e',
|
|
80
|
+
uuid: 'c77f9955-c1d2-4b39-aa1c-73cdb2dacb7e',
|
|
81
|
+
$pool: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
82
|
+
$poolId: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
83
|
+
_xapiRef: 'OpaqueRef:87f45fca-2281-381a-8fc0-345fe5609bfa',
|
|
84
|
+
};
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
export const vmIds = [
|
|
2
|
+
'/rest/v0/vms/f07ab729-c0e8-721c-45ec-f11276377030',
|
|
3
|
+
'/rest/v0/vms/d5d1c4a3-4c5e-ca7b-6be8-33c824f87571',
|
|
4
|
+
];
|
|
5
|
+
export const partialVms = [
|
|
6
|
+
{
|
|
7
|
+
name_label: 'foo',
|
|
8
|
+
power_state: 'Running',
|
|
9
|
+
uuid: 'f07ab729-c0e8-721c-45ec-f11276377030',
|
|
10
|
+
href: '/rest/v0/vms/f07ab729-c0e8-721c-45ec-f11276377030',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name_label: 'foo_bar',
|
|
14
|
+
power_state: 'Halted',
|
|
15
|
+
uuid: 'd5d1c4a3-4c5e-ca7b-6be8-33c824f87571',
|
|
16
|
+
href: '/rest/v0/vms/d5d1c4a3-4c5e-ca7b-6be8-33c824f87571',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
export const vm = {
|
|
20
|
+
type: 'VM',
|
|
21
|
+
addresses: {},
|
|
22
|
+
auto_poweron: false,
|
|
23
|
+
bios_strings: {
|
|
24
|
+
'bios-vendor': 'Xen',
|
|
25
|
+
'bios-version': '',
|
|
26
|
+
'system-manufacturer': 'Xen',
|
|
27
|
+
'system-product-name': 'HVM domU',
|
|
28
|
+
'system-version': '',
|
|
29
|
+
'system-serial-number': '',
|
|
30
|
+
'hp-rombios': '',
|
|
31
|
+
'oem-1': 'Xen',
|
|
32
|
+
'oem-2': 'MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d',
|
|
33
|
+
},
|
|
34
|
+
blockedOperations: {},
|
|
35
|
+
boot: {
|
|
36
|
+
firmware: 'bios',
|
|
37
|
+
order: 'cd',
|
|
38
|
+
},
|
|
39
|
+
CPUs: {
|
|
40
|
+
max: 2,
|
|
41
|
+
number: 2,
|
|
42
|
+
},
|
|
43
|
+
creation: {
|
|
44
|
+
date: '2024-12-18T15:08:43.142Z',
|
|
45
|
+
template: 'bfa83003-ac1a-dde9-6a44-6cca5fd3e735',
|
|
46
|
+
user: 'd558dd75-c928-45f6-b8e3-4375bdda59f8',
|
|
47
|
+
},
|
|
48
|
+
current_operations: {},
|
|
49
|
+
expNestedHvm: false,
|
|
50
|
+
viridian: false,
|
|
51
|
+
high_availability: '',
|
|
52
|
+
isFirmwareSupported: true,
|
|
53
|
+
memory: {
|
|
54
|
+
dynamic: [4294967296, 4294967296],
|
|
55
|
+
static: [2147483648, 4294967296],
|
|
56
|
+
size: 4294967296,
|
|
57
|
+
},
|
|
58
|
+
installTime: 1734534522,
|
|
59
|
+
name_description: 'Debian 12 Cloud-Init Ready Hub Template',
|
|
60
|
+
name_label: 'MRA XOA',
|
|
61
|
+
needsVtpm: false,
|
|
62
|
+
other: {
|
|
63
|
+
'xo:f07ab729': '{"creation":{"date":"2024-12-18T15:08:43.142Z","template":"bfa83003-ac1a-dde9-6a44-6cca5fd3e735","user":"d558dd75-c928-45f6-b8e3-4375bdda59f8"}}',
|
|
64
|
+
'xo:resource:namespace': 'Debian12',
|
|
65
|
+
'xo:resource:xva:version': '1.0.0',
|
|
66
|
+
'xo:resource:xva:id': 'e2fb63ba-1a5d-7527-bfca-14fef610bf6f',
|
|
67
|
+
'xo:resource:installedTemplate:uuid': 'bfa83003-ac1a-dde9-6a44-6cca5fd3e735',
|
|
68
|
+
import_task: 'OpaqueRef:7c274dba-70ef-1f28-ab31-9c7ef5b26c51',
|
|
69
|
+
mac_seed: 'ebcb83b9-b96d-6341-931c-9d5105656bf2',
|
|
70
|
+
vgpu_pci: '',
|
|
71
|
+
base_template_name: 'Debian Jessie 8.0',
|
|
72
|
+
'install-methods': 'cdrom,nfs,http,ftp',
|
|
73
|
+
linux_template: 'true',
|
|
74
|
+
},
|
|
75
|
+
os_version: null,
|
|
76
|
+
power_state: 'Halted',
|
|
77
|
+
hasVendorDevice: false,
|
|
78
|
+
snapshots: [],
|
|
79
|
+
startDelay: 0,
|
|
80
|
+
startTime: null,
|
|
81
|
+
secureBoot: false,
|
|
82
|
+
tags: [],
|
|
83
|
+
VIFs: ['803382fb-9d69-fbf7-8fef-2b3a8adfce5a'],
|
|
84
|
+
VTPMs: [],
|
|
85
|
+
virtualizationMode: 'hvm',
|
|
86
|
+
$container: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
87
|
+
$VBDs: ['43ecda28-e716-a60e-5322-ee6597d07aec', 'a30d24aa-188c-dc6d-6ee3-5bf1e504a3e9'],
|
|
88
|
+
VGPUs: [],
|
|
89
|
+
$VGPUs: [],
|
|
90
|
+
xenStoreData: {
|
|
91
|
+
'vm-data/mmio-hole-size': '268435456',
|
|
92
|
+
'vm-data': '',
|
|
93
|
+
},
|
|
94
|
+
vga: 'cirrus',
|
|
95
|
+
videoram: 4,
|
|
96
|
+
id: 'f07ab729-c0e8-721c-45ec-f11276377030',
|
|
97
|
+
uuid: 'f07ab729-c0e8-721c-45ec-f11276377030',
|
|
98
|
+
$pool: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
99
|
+
$poolId: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
100
|
+
_xapiRef: 'OpaqueRef:ffdf8863-5331-9394-5c1b-d1db7de20a76',
|
|
101
|
+
};
|
|
102
|
+
export const vmStatsExample = {
|
|
103
|
+
endTimestamp: 1739958540,
|
|
104
|
+
interval: 60,
|
|
105
|
+
stats: {
|
|
106
|
+
cpus: {
|
|
107
|
+
'0': [
|
|
108
|
+
0.10329, 0.11014, 0.11465, 0.11352000000000001, 0.10727, 0.10522999999999999, 0.14641, 0.10748, 0.12263,
|
|
109
|
+
0.12427, 0.10453000000000001, 0.08896699999999999, 0.10916000000000001, 0.088654, 0.10563, 0.11789000000000001,
|
|
110
|
+
0.15555, 0.11686, 0.12934, 0.11566, 0.11984999999999998, 0.11495, 0.11615, 0.11151, 0.10779, 0.1222, 0.14765,
|
|
111
|
+
0.10556, 0.094178, 0.10196000000000001, 0.11102, 0.10920999999999999, 0.11478000000000001, 0.11789000000000001,
|
|
112
|
+
0.11563000000000001, 0.11739000000000001, 0.1362, 0.11498000000000001, 0.11574000000000001, 0.11762999999999998,
|
|
113
|
+
0.13917000000000002, 0.11061, 0.13446, 0.14161, 0.12666000000000002, 0.11344, 0.1374, 0.10191, 0.10052,
|
|
114
|
+
0.10721000000000001, 0.1026, 0.088527, 0.11909, 0.09958600000000001, 0.11494000000000001, 0.11477, 0.12858,
|
|
115
|
+
0.12194, 0.09911099999999999, 0.10887, 0.10215999999999999, 0.10981, 0.12030999999999999, 0.10596,
|
|
116
|
+
0.09993999999999999, 0.093929, 0.12344999999999999, 0.11797, 0.10663999999999998, 0.10486, 0.12799, 0.12128,
|
|
117
|
+
0.12048, 0.12692, 0.14813, 0.12057999999999999, 0.15755999999999998, 0.1343, 0.10422000000000001, 0.11711,
|
|
118
|
+
0.12649, 0.12182, 0.12440000000000001, 0.12294000000000001, 0.11839999999999999, 0.10195, 0.1127,
|
|
119
|
+
0.09663300000000001, 0.11427, 0.08722099999999999, 0.098883, 0.10908999999999999, 0.10545000000000002, 0.11312,
|
|
120
|
+
0.11949, 0.13102999999999998, 0.13713, 0.13815, 0.14027, 0.11937, 0.13204, 0.11929, 0.12465,
|
|
121
|
+
0.11314999999999999, 0.11397, 0.11687, 0.13404, 0.11865, 0.13029000000000002, 0.11449999999999999, 0.11681,
|
|
122
|
+
0.17134, 0.31911, 0.18656, 0.21658, 0.23914000000000002, 0.16117, 0.13316999999999998, 0.13163,
|
|
123
|
+
],
|
|
124
|
+
'1': [
|
|
125
|
+
0.29756, 0.30574, 0.29464, 0.30307, 0.30457, 0.29107, 0.33127999999999996, 0.30188, 0.3016, 0.32508, 0.29493,
|
|
126
|
+
0.31295, 0.28245000000000003, 0.28689000000000003, 0.29069999999999996, 0.29743, 0.2773, 0.27088, 0.27829,
|
|
127
|
+
0.28284, 0.30478, 0.28864, 0.3065, 0.3035, 0.3188, 0.34719, 0.3156, 0.28662000000000004, 0.29383, 0.29981,
|
|
128
|
+
0.31473999999999996, 0.29885, 0.27696, 0.28219, 0.27029, 0.29085, 0.2726, 0.28369, 0.26852, 0.27536, 0.27914,
|
|
129
|
+
0.28652, 0.29397999999999996, 0.28976, 0.27662, 0.29937, 0.30713, 0.31584999999999996, 0.30047, 0.30318,
|
|
130
|
+
0.30081, 0.33138, 0.30329, 0.30674999999999997, 0.30323, 0.30611, 0.30973, 0.30456, 0.29344000000000003,
|
|
131
|
+
0.31641, 0.33455, 0.31020000000000003, 0.28782, 0.31499, 0.29937, 0.30573, 0.33871, 0.31035, 0.29512, 0.29625,
|
|
132
|
+
0.28441, 0.27936, 0.28203999999999996, 0.26668, 0.27676, 0.28300000000000003, 0.28148, 0.28251, 0.30144,
|
|
133
|
+
0.28032, 0.26444, 0.28741, 0.28525, 0.27945000000000003, 0.27417, 0.33799, 0.32702, 0.32241000000000003,
|
|
134
|
+
0.30667, 0.32703, 0.31335999999999997, 0.30452999999999997, 0.32867999999999997, 0.29619, 0.28617, 0.27939,
|
|
135
|
+
0.28831999999999997, 0.27728, 0.28192999999999996, 0.27025, 0.26878, 0.28253, 0.28008, 0.26922999999999997,
|
|
136
|
+
0.29331999999999997, 0.29295, 0.28464, 0.2788, 0.28493, 0.29115, 0.28254999999999997, 0.28454999999999997,
|
|
137
|
+
0.27237, 0.28496, 0.28065999999999997, 0.27951, 0.2867, 0.30019999999999997, 0.28556,
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
memory: [
|
|
141
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
142
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
143
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
144
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
145
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
146
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
147
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
148
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
149
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
150
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
151
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
152
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
153
|
+
2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000, 2147500000,
|
|
154
|
+
2147500000, 2147500000,
|
|
155
|
+
],
|
|
156
|
+
iops: {
|
|
157
|
+
r: {
|
|
158
|
+
a: [
|
|
159
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
160
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
161
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
162
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
w: {
|
|
166
|
+
a: [
|
|
167
|
+
0.097648, 0.081883, 0.081339, 0.080419, 0.080809, 0.081243, 0.081491, 0.081343, 0.1398, 0.18972, 0.10195,
|
|
168
|
+
0.060924, 0.08152, 0.081328, 0.08151, 0.081099, 0.13029, 0.098147, 0.08134, 0.08152, 0.081328, 0.081515,
|
|
169
|
+
0.081338, 0.08153, 0.081341, 0.1315, 0.18377, 0.095813, 0.080532, 0.080775, 0.081524, 0.08133, 0.081519,
|
|
170
|
+
0.081842, 0.083333, 0.095709, 0.081514, 0.081345, 0.081507, 0.08132, 0.11194, 0.033333, 0.083333, 0.13333,
|
|
171
|
+
0.093697, 0.081357, 0.081485, 0.081353, 0.081502, 0.081338, 0.082602, 0.083333, 0.083333, 0.092391, 0.080733,
|
|
172
|
+
0.11021, 0.052649, 0.081509, 0.082509, 0.083333, 0.083333, 0.083333, 0.091228, 0.08151, 0.081315, 0.081363,
|
|
173
|
+
0.081251, 0.083333, 0.083333, 0.083333, 0.1406, 0.081517, 0.081355, 0.081508, 0.081682, 0.083333, 0.083333,
|
|
174
|
+
0.13333, 0.16667, 0.0887, 0.081485, 0.081352, 0.081796, 0.083333, 0.083333, 0.13786, 0.19548, 0.083333,
|
|
175
|
+
0.088326, 0.081065, 0.088574, 0.075369, 0.083333, 0.13333, 0.033333, 0.083333, 0.087691, 0.081366, 0.1315,
|
|
176
|
+
0.082773, 0.1, 0.083333, 0.13333, 0.033333, 0.083333, 0.085806, 0.081349, 0.082845, 0.083333, 0.083333,
|
|
177
|
+
0.083333, 0.13333, 0.033333, 0.083333, 0.085255, 0.10573, 0.075677, 0.083333, 0.083333,
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
xvds: {
|
|
182
|
+
r: {
|
|
183
|
+
a: [
|
|
184
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
185
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
186
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
187
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
w: {
|
|
191
|
+
a: [
|
|
192
|
+
468.23, 403.66, 401.43, 397.66, 399.26, 401.04, 402.05, 401.45, 1187, 981.89, 554.12, 317.81, 402.17, 401.39,
|
|
193
|
+
402.13, 412.93, 862.5, 470.28, 401.44, 402.17, 401.39, 402.15, 401.43, 402.21, 401.44, 675.17, 1503.7, 460.72,
|
|
194
|
+
398.12, 399.12, 402.19, 401.39, 402.17, 403.49, 409.6, 460.29, 402.15, 401.46, 402.12, 401.35, 595.03, 204.8,
|
|
195
|
+
409.6, 887.47, 452.05, 401.5, 402.03, 401.49, 402.1, 401.43, 406.6, 409.6, 409.6, 446.7, 398.95, 587.95,
|
|
196
|
+
283.92, 402.13, 406.22, 409.6, 409.6, 409.6, 441.94, 402.13, 401.33, 401.53, 401.07, 409.6, 409.6, 409.6,
|
|
197
|
+
917.25, 402.16, 401.5, 402.12, 402.83, 409.6, 409.6, 1092.3, 887.47, 431.58, 402.03, 401.49, 403.3, 409.6,
|
|
198
|
+
409.6, 1048.4, 1204.4, 409.6, 430.05, 400.31, 431.07, 376.98, 409.6, 614.4, 204.8, 409.6, 427.45, 411.33,
|
|
199
|
+
870.18, 407.31, 546.13, 409.6, 614.4, 204.8, 409.6, 419.73, 401.47, 407.6, 409.6, 409.6, 409.6, 614.4, 204.8,
|
|
200
|
+
409.6, 417.47, 569.62, 378.24, 409.6, 409.6,
|
|
201
|
+
],
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
vifs: {
|
|
205
|
+
rx: {
|
|
206
|
+
'0': [
|
|
207
|
+
26.093, 32.014, 67.697, 58.753, 33.467, 37.491, 58.597, 30.445, 35.183, 80.516, 24.93, 31.059, 30.958, 82.292,
|
|
208
|
+
41.095, 42.146, 72.437, 79.315, 27.17, 34.682, 29.654, 31.031, 38.662, 83.563, 32.857, 45.96, 62.557, 29.964,
|
|
209
|
+
30.536, 30.067, 75.823, 37.306, 32.438, 34.156, 50.525, 41.277, 84.548, 39.422, 35.256, 43.333, 37.533,
|
|
210
|
+
30.967, 87.266, 52.716, 34.614, 35.031, 127.45, 33.611, 32.06, 32.095, 102.09, 37.166, 36.9, 39.71, 32.681,
|
|
211
|
+
28.122, 49.495, 90.197, 28.328, 32.967, 35.467, 33.679, 38.205, 43.533, 33.467, 29.404, 62.77, 84.119, 30.865,
|
|
212
|
+
32.131, 35.253, 32.386, 29.647, 79.757, 45.637, 31.853, 63.045, 43.291, 35.722, 31.07, 36.9, 35.9, 28.501,
|
|
213
|
+
81.165, 34.123, 32.011, 68.544, 43.598, 42.074, 26.279, 106.37, 41.084, 26.758, 41.401, 42.847, 40.596,
|
|
214
|
+
56.853, 37.168, 97.783, 30.315, 33.118, 38.833, 42.22, 52.069, 36.294, 37.828, 107.76, 39.728, 46.087, 31.574,
|
|
215
|
+
34.889, 89.279, 624.37, 128.66, 116.32, 120.88, 76.055, 57.768, 57.251,
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
tx: {
|
|
219
|
+
'0': [
|
|
220
|
+
0, 0, 0, 0, 0, 1.7333, 1.7333, 0, 1.7333, 1.7333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.7333, 1.2667, 0,
|
|
221
|
+
5.9211, 3.0122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 2.6608, 0.80588, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
222
|
+
0, 0, 3, 0, 0, 1.7333, 1.7333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.9737, 0.026261, 0, 1.7333, 1.7333, 0, 0,
|
|
223
|
+
0, 0, 0, 0, 3.475, 2.4583, 0, 0, 0, 0, 1.7333, 1.2667, 0, 1.4958, 1.9709, 0, 0, 0, 0, 1.7333, 0, 0, 0, 0, 0,
|
|
224
|
+
0, 0, 1.7333, 1.7333, 0, 1.4832, 0.25009, 1.7333, 0, 0, 0, 0, 1.7333,
|
|
225
|
+
],
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
memoryFree: [
|
|
229
|
+
1952358400, 1952358400, 1952358400, 1952256000, 1952460800, 1952563200, 1952460800, 1952358400, 1952358400,
|
|
230
|
+
1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400,
|
|
231
|
+
1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952256000, 1952358400, 1952358400, 1952358400,
|
|
232
|
+
1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400,
|
|
233
|
+
1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400,
|
|
234
|
+
1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400,
|
|
235
|
+
1952358400, 1952358400, 1952358400, 1952358400, 1952256000, 1952051200, 1952051200, 1952051200, 1952256000,
|
|
236
|
+
1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400,
|
|
237
|
+
1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952256000, 1952051200, 1952256000,
|
|
238
|
+
1952358400, 1952256000, 1952051200, 1952256000, 1952358400, 1952153600, 1952051200, 1952256000, 1952358400,
|
|
239
|
+
1952358400, 1952358400, 1952256000, 1952051200, 1952256000, 1952358400, 1952358400, 1952358400, 1952358400,
|
|
240
|
+
1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952256000, 1952153600,
|
|
241
|
+
1952256000, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400, 1952358400,
|
|
242
|
+
1952256000, 1952153600,
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
};
|