@xen-orchestra/rest-api 0.22.1 → 0.23.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.
@@ -7,6 +7,88 @@
7
7
  "requestBodies": {},
8
8
  "responses": {},
9
9
  "schemas": {
10
+ "IsEmptyData": {
11
+ "properties": {
12
+ "isEmpty": {
13
+ "type": "boolean",
14
+ "enum": [
15
+ true
16
+ ],
17
+ "nullable": false
18
+ }
19
+ },
20
+ "required": [
21
+ "isEmpty"
22
+ ],
23
+ "type": "object"
24
+ },
25
+ "MissingPatchesInfo": {
26
+ "properties": {
27
+ "nPoolsWithMissingPatches": {
28
+ "type": "number",
29
+ "format": "double"
30
+ },
31
+ "nPools": {
32
+ "type": "number",
33
+ "format": "double"
34
+ },
35
+ "nHostsFailed": {
36
+ "type": "number",
37
+ "format": "double"
38
+ },
39
+ "nHostsWithMissingPatches": {
40
+ "type": "number",
41
+ "format": "double"
42
+ },
43
+ "nHostsEol": {
44
+ "anyOf": [
45
+ {
46
+ "type": "number",
47
+ "format": "double"
48
+ },
49
+ {
50
+ "$ref": "#/components/schemas/IsEmptyData"
51
+ }
52
+ ]
53
+ },
54
+ "nHosts": {
55
+ "type": "number",
56
+ "format": "double"
57
+ },
58
+ "hasAuthorization": {
59
+ "type": "boolean",
60
+ "enum": [
61
+ true
62
+ ],
63
+ "nullable": false
64
+ }
65
+ },
66
+ "required": [
67
+ "nPoolsWithMissingPatches",
68
+ "nPools",
69
+ "nHostsFailed",
70
+ "nHostsWithMissingPatches",
71
+ "nHostsEol",
72
+ "nHosts",
73
+ "hasAuthorization"
74
+ ],
75
+ "type": "object"
76
+ },
77
+ "HasNoAuthorization": {
78
+ "properties": {
79
+ "hasAuthorization": {
80
+ "type": "boolean",
81
+ "enum": [
82
+ false
83
+ ],
84
+ "nullable": false
85
+ }
86
+ },
87
+ "required": [
88
+ "hasAuthorization"
89
+ ],
90
+ "type": "object"
91
+ },
10
92
  "PromiseWriteInStreamError": {
11
93
  "properties": {
12
94
  "error": {
@@ -83,6 +165,84 @@
83
165
  },
84
166
  "type": "object"
85
167
  },
168
+ "IsMaybeExpired_DashboardBackupRepositoriesSizeInfo_": {
169
+ "allOf": [
170
+ {
171
+ "$ref": "#/components/schemas/DashboardBackupRepositoriesSizeInfo"
172
+ },
173
+ {
174
+ "properties": {
175
+ "isExpired": {
176
+ "type": "boolean",
177
+ "enum": [
178
+ true
179
+ ],
180
+ "nullable": false
181
+ }
182
+ },
183
+ "type": "object"
184
+ }
185
+ ]
186
+ },
187
+ "IsMaybeExpired_IsEmptyData_": {
188
+ "allOf": [
189
+ {
190
+ "$ref": "#/components/schemas/IsEmptyData"
191
+ },
192
+ {
193
+ "properties": {
194
+ "isExpired": {
195
+ "type": "boolean",
196
+ "enum": [
197
+ true
198
+ ],
199
+ "nullable": false
200
+ }
201
+ },
202
+ "type": "object"
203
+ }
204
+ ]
205
+ },
206
+ "SrSizeInfo": {
207
+ "properties": {
208
+ "size": {
209
+ "properties": {
210
+ "used": {
211
+ "type": "number",
212
+ "format": "double"
213
+ },
214
+ "total": {
215
+ "type": "number",
216
+ "format": "double"
217
+ },
218
+ "replicated": {
219
+ "type": "number",
220
+ "format": "double"
221
+ },
222
+ "other": {
223
+ "type": "number",
224
+ "format": "double"
225
+ },
226
+ "available": {
227
+ "type": "number",
228
+ "format": "double"
229
+ }
230
+ },
231
+ "required": [
232
+ "used",
233
+ "total",
234
+ "replicated",
235
+ "other",
236
+ "available"
237
+ ],
238
+ "type": "object"
239
+ }
240
+ },
241
+ "required": [
242
+ "size"
243
+ ],
244
+ "type": "object"
245
+ },
86
246
  "BACKUP_TYPE": {
87
247
  "type": "string",
88
248
  "enum": [
@@ -163,6 +323,10 @@
163
323
  "type": "number",
164
324
  "format": "double"
165
325
  },
326
+ "noRecentRun": {
327
+ "type": "number",
328
+ "format": "double"
329
+ },
166
330
  "failed": {
167
331
  "type": "number",
168
332
  "format": "double"
@@ -176,6 +340,7 @@
176
340
  "total",
177
341
  "successful",
178
342
  "skipped",
343
+ "noRecentRun",
179
344
  "failed",
180
345
  "disabled"
181
346
  ],
@@ -189,10 +354,33 @@
189
354
  ],
190
355
  "type": "object"
191
356
  },
357
+ "IsMaybeExpired_DashboardBackupsInfo_": {
358
+ "allOf": [
359
+ {
360
+ "$ref": "#/components/schemas/DashboardBackupsInfo"
361
+ },
362
+ {
363
+ "properties": {
364
+ "isExpired": {
365
+ "type": "boolean",
366
+ "enum": [
367
+ true
368
+ ],
369
+ "nullable": false
370
+ }
371
+ },
372
+ "type": "object"
373
+ }
374
+ ]
375
+ },
192
376
  "XoaDashboard": {
193
377
  "properties": {
194
378
  "poolsStatus": {
195
379
  "properties": {
380
+ "total": {
381
+ "type": "number",
382
+ "format": "double"
383
+ },
196
384
  "unknown": {
197
385
  "type": "number",
198
386
  "format": "double"
@@ -201,44 +389,60 @@
201
389
  "type": "number",
202
390
  "format": "double"
203
391
  },
392
+ "disconnected": {
393
+ "type": "number",
394
+ "format": "double"
395
+ },
204
396
  "connected": {
205
397
  "type": "number",
206
398
  "format": "double"
207
399
  }
208
400
  },
209
401
  "required": [
402
+ "total",
210
403
  "unknown",
211
404
  "unreachable",
405
+ "disconnected",
212
406
  "connected"
213
407
  ],
214
408
  "type": "object"
215
409
  },
216
410
  "resourcesOverview": {
217
- "properties": {
218
- "srSize": {
219
- "type": "number",
220
- "format": "double"
221
- },
222
- "memorySize": {
223
- "type": "number",
224
- "format": "double"
411
+ "anyOf": [
412
+ {
413
+ "properties": {
414
+ "srSize": {
415
+ "type": "number",
416
+ "format": "double"
417
+ },
418
+ "memorySize": {
419
+ "type": "number",
420
+ "format": "double"
421
+ },
422
+ "nCpus": {
423
+ "type": "number",
424
+ "format": "double"
425
+ }
426
+ },
427
+ "required": [
428
+ "srSize",
429
+ "memorySize",
430
+ "nCpus"
431
+ ],
432
+ "type": "object"
225
433
  },
226
- "nCpus": {
227
- "type": "number",
228
- "format": "double"
434
+ {
435
+ "$ref": "#/components/schemas/IsEmptyData"
229
436
  }
230
- },
231
- "required": [
232
- "srSize",
233
- "memorySize",
234
- "nCpus"
235
- ],
236
- "type": "object"
437
+ ]
237
438
  },
238
439
  "backups": {
239
440
  "anyOf": [
240
441
  {
241
- "$ref": "#/components/schemas/DashboardBackupsInfo"
442
+ "$ref": "#/components/schemas/IsMaybeExpired_DashboardBackupsInfo_"
443
+ },
444
+ {
445
+ "$ref": "#/components/schemas/IsMaybeExpired_IsEmptyData_"
242
446
  },
243
447
  {
244
448
  "$ref": "#/components/schemas/PromiseWriteInStreamError"
@@ -248,54 +452,23 @@
248
452
  "storageRepositories": {
249
453
  "anyOf": [
250
454
  {
251
- "properties": {
252
- "size": {
253
- "properties": {
254
- "used": {
255
- "type": "number",
256
- "format": "double"
257
- },
258
- "total": {
259
- "type": "number",
260
- "format": "double"
261
- },
262
- "replicated": {
263
- "type": "number",
264
- "format": "double"
265
- },
266
- "other": {
267
- "type": "number",
268
- "format": "double"
269
- },
270
- "available": {
271
- "type": "number",
272
- "format": "double"
273
- }
274
- },
275
- "required": [
276
- "used",
277
- "total",
278
- "replicated",
279
- "other",
280
- "available"
281
- ],
282
- "type": "object"
283
- }
284
- },
285
- "required": [
286
- "size"
287
- ],
288
- "type": "object"
455
+ "$ref": "#/components/schemas/SrSizeInfo"
289
456
  },
290
457
  {
291
458
  "$ref": "#/components/schemas/PromiseWriteInStreamError"
459
+ },
460
+ {
461
+ "$ref": "#/components/schemas/IsEmptyData"
292
462
  }
293
463
  ]
294
464
  },
295
465
  "backupRepositories": {
296
466
  "anyOf": [
297
467
  {
298
- "$ref": "#/components/schemas/DashboardBackupRepositoriesSizeInfo"
468
+ "$ref": "#/components/schemas/IsMaybeExpired_DashboardBackupRepositoriesSizeInfo_"
469
+ },
470
+ {
471
+ "$ref": "#/components/schemas/IsMaybeExpired_IsEmptyData_"
299
472
  },
300
473
  {
301
474
  "$ref": "#/components/schemas/PromiseWriteInStreamError"
@@ -305,49 +478,13 @@
305
478
  "missingPatches": {
306
479
  "anyOf": [
307
480
  {
308
- "properties": {
309
- "hasAuthorization": {
310
- "type": "boolean",
311
- "enum": [
312
- false
313
- ],
314
- "nullable": false
315
- }
316
- },
317
- "required": [
318
- "hasAuthorization"
319
- ],
320
- "type": "object"
481
+ "$ref": "#/components/schemas/MissingPatchesInfo"
321
482
  },
322
483
  {
323
- "properties": {
324
- "nHostsFailed": {
325
- "type": "number",
326
- "format": "double"
327
- },
328
- "nPoolsWithMissingPatches": {
329
- "type": "number",
330
- "format": "double"
331
- },
332
- "nHostsWithMissingPatches": {
333
- "type": "number",
334
- "format": "double"
335
- },
336
- "hasAuthorization": {
337
- "type": "boolean",
338
- "enum": [
339
- true
340
- ],
341
- "nullable": false
342
- }
343
- },
344
- "required": [
345
- "nHostsFailed",
346
- "nPoolsWithMissingPatches",
347
- "nHostsWithMissingPatches",
348
- "hasAuthorization"
349
- ],
350
- "type": "object"
484
+ "$ref": "#/components/schemas/HasNoAuthorization"
485
+ },
486
+ {
487
+ "$ref": "#/components/schemas/PromiseWriteInStreamError"
351
488
  }
352
489
  ]
353
490
  },
@@ -361,10 +498,26 @@
361
498
  "type": "number",
362
499
  "format": "double"
363
500
  },
501
+ "suspended": {
502
+ "type": "number",
503
+ "format": "double"
504
+ },
505
+ "running": {
506
+ "type": "number",
507
+ "format": "double"
508
+ },
509
+ "paused": {
510
+ "type": "number",
511
+ "format": "double"
512
+ },
364
513
  "inactive": {
365
514
  "type": "number",
366
515
  "format": "double"
367
516
  },
517
+ "halted": {
518
+ "type": "number",
519
+ "format": "double"
520
+ },
368
521
  "active": {
369
522
  "type": "number",
370
523
  "format": "double"
@@ -373,7 +526,11 @@
373
526
  "required": [
374
527
  "total",
375
528
  "unknown",
529
+ "suspended",
530
+ "running",
531
+ "paused",
376
532
  "inactive",
533
+ "halted",
377
534
  "active"
378
535
  ],
379
536
  "type": "object"
@@ -395,27 +552,21 @@
395
552
  "running": {
396
553
  "type": "number",
397
554
  "format": "double"
555
+ },
556
+ "disabled": {
557
+ "type": "number",
558
+ "format": "double"
398
559
  }
399
560
  },
400
561
  "required": [
401
562
  "total",
402
563
  "unknown",
403
564
  "halted",
404
- "running"
565
+ "running",
566
+ "disabled"
405
567
  ],
406
568
  "type": "object"
407
569
  },
408
- "nHostsEol": {
409
- "anyOf": [
410
- {
411
- "type": "number",
412
- "format": "double"
413
- },
414
- {
415
- "$ref": "#/components/schemas/PromiseWriteInStreamError"
416
- }
417
- ]
418
- },
419
570
  "nHosts": {
420
571
  "type": "number",
421
572
  "format": "double"
@@ -2557,23 +2708,31 @@
2557
2708
  "type": "object"
2558
2709
  },
2559
2710
  "Unbrand_VmDashboard-at-backupsInfo_91_replication_93__": {
2560
- "properties": {
2561
- "id": {
2562
- "type": "string"
2563
- },
2564
- "timestamp": {
2565
- "type": "number",
2566
- "format": "double"
2711
+ "anyOf": [
2712
+ {
2713
+ "properties": {},
2714
+ "type": "object"
2567
2715
  },
2568
- "sr": {
2569
- "type": "string"
2716
+ {
2717
+ "properties": {
2718
+ "id": {
2719
+ "type": "string"
2720
+ },
2721
+ "timestamp": {
2722
+ "type": "number",
2723
+ "format": "double"
2724
+ },
2725
+ "sr": {
2726
+ "type": "string"
2727
+ }
2728
+ },
2729
+ "required": [
2730
+ "id",
2731
+ "timestamp"
2732
+ ],
2733
+ "type": "object"
2570
2734
  }
2571
- },
2572
- "required": [
2573
- "id",
2574
- "timestamp"
2575
- ],
2576
- "type": "object"
2735
+ ]
2577
2736
  },
2578
2737
  "Unbrand_VmDashboardBackupArchive_": {
2579
2738
  "properties": {
@@ -2618,7 +2777,7 @@
2618
2777
  "enum": [
2619
2778
  "protected",
2620
2779
  "unprotected",
2621
- "not-in-job"
2780
+ "not-in-active-job"
2622
2781
  ]
2623
2782
  },
2624
2783
  "lastRuns": {
@@ -2630,6 +2789,7 @@
2630
2789
  },
2631
2790
  "required": [
2632
2791
  "backupArchives",
2792
+ "replication",
2633
2793
  "vmProtection",
2634
2794
  "lastRuns"
2635
2795
  ],
@@ -5185,221 +5345,6 @@
5185
5345
  ],
5186
5346
  "type": "object"
5187
5347
  },
5188
- "Partial_Unbrand_XoVdi_-or-Unbrand_XoVdiSnapshot__": {
5189
- "anyOf": [
5190
- {
5191
- "properties": {
5192
- "$pool": {
5193
- "type": "string"
5194
- },
5195
- "$poolId": {
5196
- "type": "string",
5197
- "deprecated": true
5198
- },
5199
- "_xapiRef": {
5200
- "type": "string"
5201
- },
5202
- "uuid": {
5203
- "type": "string"
5204
- },
5205
- "$SR": {
5206
- "type": "string"
5207
- },
5208
- "$VBDs": {
5209
- "items": {
5210
- "type": "string"
5211
- },
5212
- "type": "array"
5213
- },
5214
- "VDI_type": {
5215
- "$ref": "#/components/schemas/VDI_TYPE"
5216
- },
5217
- "cbt_enabled": {
5218
- "type": "boolean"
5219
- },
5220
- "current_operations": {
5221
- "$ref": "#/components/schemas/Record_string.VDI_OPERATIONS_"
5222
- },
5223
- "missing": {
5224
- "type": "boolean"
5225
- },
5226
- "name_description": {
5227
- "type": "string"
5228
- },
5229
- "name_label": {
5230
- "type": "string"
5231
- },
5232
- "other_config": {
5233
- "$ref": "#/components/schemas/Record_string.string_"
5234
- },
5235
- "parent": {
5236
- "type": "string"
5237
- },
5238
- "image_format": {
5239
- "type": "string"
5240
- },
5241
- "size": {
5242
- "type": "number",
5243
- "format": "double"
5244
- },
5245
- "snapshots": {
5246
- "items": {
5247
- "type": "string"
5248
- },
5249
- "type": "array"
5250
- },
5251
- "tags": {
5252
- "items": {
5253
- "type": "string"
5254
- },
5255
- "type": "array"
5256
- },
5257
- "usage": {
5258
- "type": "number",
5259
- "format": "double"
5260
- },
5261
- "id": {
5262
- "type": "string"
5263
- },
5264
- "type": {
5265
- "type": "string",
5266
- "enum": [
5267
- "VDI"
5268
- ]
5269
- }
5270
- },
5271
- "type": "object"
5272
- },
5273
- {
5274
- "properties": {
5275
- "$pool": {
5276
- "type": "string"
5277
- },
5278
- "$poolId": {
5279
- "type": "string",
5280
- "deprecated": true
5281
- },
5282
- "_xapiRef": {
5283
- "type": "string"
5284
- },
5285
- "uuid": {
5286
- "type": "string"
5287
- },
5288
- "$SR": {
5289
- "type": "string"
5290
- },
5291
- "$VBDs": {
5292
- "items": {
5293
- "type": "string"
5294
- },
5295
- "type": "array"
5296
- },
5297
- "VDI_type": {
5298
- "$ref": "#/components/schemas/VDI_TYPE"
5299
- },
5300
- "cbt_enabled": {
5301
- "type": "boolean"
5302
- },
5303
- "current_operations": {
5304
- "$ref": "#/components/schemas/Record_string.VDI_OPERATIONS_"
5305
- },
5306
- "missing": {
5307
- "type": "boolean"
5308
- },
5309
- "name_description": {
5310
- "type": "string"
5311
- },
5312
- "name_label": {
5313
- "type": "string"
5314
- },
5315
- "other_config": {
5316
- "$ref": "#/components/schemas/Record_string.string_"
5317
- },
5318
- "parent": {
5319
- "type": "string"
5320
- },
5321
- "image_format": {
5322
- "type": "string"
5323
- },
5324
- "size": {
5325
- "type": "number",
5326
- "format": "double"
5327
- },
5328
- "snapshots": {
5329
- "items": {
5330
- "type": "string"
5331
- },
5332
- "type": "array"
5333
- },
5334
- "tags": {
5335
- "items": {
5336
- "type": "string"
5337
- },
5338
- "type": "array"
5339
- },
5340
- "usage": {
5341
- "type": "number",
5342
- "format": "double"
5343
- },
5344
- "id": {
5345
- "type": "string"
5346
- },
5347
- "snapshot_time": {
5348
- "type": "number",
5349
- "format": "double"
5350
- },
5351
- "$snapshot_of": {
5352
- "type": "string"
5353
- },
5354
- "type": {
5355
- "type": "string",
5356
- "enum": [
5357
- "VDI-snapshot"
5358
- ]
5359
- }
5360
- },
5361
- "type": "object"
5362
- }
5363
- ],
5364
- "description": "Make all properties in T optional"
5365
- },
5366
- "WithHref_Partial_Unbrand_XoVdi_-or-Unbrand_XoVdiSnapshot___": {
5367
- "allOf": [
5368
- {
5369
- "$ref": "#/components/schemas/Partial_Unbrand_XoVdi_-or-Unbrand_XoVdiSnapshot__"
5370
- },
5371
- {
5372
- "properties": {
5373
- "href": {
5374
- "type": "string"
5375
- }
5376
- },
5377
- "required": [
5378
- "href"
5379
- ],
5380
- "type": "object"
5381
- }
5382
- ]
5383
- },
5384
- "SendObjects_Partial_Unbrand_XoVdi_-or-Unbrand_XoVdiSnapshot___": {
5385
- "anyOf": [
5386
- {
5387
- "items": {
5388
- "type": "string"
5389
- },
5390
- "type": "array"
5391
- },
5392
- {
5393
- "items": {
5394
- "$ref": "#/components/schemas/WithHref_Partial_Unbrand_XoVdi_-or-Unbrand_XoVdiSnapshot___"
5395
- },
5396
- "type": "array"
5397
- },
5398
- {
5399
- "$ref": "#/components/schemas/NdjsonStream"
5400
- }
5401
- ]
5402
- },
5403
5348
  "VIF_LOCKING_MODE": {
5404
5349
  "type": "string",
5405
5350
  "enum": [
@@ -5838,6 +5783,58 @@
5838
5783
  ],
5839
5784
  "type": "object"
5840
5785
  },
5786
+ "VBD_TYPE": {
5787
+ "type": "string",
5788
+ "enum": [
5789
+ "CD",
5790
+ "Disk",
5791
+ "Floppy"
5792
+ ]
5793
+ },
5794
+ "VBD_MODE": {
5795
+ "type": "string",
5796
+ "enum": [
5797
+ "RO",
5798
+ "RW"
5799
+ ]
5800
+ },
5801
+ "Pick_Unbrand_Parameters_Xapi_91_VBD_create_93___91_0_93__.Exclude_keyofUnbrand_Parameters_Xapi_91_VBD_create_93___91_0_93__.VM-or-VDI__": {
5802
+ "properties": {
5803
+ "type": {
5804
+ "$ref": "#/components/schemas/VBD_TYPE"
5805
+ },
5806
+ "other_config": {
5807
+ "$ref": "#/components/schemas/Record_string.string_"
5808
+ },
5809
+ "mode": {
5810
+ "$ref": "#/components/schemas/VBD_MODE"
5811
+ },
5812
+ "bootable": {
5813
+ "type": "boolean"
5814
+ },
5815
+ "empty": {
5816
+ "type": "boolean"
5817
+ },
5818
+ "qos_algorithm_params": {
5819
+ "$ref": "#/components/schemas/Record_string.string_"
5820
+ },
5821
+ "qos_algorithm_type": {
5822
+ "type": "string"
5823
+ },
5824
+ "unpluggable": {
5825
+ "type": "boolean"
5826
+ },
5827
+ "userdevice": {
5828
+ "type": "string"
5829
+ }
5830
+ },
5831
+ "type": "object",
5832
+ "description": "From T, pick a set of properties whose keys are in the union K"
5833
+ },
5834
+ "Omit_Unbrand_Parameters_Xapi_91_VBD_create_93___91_0_93__.VM-or-VDI_": {
5835
+ "$ref": "#/components/schemas/Pick_Unbrand_Parameters_Xapi_91_VBD_create_93___91_0_93__.Exclude_keyofUnbrand_Parameters_Xapi_91_VBD_create_93___91_0_93__.VM-or-VDI__",
5836
+ "description": "Construct a type with the properties of T except for those in type K."
5837
+ },
5841
5838
  "Partial_Unbrand_XoVbd__": {
5842
5839
  "properties": {
5843
5840
  "$pool": {
@@ -7665,6 +7662,9 @@
7665
7662
  "name_label": {
7666
7663
  "type": "string"
7667
7664
  },
7665
+ "secureBoot": {
7666
+ "type": "boolean"
7667
+ },
7668
7668
  "clone": {
7669
7669
  "type": "boolean"
7670
7670
  },
@@ -7855,6 +7855,9 @@
7855
7855
  },
7856
7856
  "destroy_cloud_config_vdi": {
7857
7857
  "type": "boolean"
7858
+ },
7859
+ "createVtpm": {
7860
+ "type": "boolean"
7858
7861
  }
7859
7862
  },
7860
7863
  "required": [
@@ -12023,7 +12026,7 @@
12023
12026
  },
12024
12027
  "info": {
12025
12028
  "title": "@xen-orchestra/rest-api",
12026
- "version": "0.22.1",
12029
+ "version": "0.23.0",
12027
12030
  "description": "REST API to manage your XOA",
12028
12031
  "license": {
12029
12032
  "name": "AGPL-3.0-or-later"
@@ -12056,61 +12059,51 @@
12056
12059
  "nPools": 2,
12057
12060
  "nHosts": 5,
12058
12061
  "backupRepositories": {
12059
- "s3": {
12060
- "size": {
12061
- "backups": 286295393792
12062
- }
12063
- },
12064
- "other": {
12065
- "size": {
12066
- "available": 62630354944,
12067
- "backups": 20684251648,
12068
- "other": 66875031040,
12069
- "total": 150189637632,
12070
- "used": 87559282688
12071
- }
12072
- }
12062
+ "isEmpty": true
12073
12063
  },
12074
12064
  "resourcesOverview": {
12075
12065
  "nCpus": 52,
12076
- "memorySize": 107374182400,
12077
- "srSize": 751123595264
12066
+ "memorySize": 111669149696,
12067
+ "srSize": 1132693933056
12078
12068
  },
12079
12069
  "poolsStatus": {
12080
12070
  "connected": 2,
12081
- "unreachable": 7,
12082
- "unknown": 0
12071
+ "disconnected": 1,
12072
+ "unreachable": 0,
12073
+ "unknown": 0,
12074
+ "total": 3
12083
12075
  },
12084
- "nHostsEol": 0,
12085
12076
  "missingPatches": {
12086
- "hasAuthorization": true,
12087
- "nHostsFailed": 1,
12088
- "nHostsWithMissingPatches": 4,
12089
- "nPoolsWithMissingPatches": 2
12077
+ "hasAuthorization": false
12090
12078
  },
12091
12079
  "storageRepositories": {
12092
12080
  "size": {
12093
- "available": 628454834176,
12094
- "other": 122641256960,
12095
- "replicated": 27504128,
12096
- "total": 751123595264,
12097
- "used": 122668761088
12081
+ "available": 622560659456,
12082
+ "other": 494094312448,
12083
+ "replicated": 16038961152,
12084
+ "total": 1132693933056,
12085
+ "used": 510133273600
12098
12086
  }
12099
12087
  },
12100
12088
  "backups": {
12101
- "jobs": {
12102
- "disabled": 8,
12103
- "failed": 0,
12104
- "skipped": 0,
12105
- "successful": 0,
12106
- "total": 8
12107
- },
12108
- "issues": [],
12109
- "vmsProtection": {
12110
- "protected": 0,
12111
- "unprotected": 0,
12112
- "notInJob": 20
12113
- }
12089
+ "isEmpty": true
12090
+ },
12091
+ "hostsStatus": {
12092
+ "disabled": 0,
12093
+ "running": 4,
12094
+ "halted": 1,
12095
+ "unknown": 0,
12096
+ "total": 5
12097
+ },
12098
+ "vmsStatus": {
12099
+ "active": 11,
12100
+ "inactive": 39,
12101
+ "running": 11,
12102
+ "halted": 39,
12103
+ "paused": 0,
12104
+ "suspended": 0,
12105
+ "unknown": 0,
12106
+ "total": 50
12114
12107
  }
12115
12108
  }
12116
12109
  }
@@ -17520,7 +17513,7 @@
17520
17513
  "content": {
17521
17514
  "application/json": {
17522
17515
  "schema": {
17523
- "$ref": "#/components/schemas/SendObjects_Partial_Unbrand_XoVdi_-or-Unbrand_XoVdiSnapshot___"
17516
+ "$ref": "#/components/schemas/SendObjects_Partial_Unbrand_XoVdi___"
17524
17517
  },
17525
17518
  "examples": {
17526
17519
  "Example 1": {
@@ -19759,6 +19752,93 @@
19759
19752
  }
19760
19753
  },
19761
19754
  "/vbds": {
19755
+ "post": {
19756
+ "operationId": "CreateVbd",
19757
+ "responses": {
19758
+ "201": {
19759
+ "description": "Resource created",
19760
+ "content": {
19761
+ "application/json": {
19762
+ "schema": {
19763
+ "properties": {
19764
+ "id": {
19765
+ "type": "string"
19766
+ }
19767
+ },
19768
+ "required": [
19769
+ "id"
19770
+ ],
19771
+ "type": "object"
19772
+ },
19773
+ "examples": {
19774
+ "Example 1": {
19775
+ "value": {
19776
+ "id": "5f9a4c0b-3548-6171-4396-699a0e56cc60"
19777
+ }
19778
+ }
19779
+ }
19780
+ }
19781
+ }
19782
+ },
19783
+ "400": {
19784
+ "description": "Bad request"
19785
+ },
19786
+ "401": {
19787
+ "description": "Authentication required"
19788
+ },
19789
+ "404": {
19790
+ "description": "Resource not found"
19791
+ },
19792
+ "422": {
19793
+ "description": "Invalid parameters"
19794
+ }
19795
+ },
19796
+ "description": "Create a VBD to attach a VDI to a VM",
19797
+ "tags": [
19798
+ "vbds"
19799
+ ],
19800
+ "security": [
19801
+ {
19802
+ "*": []
19803
+ }
19804
+ ],
19805
+ "parameters": [],
19806
+ "requestBody": {
19807
+ "required": true,
19808
+ "content": {
19809
+ "application/json": {
19810
+ "schema": {
19811
+ "allOf": [
19812
+ {
19813
+ "$ref": "#/components/schemas/Omit_Unbrand_Parameters_Xapi_91_VBD_create_93___91_0_93__.VM-or-VDI_"
19814
+ },
19815
+ {
19816
+ "properties": {
19817
+ "VDI": {
19818
+ "type": "string"
19819
+ },
19820
+ "VM": {
19821
+ "type": "string"
19822
+ }
19823
+ },
19824
+ "required": [
19825
+ "VDI",
19826
+ "VM"
19827
+ ],
19828
+ "type": "object"
19829
+ }
19830
+ ]
19831
+ },
19832
+ "example": {
19833
+ "VM": "4fe90510-8da4-1530-38e2-a7876ef374c7",
19834
+ "VDI": "656052a2-2e3e-467b-88ba-63a9ea5e4a54",
19835
+ "bootable": false,
19836
+ "mode": "RW"
19837
+ }
19838
+ }
19839
+ }
19840
+ }
19841
+ },
19762
19842
  "get": {
19763
19843
  "operationId": "GetVbds",
19764
19844
  "responses": {
@@ -19914,6 +19994,43 @@
19914
19994
  "example": "f07ab729-c0e8-721c-45ec-f11276377030"
19915
19995
  }
19916
19996
  ]
19997
+ },
19998
+ "delete": {
19999
+ "operationId": "DeleteVbd",
20000
+ "responses": {
20001
+ "204": {
20002
+ "description": "No content"
20003
+ },
20004
+ "400": {
20005
+ "description": "Bad request"
20006
+ },
20007
+ "401": {
20008
+ "description": "Authentication required"
20009
+ },
20010
+ "404": {
20011
+ "description": "Resource not found"
20012
+ }
20013
+ },
20014
+ "description": "Delete a VBD\n\nRemoves the virtual block device, detaching the VDI from the VM.\nThe VDI itself is NOT deleted.",
20015
+ "tags": [
20016
+ "vbds"
20017
+ ],
20018
+ "security": [
20019
+ {
20020
+ "*": []
20021
+ }
20022
+ ],
20023
+ "parameters": [
20024
+ {
20025
+ "in": "path",
20026
+ "name": "id",
20027
+ "required": true,
20028
+ "schema": {
20029
+ "type": "string"
20030
+ },
20031
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
20032
+ }
20033
+ ]
19917
20034
  }
19918
20035
  },
19919
20036
  "/vbds/{id}/alarms": {
@@ -20873,11 +20990,7 @@
20873
20990
  "client": {
20874
20991
  "properties": {
20875
20992
  "id": {
20876
- "type": "string",
20877
- "enum": [
20878
- "string"
20879
- ],
20880
- "nullable": false
20993
+ "type": "string"
20881
20994
  }
20882
20995
  },
20883
20996
  "type": "object"
@@ -26664,177 +26777,268 @@
26664
26777
  "example": "355ee47d-ff4c-4924-3db2-fd86ae629676"
26665
26778
  },
26666
26779
  {
26667
- "in": "path",
26668
- "name": "tag",
26669
- "required": true,
26780
+ "in": "path",
26781
+ "name": "tag",
26782
+ "required": true,
26783
+ "schema": {
26784
+ "type": "string"
26785
+ },
26786
+ "example": "from-rest-api"
26787
+ }
26788
+ ]
26789
+ },
26790
+ "delete": {
26791
+ "operationId": "DeletePoolTag",
26792
+ "responses": {
26793
+ "204": {
26794
+ "description": "No content"
26795
+ },
26796
+ "400": {
26797
+ "description": "Bad request"
26798
+ },
26799
+ "401": {
26800
+ "description": "Authentication required"
26801
+ },
26802
+ "404": {
26803
+ "description": "Resource not found"
26804
+ }
26805
+ },
26806
+ "tags": [
26807
+ "pools"
26808
+ ],
26809
+ "security": [
26810
+ {
26811
+ "*": []
26812
+ }
26813
+ ],
26814
+ "parameters": [
26815
+ {
26816
+ "in": "path",
26817
+ "name": "id",
26818
+ "required": true,
26819
+ "schema": {
26820
+ "type": "string"
26821
+ },
26822
+ "example": "355ee47d-ff4c-4924-3db2-fd86ae629676"
26823
+ },
26824
+ {
26825
+ "in": "path",
26826
+ "name": "tag",
26827
+ "required": true,
26828
+ "schema": {
26829
+ "type": "string"
26830
+ },
26831
+ "example": "from-rest-api"
26832
+ }
26833
+ ]
26834
+ }
26835
+ },
26836
+ "/pools/{id}/tasks": {
26837
+ "get": {
26838
+ "operationId": "GetPoolTasks",
26839
+ "responses": {
26840
+ "200": {
26841
+ "description": "Ok",
26842
+ "content": {
26843
+ "application/json": {
26844
+ "schema": {
26845
+ "$ref": "#/components/schemas/SendObjects_Partial_Unbrand_XoTask___"
26846
+ },
26847
+ "examples": {
26848
+ "Example 1": {
26849
+ "value": [
26850
+ "/rest/v0/tasks/0mdd1basu",
26851
+ "/rest/v0/tasks/0mdd1t24g"
26852
+ ]
26853
+ },
26854
+ "Example 2": {
26855
+ "value": [
26856
+ {
26857
+ "status": "failure",
26858
+ "id": "0mdd1basu",
26859
+ "properties": {
26860
+ "method": "xoa.licenses.getSelf",
26861
+ "params": {},
26862
+ "name": "API call: xoa.licenses.getSelf",
26863
+ "userId": "e531b8c9-3876-4ed9-8fd2-0476d5f825c9",
26864
+ "type": "api.call"
26865
+ },
26866
+ "href": "/rest/v0/tasks/0mdd1basu"
26867
+ },
26868
+ {
26869
+ "status": "failure",
26870
+ "id": "0mdd1t24g",
26871
+ "properties": {
26872
+ "method": "xoa.licenses.getSelf",
26873
+ "params": {},
26874
+ "name": "API call: xoa.licenses.getSelf",
26875
+ "userId": "e531b8c9-3876-4ed9-8fd2-0476d5f825c9",
26876
+ "type": "api.call"
26877
+ },
26878
+ "href": "/rest/v0/tasks/0mdd1t24g"
26879
+ }
26880
+ ]
26881
+ }
26882
+ }
26883
+ }
26884
+ }
26885
+ },
26886
+ "400": {
26887
+ "description": "Bad request"
26888
+ },
26889
+ "401": {
26890
+ "description": "Authentication required"
26891
+ },
26892
+ "404": {
26893
+ "description": "Resource not found"
26894
+ }
26895
+ },
26896
+ "tags": [
26897
+ "tasks",
26898
+ "pools"
26899
+ ],
26900
+ "security": [
26901
+ {
26902
+ "*": []
26903
+ }
26904
+ ],
26905
+ "parameters": [
26906
+ {
26907
+ "in": "path",
26908
+ "name": "id",
26909
+ "required": true,
26910
+ "schema": {
26911
+ "type": "string"
26912
+ }
26913
+ },
26914
+ {
26915
+ "in": "query",
26916
+ "name": "fields",
26917
+ "required": false,
26918
+ "schema": {
26919
+ "type": "string"
26920
+ },
26921
+ "example": "id,status,properties"
26922
+ },
26923
+ {
26924
+ "in": "query",
26925
+ "name": "ndjson",
26926
+ "required": false,
26927
+ "schema": {
26928
+ "type": "boolean"
26929
+ }
26930
+ },
26931
+ {
26932
+ "in": "query",
26933
+ "name": "filter",
26934
+ "required": false,
26935
+ "schema": {
26936
+ "type": "string"
26937
+ },
26938
+ "example": "status:failure"
26939
+ },
26940
+ {
26941
+ "in": "query",
26942
+ "name": "limit",
26943
+ "required": false,
26944
+ "schema": {
26945
+ "format": "double",
26946
+ "type": "number"
26947
+ },
26948
+ "example": 42
26949
+ }
26950
+ ]
26951
+ }
26952
+ },
26953
+ "/pools/{id}/actions/management_reconfigure": {
26954
+ "post": {
26955
+ "operationId": "ManagementReconfigure",
26956
+ "responses": {
26957
+ "202": {
26958
+ "description": "Action executed asynchronously",
26959
+ "content": {
26960
+ "application/json": {
26961
+ "schema": {
26962
+ "$ref": "#/components/schemas/CreateActionReturnType_void_"
26963
+ },
26964
+ "examples": {
26965
+ "Example 1": {
26966
+ "value": {
26967
+ "taskId": "0m7kl0j9l"
26968
+ }
26969
+ }
26970
+ }
26971
+ }
26972
+ }
26973
+ },
26974
+ "204": {
26975
+ "description": "No content"
26976
+ },
26977
+ "400": {
26978
+ "description": "Bad request"
26979
+ },
26980
+ "401": {
26981
+ "description": "Authentication required"
26982
+ },
26983
+ "404": {
26984
+ "description": "Resource not found"
26985
+ },
26986
+ "422": {
26987
+ "description": "Invalid parameters"
26988
+ },
26989
+ "500": {
26990
+ "description": "Internal server error, XenServer/XCP-ng error"
26991
+ }
26992
+ },
26993
+ "description": "Reconfigure the management interface for all hosts in the pool to use the given network.\n\nEach host in the pool will switch their management interface to a PIF on the specified network.\nThe PIFs on the target network must already have IP addresses configured.",
26994
+ "tags": [
26995
+ "pools"
26996
+ ],
26997
+ "security": [
26998
+ {
26999
+ "*": []
27000
+ }
27001
+ ],
27002
+ "parameters": [
27003
+ {
27004
+ "in": "path",
27005
+ "name": "id",
27006
+ "required": true,
27007
+ "schema": {
27008
+ "type": "string"
27009
+ },
27010
+ "example": "355ee47d-ff4c-4924-3db2-fd86ae629676"
27011
+ },
27012
+ {
27013
+ "in": "query",
27014
+ "name": "sync",
27015
+ "required": false,
26670
27016
  "schema": {
26671
- "type": "string"
26672
- },
26673
- "example": "from-rest-api"
26674
- }
26675
- ]
26676
- },
26677
- "delete": {
26678
- "operationId": "DeletePoolTag",
26679
- "responses": {
26680
- "204": {
26681
- "description": "No content"
26682
- },
26683
- "400": {
26684
- "description": "Bad request"
26685
- },
26686
- "401": {
26687
- "description": "Authentication required"
26688
- },
26689
- "404": {
26690
- "description": "Resource not found"
26691
- }
26692
- },
26693
- "tags": [
26694
- "pools"
26695
- ],
26696
- "security": [
26697
- {
26698
- "*": []
27017
+ "type": "boolean"
27018
+ }
26699
27019
  }
26700
27020
  ],
26701
- "parameters": [
26702
- {
26703
- "in": "path",
26704
- "name": "id",
26705
- "required": true,
26706
- "schema": {
26707
- "type": "string"
26708
- },
26709
- "example": "355ee47d-ff4c-4924-3db2-fd86ae629676"
26710
- },
26711
- {
26712
- "in": "path",
26713
- "name": "tag",
26714
- "required": true,
26715
- "schema": {
26716
- "type": "string"
26717
- },
26718
- "example": "from-rest-api"
26719
- }
26720
- ]
26721
- }
26722
- },
26723
- "/pools/{id}/tasks": {
26724
- "get": {
26725
- "operationId": "GetPoolTasks",
26726
- "responses": {
26727
- "200": {
26728
- "description": "Ok",
26729
- "content": {
26730
- "application/json": {
26731
- "schema": {
26732
- "$ref": "#/components/schemas/SendObjects_Partial_Unbrand_XoTask___"
26733
- },
26734
- "examples": {
26735
- "Example 1": {
26736
- "value": [
26737
- "/rest/v0/tasks/0mdd1basu",
26738
- "/rest/v0/tasks/0mdd1t24g"
26739
- ]
26740
- },
26741
- "Example 2": {
26742
- "value": [
26743
- {
26744
- "status": "failure",
26745
- "id": "0mdd1basu",
26746
- "properties": {
26747
- "method": "xoa.licenses.getSelf",
26748
- "params": {},
26749
- "name": "API call: xoa.licenses.getSelf",
26750
- "userId": "e531b8c9-3876-4ed9-8fd2-0476d5f825c9",
26751
- "type": "api.call"
26752
- },
26753
- "href": "/rest/v0/tasks/0mdd1basu"
26754
- },
26755
- {
26756
- "status": "failure",
26757
- "id": "0mdd1t24g",
26758
- "properties": {
26759
- "method": "xoa.licenses.getSelf",
26760
- "params": {},
26761
- "name": "API call: xoa.licenses.getSelf",
26762
- "userId": "e531b8c9-3876-4ed9-8fd2-0476d5f825c9",
26763
- "type": "api.call"
26764
- },
26765
- "href": "/rest/v0/tasks/0mdd1t24g"
26766
- }
26767
- ]
27021
+ "requestBody": {
27022
+ "required": true,
27023
+ "content": {
27024
+ "application/json": {
27025
+ "schema": {
27026
+ "properties": {
27027
+ "network": {
27028
+ "type": "string"
26768
27029
  }
26769
- }
27030
+ },
27031
+ "required": [
27032
+ "network"
27033
+ ],
27034
+ "type": "object"
27035
+ },
27036
+ "example": {
27037
+ "network": "c787b75c-3e0d-70fa-d0c3-cbfd382d7e33"
26770
27038
  }
26771
27039
  }
26772
- },
26773
- "400": {
26774
- "description": "Bad request"
26775
- },
26776
- "401": {
26777
- "description": "Authentication required"
26778
- },
26779
- "404": {
26780
- "description": "Resource not found"
26781
- }
26782
- },
26783
- "tags": [
26784
- "tasks",
26785
- "pools"
26786
- ],
26787
- "security": [
26788
- {
26789
- "*": []
26790
- }
26791
- ],
26792
- "parameters": [
26793
- {
26794
- "in": "path",
26795
- "name": "id",
26796
- "required": true,
26797
- "schema": {
26798
- "type": "string"
26799
- }
26800
- },
26801
- {
26802
- "in": "query",
26803
- "name": "fields",
26804
- "required": false,
26805
- "schema": {
26806
- "type": "string"
26807
- },
26808
- "example": "id,status,properties"
26809
- },
26810
- {
26811
- "in": "query",
26812
- "name": "ndjson",
26813
- "required": false,
26814
- "schema": {
26815
- "type": "boolean"
26816
- }
26817
- },
26818
- {
26819
- "in": "query",
26820
- "name": "filter",
26821
- "required": false,
26822
- "schema": {
26823
- "type": "string"
26824
- },
26825
- "example": "status:failure"
26826
- },
26827
- {
26828
- "in": "query",
26829
- "name": "limit",
26830
- "required": false,
26831
- "schema": {
26832
- "format": "double",
26833
- "type": "number"
26834
- },
26835
- "example": 42
26836
27040
  }
26837
- ]
27041
+ }
26838
27042
  }
26839
27043
  },
26840
27044
  "/pifs": {
@@ -35838,6 +36042,97 @@
35838
36042
  ]
35839
36043
  }
35840
36044
  },
36045
+ "/hosts/{id}/actions/management_reconfigure": {
36046
+ "post": {
36047
+ "operationId": "ManagementReconfigure",
36048
+ "responses": {
36049
+ "202": {
36050
+ "description": "Action executed asynchronously",
36051
+ "content": {
36052
+ "application/json": {
36053
+ "schema": {
36054
+ "$ref": "#/components/schemas/CreateActionReturnType_void_"
36055
+ },
36056
+ "examples": {
36057
+ "Example 1": {
36058
+ "value": {
36059
+ "taskId": "0m7kl0j9l"
36060
+ }
36061
+ }
36062
+ }
36063
+ }
36064
+ }
36065
+ },
36066
+ "204": {
36067
+ "description": "No content"
36068
+ },
36069
+ "400": {
36070
+ "description": "Bad request"
36071
+ },
36072
+ "401": {
36073
+ "description": "Authentication required"
36074
+ },
36075
+ "404": {
36076
+ "description": "Resource not found"
36077
+ },
36078
+ "422": {
36079
+ "description": "Invalid parameters"
36080
+ },
36081
+ "500": {
36082
+ "description": "Internal server error, XenServer/XCP-ng error"
36083
+ }
36084
+ },
36085
+ "description": "Reconfigure the management interface of the host to use the given PIF.\n\nThe target PIF must already have an IP address configured.",
36086
+ "tags": [
36087
+ "hosts"
36088
+ ],
36089
+ "security": [
36090
+ {
36091
+ "*": []
36092
+ }
36093
+ ],
36094
+ "parameters": [
36095
+ {
36096
+ "in": "path",
36097
+ "name": "id",
36098
+ "required": true,
36099
+ "schema": {
36100
+ "type": "string"
36101
+ },
36102
+ "example": "b61a5c92-700e-4966-a13b-00633f03eea8"
36103
+ },
36104
+ {
36105
+ "in": "query",
36106
+ "name": "sync",
36107
+ "required": false,
36108
+ "schema": {
36109
+ "type": "boolean"
36110
+ }
36111
+ }
36112
+ ],
36113
+ "requestBody": {
36114
+ "required": true,
36115
+ "content": {
36116
+ "application/json": {
36117
+ "schema": {
36118
+ "properties": {
36119
+ "pif": {
36120
+ "type": "string"
36121
+ }
36122
+ },
36123
+ "required": [
36124
+ "pif"
36125
+ ],
36126
+ "type": "object"
36127
+ },
36128
+ "example": {
36129
+ "pif": "d9e42451-3794-089f-de81-4ee0e6137bee"
36130
+ }
36131
+ }
36132
+ }
36133
+ }
36134
+ }
36135
+ },
35841
36136
  "/groups": {
35842
36137
  "get": {
35843
36138
  "operationId": "GetGroups",