@xen-orchestra/rest-api 0.24.0 → 0.25.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/dist/abstract-classes/base-controller.mjs +4 -1
- package/dist/abstract-classes/xapi-xo-controller.mjs +4 -6
- package/dist/abstract-classes/xo-controller.mjs +4 -19
- package/dist/backup-archives/backup-archive.controller.mjs +7 -1
- package/dist/backup-jobs/backup-job.controller.mjs +2 -2
- package/dist/backup-logs/backup-log.controller.mjs +1 -1
- package/dist/backup-repositories/backup-repositories.controller.mjs +7 -1
- package/dist/events/event.class.mjs +31 -22
- package/dist/events/event.service.mjs +21 -4
- package/dist/groups/group.controller.mjs +1 -1
- package/dist/helpers/object-wrapper.helper.mjs +9 -4
- package/dist/middlewares/authentication.middleware.mjs +1 -1
- package/dist/open-api/oa-examples/vif.oa-example.mjs +1 -0
- package/dist/open-api/routes/routes.js +229 -5
- package/dist/pbds/pbd.controller.mjs +61 -2
- package/dist/pools/pool.controller.mjs +12 -3
- package/dist/pools/pool.service.mjs +3 -3
- package/dist/proxies/proxy.controller.mjs +7 -1
- package/dist/restore-logs/restore-log.controller.mjs +2 -2
- package/dist/schedules/schedule.controller.mjs +7 -1
- package/dist/servers/server.controller.mjs +7 -1
- package/dist/srs/sr.controller.mjs +29 -1
- package/dist/tasks/task.controller.mjs +7 -1
- package/dist/users/user.controller.mjs +1 -1
- package/dist/vdis/vdi.controller.mjs +30 -1
- package/dist/vifs/vif.controller.mjs +53 -3
- package/dist/vms/vm.controller.mjs +41 -1
- package/open-api/spec/swagger.json +822 -25
- package/package.json +4 -4
|
@@ -2373,6 +2373,47 @@
|
|
|
2373
2373
|
"params": {
|
|
2374
2374
|
"$ref": "#/components/schemas/Record_string.unknown_"
|
|
2375
2375
|
},
|
|
2376
|
+
"objectType": {
|
|
2377
|
+
"type": "string",
|
|
2378
|
+
"enum": [
|
|
2379
|
+
"pool",
|
|
2380
|
+
"VBD",
|
|
2381
|
+
"host",
|
|
2382
|
+
"VIF",
|
|
2383
|
+
"VTPM",
|
|
2384
|
+
"VM",
|
|
2385
|
+
"VM-snapshot",
|
|
2386
|
+
"SR",
|
|
2387
|
+
"message",
|
|
2388
|
+
"vgpu",
|
|
2389
|
+
"gpuGroup",
|
|
2390
|
+
"network",
|
|
2391
|
+
"PBD",
|
|
2392
|
+
"PCI",
|
|
2393
|
+
"PGPU",
|
|
2394
|
+
"PIF",
|
|
2395
|
+
"VDI",
|
|
2396
|
+
"VDI-snapshot",
|
|
2397
|
+
"VDI-unmanaged",
|
|
2398
|
+
"vgpuType",
|
|
2399
|
+
"VM-controller",
|
|
2400
|
+
"VM-template",
|
|
2401
|
+
"SM",
|
|
2402
|
+
"backup",
|
|
2403
|
+
"backup-archive",
|
|
2404
|
+
"backup-job",
|
|
2405
|
+
"backup-log",
|
|
2406
|
+
"backup-repository",
|
|
2407
|
+
"group",
|
|
2408
|
+
"proxy",
|
|
2409
|
+
"restore",
|
|
2410
|
+
"restore-log",
|
|
2411
|
+
"schedule",
|
|
2412
|
+
"server",
|
|
2413
|
+
"task",
|
|
2414
|
+
"user"
|
|
2415
|
+
]
|
|
2416
|
+
},
|
|
2376
2417
|
"objectId": {
|
|
2377
2418
|
"type": "string"
|
|
2378
2419
|
},
|
|
@@ -2481,6 +2522,47 @@
|
|
|
2481
2522
|
"params": {
|
|
2482
2523
|
"$ref": "#/components/schemas/Record_string.unknown_"
|
|
2483
2524
|
},
|
|
2525
|
+
"objectType": {
|
|
2526
|
+
"type": "string",
|
|
2527
|
+
"enum": [
|
|
2528
|
+
"backup",
|
|
2529
|
+
"pool",
|
|
2530
|
+
"VBD",
|
|
2531
|
+
"host",
|
|
2532
|
+
"VIF",
|
|
2533
|
+
"VTPM",
|
|
2534
|
+
"VM",
|
|
2535
|
+
"VM-snapshot",
|
|
2536
|
+
"SR",
|
|
2537
|
+
"message",
|
|
2538
|
+
"vgpu",
|
|
2539
|
+
"gpuGroup",
|
|
2540
|
+
"network",
|
|
2541
|
+
"PBD",
|
|
2542
|
+
"PCI",
|
|
2543
|
+
"PGPU",
|
|
2544
|
+
"PIF",
|
|
2545
|
+
"VDI",
|
|
2546
|
+
"VDI-snapshot",
|
|
2547
|
+
"VDI-unmanaged",
|
|
2548
|
+
"vgpuType",
|
|
2549
|
+
"VM-controller",
|
|
2550
|
+
"VM-template",
|
|
2551
|
+
"SM",
|
|
2552
|
+
"user",
|
|
2553
|
+
"proxy",
|
|
2554
|
+
"task",
|
|
2555
|
+
"backup-archive",
|
|
2556
|
+
"backup-job",
|
|
2557
|
+
"backup-log",
|
|
2558
|
+
"backup-repository",
|
|
2559
|
+
"group",
|
|
2560
|
+
"restore",
|
|
2561
|
+
"restore-log",
|
|
2562
|
+
"schedule",
|
|
2563
|
+
"server"
|
|
2564
|
+
]
|
|
2565
|
+
},
|
|
2484
2566
|
"objectId": {
|
|
2485
2567
|
"type": "string"
|
|
2486
2568
|
},
|
|
@@ -5559,6 +5641,80 @@
|
|
|
5559
5641
|
"UnbrandedXoVif": {
|
|
5560
5642
|
"$ref": "#/components/schemas/Unbrand_XoVif_"
|
|
5561
5643
|
},
|
|
5644
|
+
"Pick_CreateVifParams_91_0_93_.Exclude_keyofCreateVifParams_91_0_93_.network-or-VM__": {
|
|
5645
|
+
"properties": {
|
|
5646
|
+
"other_config": {
|
|
5647
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
5648
|
+
},
|
|
5649
|
+
"device": {
|
|
5650
|
+
"type": "string"
|
|
5651
|
+
},
|
|
5652
|
+
"MTU": {
|
|
5653
|
+
"type": "number",
|
|
5654
|
+
"format": "double"
|
|
5655
|
+
},
|
|
5656
|
+
"currently_attached": {
|
|
5657
|
+
"type": "boolean"
|
|
5658
|
+
},
|
|
5659
|
+
"ipv4_allowed": {
|
|
5660
|
+
"items": {
|
|
5661
|
+
"type": "string"
|
|
5662
|
+
},
|
|
5663
|
+
"type": "array"
|
|
5664
|
+
},
|
|
5665
|
+
"ipv6_allowed": {
|
|
5666
|
+
"items": {
|
|
5667
|
+
"type": "string"
|
|
5668
|
+
},
|
|
5669
|
+
"type": "array"
|
|
5670
|
+
},
|
|
5671
|
+
"locking_mode": {
|
|
5672
|
+
"$ref": "#/components/schemas/VIF_LOCKING_MODE"
|
|
5673
|
+
},
|
|
5674
|
+
"qos_algorithm_params": {
|
|
5675
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
5676
|
+
},
|
|
5677
|
+
"qos_algorithm_type": {
|
|
5678
|
+
"type": "string"
|
|
5679
|
+
}
|
|
5680
|
+
},
|
|
5681
|
+
"type": "object",
|
|
5682
|
+
"description": "From T, pick a set of properties whose keys are in the union K"
|
|
5683
|
+
},
|
|
5684
|
+
"Omit_CreateVifParams_91_0_93_.network-or-VM_": {
|
|
5685
|
+
"$ref": "#/components/schemas/Pick_CreateVifParams_91_0_93_.Exclude_keyofCreateVifParams_91_0_93_.network-or-VM__",
|
|
5686
|
+
"description": "Construct a type with the properties of T except for those in type K."
|
|
5687
|
+
},
|
|
5688
|
+
"CreateVifBody": {
|
|
5689
|
+
"allOf": [
|
|
5690
|
+
{
|
|
5691
|
+
"$ref": "#/components/schemas/Omit_CreateVifParams_91_0_93_.network-or-VM_"
|
|
5692
|
+
},
|
|
5693
|
+
{
|
|
5694
|
+
"properties": {
|
|
5695
|
+
"MAC": {
|
|
5696
|
+
"type": "string"
|
|
5697
|
+
}
|
|
5698
|
+
},
|
|
5699
|
+
"type": "object"
|
|
5700
|
+
},
|
|
5701
|
+
{
|
|
5702
|
+
"properties": {
|
|
5703
|
+
"vmId": {
|
|
5704
|
+
"type": "string"
|
|
5705
|
+
},
|
|
5706
|
+
"networkId": {
|
|
5707
|
+
"type": "string"
|
|
5708
|
+
}
|
|
5709
|
+
},
|
|
5710
|
+
"required": [
|
|
5711
|
+
"vmId",
|
|
5712
|
+
"networkId"
|
|
5713
|
+
],
|
|
5714
|
+
"type": "object"
|
|
5715
|
+
}
|
|
5716
|
+
]
|
|
5717
|
+
},
|
|
5562
5718
|
"Exclude_SUPPORTED_VDI_FORMAT.qcow2_": {
|
|
5563
5719
|
"type": "string",
|
|
5564
5720
|
"enum": [
|
|
@@ -5671,6 +5827,76 @@
|
|
|
5671
5827
|
],
|
|
5672
5828
|
"type": "object"
|
|
5673
5829
|
},
|
|
5830
|
+
"Pick_CreateVdiParams_91_0_93_.Exclude_keyofCreateVdiParams_91_0_93_.SR__": {
|
|
5831
|
+
"properties": {
|
|
5832
|
+
"name_description": {
|
|
5833
|
+
"type": "string"
|
|
5834
|
+
},
|
|
5835
|
+
"name_label": {
|
|
5836
|
+
"type": "string"
|
|
5837
|
+
},
|
|
5838
|
+
"tags": {
|
|
5839
|
+
"items": {
|
|
5840
|
+
"type": "string"
|
|
5841
|
+
},
|
|
5842
|
+
"type": "array"
|
|
5843
|
+
},
|
|
5844
|
+
"type": {
|
|
5845
|
+
"$ref": "#/components/schemas/VDI_TYPE"
|
|
5846
|
+
},
|
|
5847
|
+
"other_config": {
|
|
5848
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
5849
|
+
},
|
|
5850
|
+
"read_only": {
|
|
5851
|
+
"type": "boolean"
|
|
5852
|
+
},
|
|
5853
|
+
"sharable": {
|
|
5854
|
+
"type": "boolean"
|
|
5855
|
+
},
|
|
5856
|
+
"virtual_size": {
|
|
5857
|
+
"type": "number",
|
|
5858
|
+
"format": "double"
|
|
5859
|
+
},
|
|
5860
|
+
"xenstore_data": {
|
|
5861
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
5862
|
+
}
|
|
5863
|
+
},
|
|
5864
|
+
"required": [
|
|
5865
|
+
"virtual_size"
|
|
5866
|
+
],
|
|
5867
|
+
"type": "object",
|
|
5868
|
+
"description": "From T, pick a set of properties whose keys are in the union K"
|
|
5869
|
+
},
|
|
5870
|
+
"Omit_CreateVdiParams_91_0_93_.SR_": {
|
|
5871
|
+
"$ref": "#/components/schemas/Pick_CreateVdiParams_91_0_93_.Exclude_keyofCreateVdiParams_91_0_93_.SR__",
|
|
5872
|
+
"description": "Construct a type with the properties of T except for those in type K."
|
|
5873
|
+
},
|
|
5874
|
+
"CreateVdiBody": {
|
|
5875
|
+
"allOf": [
|
|
5876
|
+
{
|
|
5877
|
+
"$ref": "#/components/schemas/Omit_CreateVdiParams_91_0_93_.SR_"
|
|
5878
|
+
},
|
|
5879
|
+
{
|
|
5880
|
+
"properties": {
|
|
5881
|
+
"srId": {
|
|
5882
|
+
"type": "string"
|
|
5883
|
+
}
|
|
5884
|
+
},
|
|
5885
|
+
"required": [
|
|
5886
|
+
"srId"
|
|
5887
|
+
],
|
|
5888
|
+
"type": "object"
|
|
5889
|
+
},
|
|
5890
|
+
{
|
|
5891
|
+
"properties": {
|
|
5892
|
+
"sm_config": {
|
|
5893
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
5894
|
+
}
|
|
5895
|
+
},
|
|
5896
|
+
"type": "object"
|
|
5897
|
+
}
|
|
5898
|
+
]
|
|
5899
|
+
},
|
|
5674
5900
|
"CreateActionReturnType__id-Unbrand_XoVdi__91_id_93___": {
|
|
5675
5901
|
"anyOf": [
|
|
5676
5902
|
{
|
|
@@ -5835,18 +6061,18 @@
|
|
|
5835
6061
|
"mode": {
|
|
5836
6062
|
"$ref": "#/components/schemas/VBD_MODE"
|
|
5837
6063
|
},
|
|
5838
|
-
"bootable": {
|
|
5839
|
-
"type": "boolean"
|
|
5840
|
-
},
|
|
5841
|
-
"empty": {
|
|
5842
|
-
"type": "boolean"
|
|
5843
|
-
},
|
|
5844
6064
|
"qos_algorithm_params": {
|
|
5845
6065
|
"$ref": "#/components/schemas/Record_string.string_"
|
|
5846
6066
|
},
|
|
5847
6067
|
"qos_algorithm_type": {
|
|
5848
6068
|
"type": "string"
|
|
5849
6069
|
},
|
|
6070
|
+
"bootable": {
|
|
6071
|
+
"type": "boolean"
|
|
6072
|
+
},
|
|
6073
|
+
"empty": {
|
|
6074
|
+
"type": "boolean"
|
|
6075
|
+
},
|
|
5850
6076
|
"unpluggable": {
|
|
5851
6077
|
"type": "boolean"
|
|
5852
6078
|
},
|
|
@@ -6305,6 +6531,47 @@
|
|
|
6305
6531
|
"params": {
|
|
6306
6532
|
"$ref": "#/components/schemas/Record_string.unknown_"
|
|
6307
6533
|
},
|
|
6534
|
+
"objectType": {
|
|
6535
|
+
"type": "string",
|
|
6536
|
+
"enum": [
|
|
6537
|
+
"backup",
|
|
6538
|
+
"pool",
|
|
6539
|
+
"VBD",
|
|
6540
|
+
"host",
|
|
6541
|
+
"VIF",
|
|
6542
|
+
"VTPM",
|
|
6543
|
+
"VM",
|
|
6544
|
+
"VM-snapshot",
|
|
6545
|
+
"SR",
|
|
6546
|
+
"message",
|
|
6547
|
+
"vgpu",
|
|
6548
|
+
"gpuGroup",
|
|
6549
|
+
"network",
|
|
6550
|
+
"PBD",
|
|
6551
|
+
"PCI",
|
|
6552
|
+
"PGPU",
|
|
6553
|
+
"PIF",
|
|
6554
|
+
"VDI",
|
|
6555
|
+
"VDI-snapshot",
|
|
6556
|
+
"VDI-unmanaged",
|
|
6557
|
+
"vgpuType",
|
|
6558
|
+
"VM-controller",
|
|
6559
|
+
"VM-template",
|
|
6560
|
+
"SM",
|
|
6561
|
+
"user",
|
|
6562
|
+
"proxy",
|
|
6563
|
+
"task",
|
|
6564
|
+
"backup-archive",
|
|
6565
|
+
"backup-job",
|
|
6566
|
+
"backup-log",
|
|
6567
|
+
"backup-repository",
|
|
6568
|
+
"group",
|
|
6569
|
+
"restore",
|
|
6570
|
+
"restore-log",
|
|
6571
|
+
"schedule",
|
|
6572
|
+
"server"
|
|
6573
|
+
]
|
|
6574
|
+
},
|
|
6308
6575
|
"objectId": {
|
|
6309
6576
|
"type": "string"
|
|
6310
6577
|
},
|
|
@@ -7852,23 +8119,50 @@
|
|
|
7852
8119
|
"type": "array"
|
|
7853
8120
|
},
|
|
7854
8121
|
"install": {
|
|
7855
|
-
"
|
|
7856
|
-
|
|
7857
|
-
"
|
|
8122
|
+
"anyOf": [
|
|
8123
|
+
{
|
|
8124
|
+
"properties": {
|
|
8125
|
+
"repository": {
|
|
8126
|
+
"type": "string"
|
|
8127
|
+
},
|
|
8128
|
+
"method": {
|
|
8129
|
+
"type": "string",
|
|
8130
|
+
"enum": [
|
|
8131
|
+
"cdrom"
|
|
8132
|
+
],
|
|
8133
|
+
"nullable": false
|
|
8134
|
+
}
|
|
8135
|
+
},
|
|
8136
|
+
"required": [
|
|
8137
|
+
"repository",
|
|
8138
|
+
"method"
|
|
8139
|
+
],
|
|
8140
|
+
"type": "object"
|
|
7858
8141
|
},
|
|
7859
|
-
|
|
7860
|
-
"
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
8142
|
+
{
|
|
8143
|
+
"properties": {
|
|
8144
|
+
"repository": {
|
|
8145
|
+
"type": "string",
|
|
8146
|
+
"enum": [
|
|
8147
|
+
""
|
|
8148
|
+
],
|
|
8149
|
+
"nullable": false
|
|
8150
|
+
},
|
|
8151
|
+
"method": {
|
|
8152
|
+
"type": "string",
|
|
8153
|
+
"enum": [
|
|
8154
|
+
"network"
|
|
8155
|
+
],
|
|
8156
|
+
"nullable": false
|
|
8157
|
+
}
|
|
8158
|
+
},
|
|
8159
|
+
"required": [
|
|
8160
|
+
"repository",
|
|
8161
|
+
"method"
|
|
8162
|
+
],
|
|
8163
|
+
"type": "object"
|
|
7865
8164
|
}
|
|
7866
|
-
|
|
7867
|
-
"required": [
|
|
7868
|
-
"repository",
|
|
7869
|
-
"method"
|
|
7870
|
-
],
|
|
7871
|
-
"type": "object"
|
|
8165
|
+
]
|
|
7872
8166
|
},
|
|
7873
8167
|
"cloud_config": {
|
|
7874
8168
|
"type": "string"
|
|
@@ -12052,7 +12346,7 @@
|
|
|
12052
12346
|
},
|
|
12053
12347
|
"info": {
|
|
12054
12348
|
"title": "@xen-orchestra/rest-api",
|
|
12055
|
-
"version": "0.
|
|
12349
|
+
"version": "0.25.0",
|
|
12056
12350
|
"description": "REST API to manage your XOA",
|
|
12057
12351
|
"license": {
|
|
12058
12352
|
"name": "AGPL-3.0-or-later"
|
|
@@ -15423,9 +15717,138 @@
|
|
|
15423
15717
|
]
|
|
15424
15718
|
}
|
|
15425
15719
|
},
|
|
15426
|
-
"/
|
|
15427
|
-
"
|
|
15428
|
-
"operationId": "
|
|
15720
|
+
"/vms/{id}/actions/migrate": {
|
|
15721
|
+
"post": {
|
|
15722
|
+
"operationId": "MigrateVm",
|
|
15723
|
+
"responses": {
|
|
15724
|
+
"202": {
|
|
15725
|
+
"description": "Action executed asynchronously",
|
|
15726
|
+
"content": {
|
|
15727
|
+
"application/json": {
|
|
15728
|
+
"schema": {
|
|
15729
|
+
"$ref": "#/components/schemas/CreateActionReturnType_void_"
|
|
15730
|
+
},
|
|
15731
|
+
"examples": {
|
|
15732
|
+
"Example 1": {
|
|
15733
|
+
"value": {
|
|
15734
|
+
"taskId": "0m7kl0j9l"
|
|
15735
|
+
}
|
|
15736
|
+
}
|
|
15737
|
+
}
|
|
15738
|
+
}
|
|
15739
|
+
}
|
|
15740
|
+
},
|
|
15741
|
+
"204": {
|
|
15742
|
+
"description": "No content"
|
|
15743
|
+
},
|
|
15744
|
+
"400": {
|
|
15745
|
+
"description": "Bad request"
|
|
15746
|
+
},
|
|
15747
|
+
"401": {
|
|
15748
|
+
"description": "Authentication required"
|
|
15749
|
+
},
|
|
15750
|
+
"404": {
|
|
15751
|
+
"description": "Resource not found"
|
|
15752
|
+
},
|
|
15753
|
+
"422": {
|
|
15754
|
+
"description": "Invalid parameters"
|
|
15755
|
+
},
|
|
15756
|
+
"500": {
|
|
15757
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
15758
|
+
}
|
|
15759
|
+
},
|
|
15760
|
+
"description": "VIF mapping is not allowed for intra-pool migration\n\nNetworks and SRs must belong to the same pool as the destination host",
|
|
15761
|
+
"tags": [
|
|
15762
|
+
"vms"
|
|
15763
|
+
],
|
|
15764
|
+
"security": [
|
|
15765
|
+
{
|
|
15766
|
+
"*": []
|
|
15767
|
+
}
|
|
15768
|
+
],
|
|
15769
|
+
"parameters": [
|
|
15770
|
+
{
|
|
15771
|
+
"in": "path",
|
|
15772
|
+
"name": "id",
|
|
15773
|
+
"required": true,
|
|
15774
|
+
"schema": {
|
|
15775
|
+
"type": "string"
|
|
15776
|
+
},
|
|
15777
|
+
"example": "613f541c-4bed-fc77-7ca8-2db6b68f079c"
|
|
15778
|
+
},
|
|
15779
|
+
{
|
|
15780
|
+
"in": "query",
|
|
15781
|
+
"name": "sync",
|
|
15782
|
+
"required": false,
|
|
15783
|
+
"schema": {
|
|
15784
|
+
"type": "boolean"
|
|
15785
|
+
}
|
|
15786
|
+
}
|
|
15787
|
+
],
|
|
15788
|
+
"requestBody": {
|
|
15789
|
+
"required": true,
|
|
15790
|
+
"content": {
|
|
15791
|
+
"application/json": {
|
|
15792
|
+
"schema": {
|
|
15793
|
+
"anyOf": [
|
|
15794
|
+
{
|
|
15795
|
+
"properties": {
|
|
15796
|
+
"migrationNetworkId": {
|
|
15797
|
+
"type": "string"
|
|
15798
|
+
},
|
|
15799
|
+
"hostId": {
|
|
15800
|
+
"type": "string"
|
|
15801
|
+
}
|
|
15802
|
+
},
|
|
15803
|
+
"required": [
|
|
15804
|
+
"hostId"
|
|
15805
|
+
],
|
|
15806
|
+
"type": "object"
|
|
15807
|
+
},
|
|
15808
|
+
{
|
|
15809
|
+
"properties": {
|
|
15810
|
+
"networkIdByVifId": {
|
|
15811
|
+
"properties": {},
|
|
15812
|
+
"additionalProperties": {
|
|
15813
|
+
"type": "string"
|
|
15814
|
+
},
|
|
15815
|
+
"type": "object"
|
|
15816
|
+
},
|
|
15817
|
+
"srIdByVdiId": {
|
|
15818
|
+
"properties": {},
|
|
15819
|
+
"additionalProperties": {
|
|
15820
|
+
"type": "string"
|
|
15821
|
+
},
|
|
15822
|
+
"type": "object"
|
|
15823
|
+
},
|
|
15824
|
+
"srId": {
|
|
15825
|
+
"type": "string"
|
|
15826
|
+
},
|
|
15827
|
+
"migrationNetworkId": {
|
|
15828
|
+
"type": "string"
|
|
15829
|
+
},
|
|
15830
|
+
"hostId": {
|
|
15831
|
+
"type": "string"
|
|
15832
|
+
}
|
|
15833
|
+
},
|
|
15834
|
+
"required": [
|
|
15835
|
+
"hostId"
|
|
15836
|
+
],
|
|
15837
|
+
"type": "object"
|
|
15838
|
+
}
|
|
15839
|
+
]
|
|
15840
|
+
},
|
|
15841
|
+
"example": {
|
|
15842
|
+
"hostId": "b61a5c92-700e-4966-a13b-00633f03eea8"
|
|
15843
|
+
}
|
|
15844
|
+
}
|
|
15845
|
+
}
|
|
15846
|
+
}
|
|
15847
|
+
}
|
|
15848
|
+
},
|
|
15849
|
+
"/vm-templates": {
|
|
15850
|
+
"get": {
|
|
15851
|
+
"operationId": "GetVmTemplates",
|
|
15429
15852
|
"responses": {
|
|
15430
15853
|
"200": {
|
|
15431
15854
|
"description": "Ok",
|
|
@@ -18039,6 +18462,74 @@
|
|
|
18039
18462
|
"example": 42
|
|
18040
18463
|
}
|
|
18041
18464
|
]
|
|
18465
|
+
},
|
|
18466
|
+
"post": {
|
|
18467
|
+
"operationId": "CreateVif",
|
|
18468
|
+
"responses": {
|
|
18469
|
+
"201": {
|
|
18470
|
+
"description": "Resource created",
|
|
18471
|
+
"content": {
|
|
18472
|
+
"application/json": {
|
|
18473
|
+
"schema": {
|
|
18474
|
+
"properties": {
|
|
18475
|
+
"id": {
|
|
18476
|
+
"type": "string"
|
|
18477
|
+
}
|
|
18478
|
+
},
|
|
18479
|
+
"required": [
|
|
18480
|
+
"id"
|
|
18481
|
+
],
|
|
18482
|
+
"type": "object"
|
|
18483
|
+
},
|
|
18484
|
+
"examples": {
|
|
18485
|
+
"Example 1": {
|
|
18486
|
+
"value": {
|
|
18487
|
+
"id": "f028c5d4-578a-332c-394e-087aaca32dd3"
|
|
18488
|
+
}
|
|
18489
|
+
}
|
|
18490
|
+
}
|
|
18491
|
+
}
|
|
18492
|
+
}
|
|
18493
|
+
},
|
|
18494
|
+
"400": {
|
|
18495
|
+
"description": "Bad request"
|
|
18496
|
+
},
|
|
18497
|
+
"401": {
|
|
18498
|
+
"description": "Authentication required"
|
|
18499
|
+
},
|
|
18500
|
+
"404": {
|
|
18501
|
+
"description": "Resource not found"
|
|
18502
|
+
},
|
|
18503
|
+
"422": {
|
|
18504
|
+
"description": "Invalid parameters"
|
|
18505
|
+
},
|
|
18506
|
+
"500": {
|
|
18507
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
18508
|
+
}
|
|
18509
|
+
},
|
|
18510
|
+
"tags": [
|
|
18511
|
+
"vifs"
|
|
18512
|
+
],
|
|
18513
|
+
"security": [
|
|
18514
|
+
{
|
|
18515
|
+
"*": []
|
|
18516
|
+
}
|
|
18517
|
+
],
|
|
18518
|
+
"parameters": [],
|
|
18519
|
+
"requestBody": {
|
|
18520
|
+
"required": true,
|
|
18521
|
+
"content": {
|
|
18522
|
+
"application/json": {
|
|
18523
|
+
"schema": {
|
|
18524
|
+
"$ref": "#/components/schemas/CreateVifBody"
|
|
18525
|
+
},
|
|
18526
|
+
"example": {
|
|
18527
|
+
"networkId": "6b6ca0f5-6611-0636-4b0a-1fb1c1e96414",
|
|
18528
|
+
"vmId": "613f541c-4bed-fc77-7ca8-2db6b68f079c"
|
|
18529
|
+
}
|
|
18530
|
+
}
|
|
18531
|
+
}
|
|
18532
|
+
}
|
|
18042
18533
|
}
|
|
18043
18534
|
},
|
|
18044
18535
|
"/vifs/{id}": {
|
|
@@ -18107,6 +18598,45 @@
|
|
|
18107
18598
|
"example": "f028c5d4-578a-332c-394e-087aaca32dd3"
|
|
18108
18599
|
}
|
|
18109
18600
|
]
|
|
18601
|
+
},
|
|
18602
|
+
"delete": {
|
|
18603
|
+
"operationId": "DestroyVif",
|
|
18604
|
+
"responses": {
|
|
18605
|
+
"204": {
|
|
18606
|
+
"description": "No content"
|
|
18607
|
+
},
|
|
18608
|
+
"400": {
|
|
18609
|
+
"description": "Bad request"
|
|
18610
|
+
},
|
|
18611
|
+
"401": {
|
|
18612
|
+
"description": "Authentication required"
|
|
18613
|
+
},
|
|
18614
|
+
"404": {
|
|
18615
|
+
"description": "Resource not found"
|
|
18616
|
+
},
|
|
18617
|
+
"500": {
|
|
18618
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
18619
|
+
}
|
|
18620
|
+
},
|
|
18621
|
+
"tags": [
|
|
18622
|
+
"vifs"
|
|
18623
|
+
],
|
|
18624
|
+
"security": [
|
|
18625
|
+
{
|
|
18626
|
+
"*": []
|
|
18627
|
+
}
|
|
18628
|
+
],
|
|
18629
|
+
"parameters": [
|
|
18630
|
+
{
|
|
18631
|
+
"in": "path",
|
|
18632
|
+
"name": "id",
|
|
18633
|
+
"required": true,
|
|
18634
|
+
"schema": {
|
|
18635
|
+
"type": "string"
|
|
18636
|
+
},
|
|
18637
|
+
"example": "6b6ca0f5-6611-0636-4b0a-1fb1c1e96414"
|
|
18638
|
+
}
|
|
18639
|
+
]
|
|
18110
18640
|
}
|
|
18111
18641
|
},
|
|
18112
18642
|
"/vifs/{id}/alarms": {
|
|
@@ -18573,6 +19103,73 @@
|
|
|
18573
19103
|
"example": 42
|
|
18574
19104
|
}
|
|
18575
19105
|
]
|
|
19106
|
+
},
|
|
19107
|
+
"post": {
|
|
19108
|
+
"operationId": "CreateVdi",
|
|
19109
|
+
"responses": {
|
|
19110
|
+
"201": {
|
|
19111
|
+
"description": "Resource created",
|
|
19112
|
+
"content": {
|
|
19113
|
+
"application/json": {
|
|
19114
|
+
"schema": {
|
|
19115
|
+
"properties": {
|
|
19116
|
+
"id": {
|
|
19117
|
+
"type": "string"
|
|
19118
|
+
}
|
|
19119
|
+
},
|
|
19120
|
+
"required": [
|
|
19121
|
+
"id"
|
|
19122
|
+
],
|
|
19123
|
+
"type": "object"
|
|
19124
|
+
},
|
|
19125
|
+
"examples": {
|
|
19126
|
+
"Example 1": {
|
|
19127
|
+
"value": {
|
|
19128
|
+
"id": "5e13f673-760e-41be-826e-620d16b7f43b"
|
|
19129
|
+
}
|
|
19130
|
+
}
|
|
19131
|
+
}
|
|
19132
|
+
}
|
|
19133
|
+
}
|
|
19134
|
+
},
|
|
19135
|
+
"400": {
|
|
19136
|
+
"description": "Bad request"
|
|
19137
|
+
},
|
|
19138
|
+
"401": {
|
|
19139
|
+
"description": "Authentication required"
|
|
19140
|
+
},
|
|
19141
|
+
"404": {
|
|
19142
|
+
"description": "Resource not found"
|
|
19143
|
+
},
|
|
19144
|
+
"500": {
|
|
19145
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
19146
|
+
}
|
|
19147
|
+
},
|
|
19148
|
+
"description": "Create an empty VDI on the given SR.",
|
|
19149
|
+
"tags": [
|
|
19150
|
+
"vdis"
|
|
19151
|
+
],
|
|
19152
|
+
"security": [
|
|
19153
|
+
{
|
|
19154
|
+
"*": []
|
|
19155
|
+
}
|
|
19156
|
+
],
|
|
19157
|
+
"parameters": [],
|
|
19158
|
+
"requestBody": {
|
|
19159
|
+
"required": true,
|
|
19160
|
+
"content": {
|
|
19161
|
+
"application/json": {
|
|
19162
|
+
"schema": {
|
|
19163
|
+
"$ref": "#/components/schemas/CreateVdiBody"
|
|
19164
|
+
},
|
|
19165
|
+
"example": {
|
|
19166
|
+
"srId": "c4284e12-37c9-7967-b9e8-83ef229c3e03",
|
|
19167
|
+
"virtual_size": 10737418240,
|
|
19168
|
+
"name_label": "test VDI"
|
|
19169
|
+
}
|
|
19170
|
+
}
|
|
19171
|
+
}
|
|
19172
|
+
}
|
|
18576
19173
|
}
|
|
18577
19174
|
},
|
|
18578
19175
|
"/vdis/{id}": {
|
|
@@ -22417,6 +23014,68 @@
|
|
|
22417
23014
|
]
|
|
22418
23015
|
}
|
|
22419
23016
|
},
|
|
23017
|
+
"/srs/{id}/actions/reclaim_space": {
|
|
23018
|
+
"post": {
|
|
23019
|
+
"operationId": "ReclaimSpaceSr",
|
|
23020
|
+
"responses": {
|
|
23021
|
+
"202": {
|
|
23022
|
+
"description": "Action executed asynchronously",
|
|
23023
|
+
"content": {
|
|
23024
|
+
"application/json": {
|
|
23025
|
+
"schema": {
|
|
23026
|
+
"$ref": "#/components/schemas/CreateActionReturnType_void_"
|
|
23027
|
+
}
|
|
23028
|
+
}
|
|
23029
|
+
}
|
|
23030
|
+
},
|
|
23031
|
+
"204": {
|
|
23032
|
+
"description": "No content"
|
|
23033
|
+
},
|
|
23034
|
+
"400": {
|
|
23035
|
+
"description": "Bad request"
|
|
23036
|
+
},
|
|
23037
|
+
"401": {
|
|
23038
|
+
"description": "Authentication required"
|
|
23039
|
+
},
|
|
23040
|
+
"404": {
|
|
23041
|
+
"description": "Resource not found"
|
|
23042
|
+
},
|
|
23043
|
+
"422": {
|
|
23044
|
+
"description": "Invalid parameters"
|
|
23045
|
+
},
|
|
23046
|
+
"500": {
|
|
23047
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
23048
|
+
}
|
|
23049
|
+
},
|
|
23050
|
+
"tags": [
|
|
23051
|
+
"srs"
|
|
23052
|
+
],
|
|
23053
|
+
"security": [
|
|
23054
|
+
{
|
|
23055
|
+
"*": []
|
|
23056
|
+
}
|
|
23057
|
+
],
|
|
23058
|
+
"parameters": [
|
|
23059
|
+
{
|
|
23060
|
+
"in": "path",
|
|
23061
|
+
"name": "id",
|
|
23062
|
+
"required": true,
|
|
23063
|
+
"schema": {
|
|
23064
|
+
"type": "string"
|
|
23065
|
+
},
|
|
23066
|
+
"example": "b61a5c92-700e-4966-a13b-00633f03eea8"
|
|
23067
|
+
},
|
|
23068
|
+
{
|
|
23069
|
+
"in": "query",
|
|
23070
|
+
"name": "sync",
|
|
23071
|
+
"required": false,
|
|
23072
|
+
"schema": {
|
|
23073
|
+
"type": "boolean"
|
|
23074
|
+
}
|
|
23075
|
+
}
|
|
23076
|
+
]
|
|
23077
|
+
}
|
|
23078
|
+
},
|
|
22420
23079
|
"/sms": {
|
|
22421
23080
|
"get": {
|
|
22422
23081
|
"operationId": "GetSrs",
|
|
@@ -28269,6 +28928,144 @@
|
|
|
28269
28928
|
]
|
|
28270
28929
|
}
|
|
28271
28930
|
},
|
|
28931
|
+
"/pbds/{id}/actions/plug": {
|
|
28932
|
+
"post": {
|
|
28933
|
+
"operationId": "PlugPbd",
|
|
28934
|
+
"responses": {
|
|
28935
|
+
"202": {
|
|
28936
|
+
"description": "Action executed asynchronously",
|
|
28937
|
+
"content": {
|
|
28938
|
+
"application/json": {
|
|
28939
|
+
"schema": {
|
|
28940
|
+
"$ref": "#/components/schemas/CreateActionReturnType_void_"
|
|
28941
|
+
},
|
|
28942
|
+
"examples": {
|
|
28943
|
+
"Example 1": {
|
|
28944
|
+
"value": {
|
|
28945
|
+
"taskId": "0m7kl0j9l"
|
|
28946
|
+
}
|
|
28947
|
+
}
|
|
28948
|
+
}
|
|
28949
|
+
}
|
|
28950
|
+
}
|
|
28951
|
+
},
|
|
28952
|
+
"204": {
|
|
28953
|
+
"description": "No content"
|
|
28954
|
+
},
|
|
28955
|
+
"400": {
|
|
28956
|
+
"description": "Bad request"
|
|
28957
|
+
},
|
|
28958
|
+
"401": {
|
|
28959
|
+
"description": "Authentication required"
|
|
28960
|
+
},
|
|
28961
|
+
"404": {
|
|
28962
|
+
"description": "Resource not found"
|
|
28963
|
+
},
|
|
28964
|
+
"422": {
|
|
28965
|
+
"description": "Invalid parameters"
|
|
28966
|
+
},
|
|
28967
|
+
"500": {
|
|
28968
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
28969
|
+
}
|
|
28970
|
+
},
|
|
28971
|
+
"tags": [
|
|
28972
|
+
"pbds"
|
|
28973
|
+
],
|
|
28974
|
+
"security": [
|
|
28975
|
+
{
|
|
28976
|
+
"*": []
|
|
28977
|
+
}
|
|
28978
|
+
],
|
|
28979
|
+
"parameters": [
|
|
28980
|
+
{
|
|
28981
|
+
"in": "path",
|
|
28982
|
+
"name": "id",
|
|
28983
|
+
"required": true,
|
|
28984
|
+
"schema": {
|
|
28985
|
+
"type": "string"
|
|
28986
|
+
},
|
|
28987
|
+
"example": "b61a5c92-700e-4966-a13b-00633f03eea8"
|
|
28988
|
+
},
|
|
28989
|
+
{
|
|
28990
|
+
"in": "query",
|
|
28991
|
+
"name": "sync",
|
|
28992
|
+
"required": false,
|
|
28993
|
+
"schema": {
|
|
28994
|
+
"type": "boolean"
|
|
28995
|
+
}
|
|
28996
|
+
}
|
|
28997
|
+
]
|
|
28998
|
+
}
|
|
28999
|
+
},
|
|
29000
|
+
"/pbds/{id}/actions/unplug": {
|
|
29001
|
+
"post": {
|
|
29002
|
+
"operationId": "UnplugPbd",
|
|
29003
|
+
"responses": {
|
|
29004
|
+
"202": {
|
|
29005
|
+
"description": "Action executed asynchronously",
|
|
29006
|
+
"content": {
|
|
29007
|
+
"application/json": {
|
|
29008
|
+
"schema": {
|
|
29009
|
+
"$ref": "#/components/schemas/CreateActionReturnType_void_"
|
|
29010
|
+
},
|
|
29011
|
+
"examples": {
|
|
29012
|
+
"Example 1": {
|
|
29013
|
+
"value": {
|
|
29014
|
+
"taskId": "0m7kl0j9l"
|
|
29015
|
+
}
|
|
29016
|
+
}
|
|
29017
|
+
}
|
|
29018
|
+
}
|
|
29019
|
+
}
|
|
29020
|
+
},
|
|
29021
|
+
"204": {
|
|
29022
|
+
"description": "No content"
|
|
29023
|
+
},
|
|
29024
|
+
"400": {
|
|
29025
|
+
"description": "Bad request"
|
|
29026
|
+
},
|
|
29027
|
+
"401": {
|
|
29028
|
+
"description": "Authentication required"
|
|
29029
|
+
},
|
|
29030
|
+
"404": {
|
|
29031
|
+
"description": "Resource not found"
|
|
29032
|
+
},
|
|
29033
|
+
"422": {
|
|
29034
|
+
"description": "Invalid parameters"
|
|
29035
|
+
},
|
|
29036
|
+
"500": {
|
|
29037
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
29038
|
+
}
|
|
29039
|
+
},
|
|
29040
|
+
"tags": [
|
|
29041
|
+
"pbds"
|
|
29042
|
+
],
|
|
29043
|
+
"security": [
|
|
29044
|
+
{
|
|
29045
|
+
"*": []
|
|
29046
|
+
}
|
|
29047
|
+
],
|
|
29048
|
+
"parameters": [
|
|
29049
|
+
{
|
|
29050
|
+
"in": "path",
|
|
29051
|
+
"name": "id",
|
|
29052
|
+
"required": true,
|
|
29053
|
+
"schema": {
|
|
29054
|
+
"type": "string"
|
|
29055
|
+
},
|
|
29056
|
+
"example": "b61a5c92-700e-4966-a13b-00633f03eea8"
|
|
29057
|
+
},
|
|
29058
|
+
{
|
|
29059
|
+
"in": "query",
|
|
29060
|
+
"name": "sync",
|
|
29061
|
+
"required": false,
|
|
29062
|
+
"schema": {
|
|
29063
|
+
"type": "boolean"
|
|
29064
|
+
}
|
|
29065
|
+
}
|
|
29066
|
+
]
|
|
29067
|
+
}
|
|
29068
|
+
},
|
|
28272
29069
|
"/networks": {
|
|
28273
29070
|
"get": {
|
|
28274
29071
|
"operationId": "GetNetworks",
|