@xen-orchestra/rest-api 0.1.2 → 0.3.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-controller.oa-example.mjs +71 -0
- package/dist/open-api/oa-examples/vm-snapshot.oa-example.mjs +178 -0
- package/dist/open-api/oa-examples/vm-template.oa-example.mjs +91 -0
- package/dist/open-api/oa-examples/vm.oa-example.mjs +144 -0
- package/dist/open-api/routes/routes.js +833 -23
- 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/vm-controller/vm-controller.controller.mjs +60 -0
- package/dist/vm-snapshots/vm-snapshot.controller.mjs +60 -0
- package/dist/vm-templates/vm-template.controller.mjs +59 -0
- package/dist/vms/vm.controller.mjs +60 -4
- package/open-api/spec/swagger.json +13933 -384
- 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,71 @@
|
|
|
1
|
+
export const vmControllerIds = [
|
|
2
|
+
'/rest/v0/vm-controller/9b4775bd-9493-490a-9afa-f786a44caa4f',
|
|
3
|
+
'/rest/v0/vm-controller/e3fc847c-159a-48dc-bee4-cf2da216a795',
|
|
4
|
+
];
|
|
5
|
+
export const partialVmControllers = [
|
|
6
|
+
{
|
|
7
|
+
type: 'VM-controller',
|
|
8
|
+
uuid: '9b4775bd-9493-490a-9afa-f786a44caa4f',
|
|
9
|
+
href: '/rest/v0/vm-controller/9b4775bd-9493-490a-9afa-f786a44caa4f',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
type: 'VM-controller',
|
|
13
|
+
uuid: 'e3fc847c-159a-48dc-bee4-cf2da216a795',
|
|
14
|
+
href: '/rest/v0/vm-controller/e3fc847c-159a-48dc-bee4-cf2da216a795',
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
export const vmController = {
|
|
18
|
+
type: 'VM-controller',
|
|
19
|
+
addresses: {},
|
|
20
|
+
affinityHost: 'b61a5c92-700e-4966-a13b-00633f03eea8',
|
|
21
|
+
auto_poweron: false,
|
|
22
|
+
bios_strings: {},
|
|
23
|
+
blockedOperations: {},
|
|
24
|
+
boot: {},
|
|
25
|
+
CPUs: {
|
|
26
|
+
max: 8,
|
|
27
|
+
number: 8,
|
|
28
|
+
},
|
|
29
|
+
current_operations: {},
|
|
30
|
+
expNestedHvm: false,
|
|
31
|
+
viridian: false,
|
|
32
|
+
high_availability: '',
|
|
33
|
+
isFirmwareSupported: true,
|
|
34
|
+
memory: {
|
|
35
|
+
dynamic: [2785017856, 2785017856],
|
|
36
|
+
static: [2785017856, 2785017856],
|
|
37
|
+
size: 2785017856,
|
|
38
|
+
},
|
|
39
|
+
installTime: null,
|
|
40
|
+
name_description: 'The domain which manages physical devices and manages other domains',
|
|
41
|
+
name_label: 'Control domain on host: localhost.localdomain',
|
|
42
|
+
needsVtpm: false,
|
|
43
|
+
other: {
|
|
44
|
+
storage_driver_domain: 'OpaqueRef:254474d5-77b7-0947-da0f-af869dd2ca82',
|
|
45
|
+
is_system_domain: 'true',
|
|
46
|
+
perfmon: '<config><variable><name value="fs_usage"/><alarm_trigger_level value="0.9"/><alarm_trigger_period value="60"/><alarm_auto_inhibit_period value="3600"/></variable><variable><name value="mem_usage"/><alarm_trigger_level value="0.95"/><alarm_trigger_period value="60"/><alarm_auto_inhibit_period value="3600"/></variable><variable><name value="log_fs_usage"/><alarm_trigger_level value="0.9"/><alarm_trigger_period value="60"/><alarm_auto_inhibit_period value="3600"/></variable></config>',
|
|
47
|
+
},
|
|
48
|
+
os_version: null,
|
|
49
|
+
power_state: 'Running',
|
|
50
|
+
hasVendorDevice: false,
|
|
51
|
+
snapshots: [],
|
|
52
|
+
startDelay: 0,
|
|
53
|
+
startTime: null,
|
|
54
|
+
secureBoot: false,
|
|
55
|
+
tags: [],
|
|
56
|
+
VIFs: [],
|
|
57
|
+
VTPMs: [],
|
|
58
|
+
virtualizationMode: 'pv',
|
|
59
|
+
xenTools: false,
|
|
60
|
+
$containe: 'b61a5c92-700e-4966-a13b-00633f03eea8',
|
|
61
|
+
$VBDs: [],
|
|
62
|
+
VGPUs: [],
|
|
63
|
+
$VGPUs: [],
|
|
64
|
+
xenStoreData: {},
|
|
65
|
+
PV_args: '',
|
|
66
|
+
id: '9b4775bd-9493-490a-9afa-f786a44caa4f',
|
|
67
|
+
uuid: '9b4775bd-9493-490a-9afa-f786a44caa4f',
|
|
68
|
+
$pool: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
69
|
+
$poolId: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
70
|
+
_xapiRef: 'OpaqueRef:ca27fcfc-5083-d039-e752-2e6c3364bde9',
|
|
71
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
export const vmSnapshotIds = [
|
|
2
|
+
'/rest/v0/vm-snapshots/d68fca2c-41e6-be87-d790-105c1642a090',
|
|
3
|
+
'/rest/v0/vm-snapshots/926ed61e-f8c9-8619-da05-1f454ed3dec9',
|
|
4
|
+
];
|
|
5
|
+
export const partialVmSnapshots = [
|
|
6
|
+
{
|
|
7
|
+
uuid: '926ed61e-f8c9-8619-da05-1f454ed3dec9',
|
|
8
|
+
snapshot_time: 1726489407,
|
|
9
|
+
$snapshot_of: '4127cb83-5a72-21fb-29de-3c9823ea5f43',
|
|
10
|
+
href: '/rest/v0/vm-snapshots/926ed61e-f8c9-8619-da05-1f454ed3dec9',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
uuid: '063ff4d6-f3b2-cf64-42b5-ae2cc51c1643',
|
|
14
|
+
snapshot_time: 1732707379,
|
|
15
|
+
$snapshot_of: 'fa8e50dd-68d6-3233-a580-96d1e8103cdd',
|
|
16
|
+
href: '/rest/v0/vm-snapshots/063ff4d6-f3b2-cf64-42b5-ae2cc51c1643',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
export const vmSnapshot = {
|
|
20
|
+
$pool: 'string',
|
|
21
|
+
_xapiRef: 'string',
|
|
22
|
+
uuid: 'string',
|
|
23
|
+
$VBDs: ['string'],
|
|
24
|
+
$VGPUs: ['string'],
|
|
25
|
+
$container: 'string',
|
|
26
|
+
CPUs: {
|
|
27
|
+
number: 0,
|
|
28
|
+
max: 0,
|
|
29
|
+
},
|
|
30
|
+
PV_args: 'string',
|
|
31
|
+
VGPUs: ['string'],
|
|
32
|
+
VIFs: ['string'],
|
|
33
|
+
VTPMs: ['string'],
|
|
34
|
+
addresses: {
|
|
35
|
+
additionalProp1: 'string',
|
|
36
|
+
additionalProp2: 'string',
|
|
37
|
+
additionalProp3: 'string',
|
|
38
|
+
},
|
|
39
|
+
affinityHost: 'string',
|
|
40
|
+
attachedPcis: ['string'],
|
|
41
|
+
auto_poweron: true,
|
|
42
|
+
bios_strings: {
|
|
43
|
+
additionalProp1: 'string',
|
|
44
|
+
additionalProp2: 'string',
|
|
45
|
+
additionalProp3: 'string',
|
|
46
|
+
},
|
|
47
|
+
blockedOperations: {
|
|
48
|
+
destroy: 'string',
|
|
49
|
+
provision: 'string',
|
|
50
|
+
shutdown: 'string',
|
|
51
|
+
assert_operation_valid: 'string',
|
|
52
|
+
awaiting_memory_live: 'string',
|
|
53
|
+
call_plugin: 'string',
|
|
54
|
+
changing_dynamic_range: 'string',
|
|
55
|
+
changing_memory_limits: 'string',
|
|
56
|
+
changing_memory_live: 'string',
|
|
57
|
+
changing_NVRAM: 'string',
|
|
58
|
+
changing_shadow_memory: 'string',
|
|
59
|
+
changing_shadow_memory_live: 'string',
|
|
60
|
+
changing_static_range: 'string',
|
|
61
|
+
changing_VCPUs: 'string',
|
|
62
|
+
changing_VCPUs_live: 'string',
|
|
63
|
+
checkpoint: 'string',
|
|
64
|
+
clean_reboot: 'string',
|
|
65
|
+
clean_shutdown: 'string',
|
|
66
|
+
clone: 'string',
|
|
67
|
+
copy: 'string',
|
|
68
|
+
create_template: 'string',
|
|
69
|
+
create_vtpm: 'string',
|
|
70
|
+
csvm: 'string',
|
|
71
|
+
data_source_op: 'string',
|
|
72
|
+
export: 'string',
|
|
73
|
+
get_boot_record: 'string',
|
|
74
|
+
hard_reboot: 'string',
|
|
75
|
+
hard_shutdown: 'string',
|
|
76
|
+
import: 'string',
|
|
77
|
+
make_into_template: 'string',
|
|
78
|
+
metadata_export: 'string',
|
|
79
|
+
migrate_send: 'string',
|
|
80
|
+
pause: 'string',
|
|
81
|
+
pool_migrate: 'string',
|
|
82
|
+
power_state_reset: 'string',
|
|
83
|
+
query_services: 'string',
|
|
84
|
+
resume: 'string',
|
|
85
|
+
resume_on: 'string',
|
|
86
|
+
revert: 'string',
|
|
87
|
+
reverting: 'string',
|
|
88
|
+
send_sysrq: 'string',
|
|
89
|
+
send_trigger: 'string',
|
|
90
|
+
snapshot: 'string',
|
|
91
|
+
snapshot_with_quiesce: 'string',
|
|
92
|
+
start: 'string',
|
|
93
|
+
start_on: 'string',
|
|
94
|
+
suspend: 'string',
|
|
95
|
+
unpause: 'string',
|
|
96
|
+
update_allowed_operations: 'string',
|
|
97
|
+
},
|
|
98
|
+
boot: {
|
|
99
|
+
additionalProp1: 'string',
|
|
100
|
+
additionalProp2: 'string',
|
|
101
|
+
additionalProp3: 'string',
|
|
102
|
+
},
|
|
103
|
+
coresPerSocket: 0,
|
|
104
|
+
cpuCap: 0,
|
|
105
|
+
cpuMask: [0],
|
|
106
|
+
cpuWeight: 0,
|
|
107
|
+
creation: {
|
|
108
|
+
additionalProp1: 'string',
|
|
109
|
+
additionalProp2: 'string',
|
|
110
|
+
additionalProp3: 'string',
|
|
111
|
+
},
|
|
112
|
+
current_operations: {
|
|
113
|
+
additionalProp1: 'destroy',
|
|
114
|
+
additionalProp2: 'destroy',
|
|
115
|
+
additionalProp3: 'destroy',
|
|
116
|
+
},
|
|
117
|
+
docker: {
|
|
118
|
+
version: 'string',
|
|
119
|
+
process: 'string',
|
|
120
|
+
info: 'string',
|
|
121
|
+
enabled: true,
|
|
122
|
+
containers: ['string'],
|
|
123
|
+
},
|
|
124
|
+
expNestedHvm: true,
|
|
125
|
+
hasVendorDevice: true,
|
|
126
|
+
high_availability: 'string',
|
|
127
|
+
installTime: 0,
|
|
128
|
+
isFirmwareSupported: true,
|
|
129
|
+
memory: {
|
|
130
|
+
usage: 0,
|
|
131
|
+
static: [0],
|
|
132
|
+
size: 0,
|
|
133
|
+
dynamic: [0],
|
|
134
|
+
},
|
|
135
|
+
mainIpAddress: 'string',
|
|
136
|
+
managementAgentDetected: true,
|
|
137
|
+
name_description: 'string',
|
|
138
|
+
name_label: 'string',
|
|
139
|
+
needsVtpm: true,
|
|
140
|
+
nicType: 'string',
|
|
141
|
+
notes: 'string',
|
|
142
|
+
os_version: {
|
|
143
|
+
additionalProp1: 'string',
|
|
144
|
+
additionalProp2: 'string',
|
|
145
|
+
additionalProp3: 'string',
|
|
146
|
+
},
|
|
147
|
+
other: {
|
|
148
|
+
additionalProp1: 'string',
|
|
149
|
+
additionalProp2: 'string',
|
|
150
|
+
additionalProp3: 'string',
|
|
151
|
+
},
|
|
152
|
+
parent: 'string',
|
|
153
|
+
power_state: 'Running',
|
|
154
|
+
pvDriversDetected: true,
|
|
155
|
+
pvDriversUpToDate: true,
|
|
156
|
+
pvDriversVersion: 'string',
|
|
157
|
+
resourceSet: 'string',
|
|
158
|
+
secureBoot: true,
|
|
159
|
+
snapshots: ['string'],
|
|
160
|
+
startDelay: 0,
|
|
161
|
+
startTime: 0,
|
|
162
|
+
suspendSr: 'string',
|
|
163
|
+
tags: ['string'],
|
|
164
|
+
vga: 'string',
|
|
165
|
+
videoram: 0,
|
|
166
|
+
viridian: true,
|
|
167
|
+
virtualizationMode: 'hvm',
|
|
168
|
+
xenStoreData: {
|
|
169
|
+
additionalProp1: 'string',
|
|
170
|
+
additionalProp2: 'string',
|
|
171
|
+
additionalProp3: 'string',
|
|
172
|
+
},
|
|
173
|
+
$snapshot_of: 'string',
|
|
174
|
+
id: 'string',
|
|
175
|
+
snapshot_time: 0,
|
|
176
|
+
suspendVdi: 'string',
|
|
177
|
+
type: 'VM-snapshot',
|
|
178
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export const vmTemplateIds = [
|
|
2
|
+
'/rest/v0/vm-templates/fe3d015b-d08e-1c68-9587-64aff7f9e5f5-7279a78a-4756-4fc3-99f0-3e7694c0319e',
|
|
3
|
+
'/rest/v0/vm-templates/fe3d015b-d08e-1c68-9587-64aff7f9e5f5-a3d70e4d-c5ac-4dfb-999b-30a0a7efe546',
|
|
4
|
+
];
|
|
5
|
+
export const partialVmTemplates = [
|
|
6
|
+
{
|
|
7
|
+
id: 'fe3d015b-d08e-1c68-9587-64aff7f9e5f5-7279a78a-4756-4fc3-99f0-3e7694c0319e',
|
|
8
|
+
isDefaultTemplate: true,
|
|
9
|
+
name_label: 'NeoKylin Linux Server 7',
|
|
10
|
+
href: '/rest/v0/vm-templates/fe3d015b-d08e-1c68-9587-64aff7f9e5f5-7279a78a-4756-4fc3-99f0-3e7694c0319e',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 'fe3d015b-d08e-1c68-9587-64aff7f9e5f5-a3d70e4d-c5ac-4dfb-999b-30a0a7efe546',
|
|
14
|
+
isDefaultTemplate: true,
|
|
15
|
+
name_label: 'CentOS Stream 9',
|
|
16
|
+
href: '/rest/v0/vm-templates/fe3d015b-d08e-1c68-9587-64aff7f9e5f5-a3d70e4d-c5ac-4dfb-999b-30a0a7efe546',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
export const vmTemplate = {
|
|
20
|
+
type: 'VM-template',
|
|
21
|
+
addresses: {},
|
|
22
|
+
auto_poweron: false,
|
|
23
|
+
bios_strings: {},
|
|
24
|
+
blockedOperations: {},
|
|
25
|
+
boot: {
|
|
26
|
+
firmware: 'bios',
|
|
27
|
+
order: 'cdn',
|
|
28
|
+
},
|
|
29
|
+
CPUs: {
|
|
30
|
+
max: 1,
|
|
31
|
+
number: 1,
|
|
32
|
+
},
|
|
33
|
+
current_operations: {},
|
|
34
|
+
expNestedHvm: false,
|
|
35
|
+
viridian: false,
|
|
36
|
+
high_availability: '',
|
|
37
|
+
isFirmwareSupported: true,
|
|
38
|
+
memory: {
|
|
39
|
+
dynamic: [4294967296, 4294967296],
|
|
40
|
+
static: [2147483648, 4294967296],
|
|
41
|
+
size: 4294967296,
|
|
42
|
+
},
|
|
43
|
+
installTime: null,
|
|
44
|
+
name_description: 'To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>',
|
|
45
|
+
name_label: 'Oracle Linux 7',
|
|
46
|
+
needsVtpm: false,
|
|
47
|
+
other: {
|
|
48
|
+
default_template: 'true',
|
|
49
|
+
import_task: 'OpaqueRef:335a2d25-736f-77aa-bd27-1016e2e4d29f',
|
|
50
|
+
mac_seed: 'f11d04a8-64cc-468a-b079-17039a67cf8c',
|
|
51
|
+
linux_template: 'true',
|
|
52
|
+
'install-methods': 'cdrom,nfs,http,ftp',
|
|
53
|
+
disks: '<provision><disk bootable="true" device="0" size="10737418240" sr="" type="system"/></provision>',
|
|
54
|
+
},
|
|
55
|
+
os_version: null,
|
|
56
|
+
power_state: 'Halted',
|
|
57
|
+
hasVendorDevice: false,
|
|
58
|
+
snapshots: [],
|
|
59
|
+
startDelay: 0,
|
|
60
|
+
startTime: null,
|
|
61
|
+
secureBoot: false,
|
|
62
|
+
tags: [],
|
|
63
|
+
VIFs: [],
|
|
64
|
+
VTPMs: [],
|
|
65
|
+
virtualizationMode: 'hvm',
|
|
66
|
+
$container: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
67
|
+
$VBDs: [],
|
|
68
|
+
VGPUs: [],
|
|
69
|
+
$VGPUs: [],
|
|
70
|
+
xenStoreData: {},
|
|
71
|
+
vga: 'std',
|
|
72
|
+
videoram: '8',
|
|
73
|
+
id: 'b7569d99-30f8-178a-7d94-801de3e29b5b-f873abe0-b138-4995-8f6f-498b423d234d',
|
|
74
|
+
isDefaultTemplate: true,
|
|
75
|
+
template_info: {
|
|
76
|
+
disks: [
|
|
77
|
+
{
|
|
78
|
+
bootable: true,
|
|
79
|
+
device: '0',
|
|
80
|
+
size: 10737418240,
|
|
81
|
+
type: 'system',
|
|
82
|
+
SR: '',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
install_methods: ['cdrom', 'nfs', 'http', 'ftp'],
|
|
86
|
+
},
|
|
87
|
+
uuid: 'f873abe0-b138-4995-8f6f-498b423d234d',
|
|
88
|
+
$pool: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
89
|
+
$poolId: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
|
|
90
|
+
_xapiRef: 'OpaqueRef:3a9b74fe-57d5-52f7-31ec-fbb0de9e8a1e',
|
|
91
|
+
};
|