@xen-orchestra/rest-api 0.24.1 → 0.26.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.
@@ -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
  },
@@ -5745,6 +5827,76 @@
5745
5827
  ],
5746
5828
  "type": "object"
5747
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
+ },
5748
5900
  "CreateActionReturnType__id-Unbrand_XoVdi__91_id_93___": {
5749
5901
  "anyOf": [
5750
5902
  {
@@ -6379,6 +6531,47 @@
6379
6531
  "params": {
6380
6532
  "$ref": "#/components/schemas/Record_string.unknown_"
6381
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
+ },
6382
6575
  "objectId": {
6383
6576
  "type": "string"
6384
6577
  },
@@ -12153,7 +12346,7 @@
12153
12346
  },
12154
12347
  "info": {
12155
12348
  "title": "@xen-orchestra/rest-api",
12156
- "version": "0.24.1",
12349
+ "version": "0.26.0",
12157
12350
  "description": "REST API to manage your XOA",
12158
12351
  "license": {
12159
12352
  "name": "AGPL-3.0-or-later"
@@ -15524,6 +15717,135 @@
15524
15717
  ]
15525
15718
  }
15526
15719
  },
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
+ },
15527
15849
  "/vm-templates": {
15528
15850
  "get": {
15529
15851
  "operationId": "GetVmTemplates",
@@ -18781,10 +19103,77 @@
18781
19103
  "example": 42
18782
19104
  }
18783
19105
  ]
18784
- }
18785
- },
18786
- "/vdis/{id}": {
18787
- "get": {
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
+ }
19173
+ }
19174
+ },
19175
+ "/vdis/{id}": {
19176
+ "get": {
18788
19177
  "operationId": "GetVdi",
18789
19178
  "responses": {
18790
19179
  "200": {
@@ -22625,6 +23014,144 @@
22625
23014
  ]
22626
23015
  }
22627
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
+ "examples": {
23029
+ "Example 1": {
23030
+ "value": {
23031
+ "taskId": "0m7kl0j9l"
23032
+ }
23033
+ }
23034
+ }
23035
+ }
23036
+ }
23037
+ },
23038
+ "204": {
23039
+ "description": "No content"
23040
+ },
23041
+ "400": {
23042
+ "description": "Bad request"
23043
+ },
23044
+ "401": {
23045
+ "description": "Authentication required"
23046
+ },
23047
+ "404": {
23048
+ "description": "Resource not found"
23049
+ },
23050
+ "422": {
23051
+ "description": "Invalid parameters"
23052
+ },
23053
+ "500": {
23054
+ "description": "Internal server error, XenServer/XCP-ng error"
23055
+ }
23056
+ },
23057
+ "tags": [
23058
+ "srs"
23059
+ ],
23060
+ "security": [
23061
+ {
23062
+ "*": []
23063
+ }
23064
+ ],
23065
+ "parameters": [
23066
+ {
23067
+ "in": "path",
23068
+ "name": "id",
23069
+ "required": true,
23070
+ "schema": {
23071
+ "type": "string"
23072
+ },
23073
+ "example": "b61a5c92-700e-4966-a13b-00633f03eea8"
23074
+ },
23075
+ {
23076
+ "in": "query",
23077
+ "name": "sync",
23078
+ "required": false,
23079
+ "schema": {
23080
+ "type": "boolean"
23081
+ }
23082
+ }
23083
+ ]
23084
+ }
23085
+ },
23086
+ "/srs/{id}/actions/scan": {
23087
+ "post": {
23088
+ "operationId": "ScanSr",
23089
+ "responses": {
23090
+ "202": {
23091
+ "description": "Action executed asynchronously",
23092
+ "content": {
23093
+ "application/json": {
23094
+ "schema": {
23095
+ "$ref": "#/components/schemas/CreateActionReturnType_void_"
23096
+ },
23097
+ "examples": {
23098
+ "Example 1": {
23099
+ "value": {
23100
+ "taskId": "0m7kl0j9l"
23101
+ }
23102
+ }
23103
+ }
23104
+ }
23105
+ }
23106
+ },
23107
+ "204": {
23108
+ "description": "No content"
23109
+ },
23110
+ "400": {
23111
+ "description": "Bad request"
23112
+ },
23113
+ "401": {
23114
+ "description": "Authentication required"
23115
+ },
23116
+ "404": {
23117
+ "description": "Resource not found"
23118
+ },
23119
+ "422": {
23120
+ "description": "Invalid parameters"
23121
+ },
23122
+ "500": {
23123
+ "description": "Internal server error, XenServer/XCP-ng error"
23124
+ }
23125
+ },
23126
+ "tags": [
23127
+ "srs"
23128
+ ],
23129
+ "security": [
23130
+ {
23131
+ "*": []
23132
+ }
23133
+ ],
23134
+ "parameters": [
23135
+ {
23136
+ "in": "path",
23137
+ "name": "id",
23138
+ "required": true,
23139
+ "schema": {
23140
+ "type": "string"
23141
+ },
23142
+ "example": "b61a5c92-700e-4966-a13b-00633f03eea8"
23143
+ },
23144
+ {
23145
+ "in": "query",
23146
+ "name": "sync",
23147
+ "required": false,
23148
+ "schema": {
23149
+ "type": "boolean"
23150
+ }
23151
+ }
23152
+ ]
23153
+ }
23154
+ },
22628
23155
  "/sms": {
22629
23156
  "get": {
22630
23157
  "operationId": "GetSrs",
@@ -28477,6 +29004,144 @@
28477
29004
  ]
28478
29005
  }
28479
29006
  },
29007
+ "/pbds/{id}/actions/plug": {
29008
+ "post": {
29009
+ "operationId": "PlugPbd",
29010
+ "responses": {
29011
+ "202": {
29012
+ "description": "Action executed asynchronously",
29013
+ "content": {
29014
+ "application/json": {
29015
+ "schema": {
29016
+ "$ref": "#/components/schemas/CreateActionReturnType_void_"
29017
+ },
29018
+ "examples": {
29019
+ "Example 1": {
29020
+ "value": {
29021
+ "taskId": "0m7kl0j9l"
29022
+ }
29023
+ }
29024
+ }
29025
+ }
29026
+ }
29027
+ },
29028
+ "204": {
29029
+ "description": "No content"
29030
+ },
29031
+ "400": {
29032
+ "description": "Bad request"
29033
+ },
29034
+ "401": {
29035
+ "description": "Authentication required"
29036
+ },
29037
+ "404": {
29038
+ "description": "Resource not found"
29039
+ },
29040
+ "422": {
29041
+ "description": "Invalid parameters"
29042
+ },
29043
+ "500": {
29044
+ "description": "Internal server error, XenServer/XCP-ng error"
29045
+ }
29046
+ },
29047
+ "tags": [
29048
+ "pbds"
29049
+ ],
29050
+ "security": [
29051
+ {
29052
+ "*": []
29053
+ }
29054
+ ],
29055
+ "parameters": [
29056
+ {
29057
+ "in": "path",
29058
+ "name": "id",
29059
+ "required": true,
29060
+ "schema": {
29061
+ "type": "string"
29062
+ },
29063
+ "example": "b61a5c92-700e-4966-a13b-00633f03eea8"
29064
+ },
29065
+ {
29066
+ "in": "query",
29067
+ "name": "sync",
29068
+ "required": false,
29069
+ "schema": {
29070
+ "type": "boolean"
29071
+ }
29072
+ }
29073
+ ]
29074
+ }
29075
+ },
29076
+ "/pbds/{id}/actions/unplug": {
29077
+ "post": {
29078
+ "operationId": "UnplugPbd",
29079
+ "responses": {
29080
+ "202": {
29081
+ "description": "Action executed asynchronously",
29082
+ "content": {
29083
+ "application/json": {
29084
+ "schema": {
29085
+ "$ref": "#/components/schemas/CreateActionReturnType_void_"
29086
+ },
29087
+ "examples": {
29088
+ "Example 1": {
29089
+ "value": {
29090
+ "taskId": "0m7kl0j9l"
29091
+ }
29092
+ }
29093
+ }
29094
+ }
29095
+ }
29096
+ },
29097
+ "204": {
29098
+ "description": "No content"
29099
+ },
29100
+ "400": {
29101
+ "description": "Bad request"
29102
+ },
29103
+ "401": {
29104
+ "description": "Authentication required"
29105
+ },
29106
+ "404": {
29107
+ "description": "Resource not found"
29108
+ },
29109
+ "422": {
29110
+ "description": "Invalid parameters"
29111
+ },
29112
+ "500": {
29113
+ "description": "Internal server error, XenServer/XCP-ng error"
29114
+ }
29115
+ },
29116
+ "tags": [
29117
+ "pbds"
29118
+ ],
29119
+ "security": [
29120
+ {
29121
+ "*": []
29122
+ }
29123
+ ],
29124
+ "parameters": [
29125
+ {
29126
+ "in": "path",
29127
+ "name": "id",
29128
+ "required": true,
29129
+ "schema": {
29130
+ "type": "string"
29131
+ },
29132
+ "example": "b61a5c92-700e-4966-a13b-00633f03eea8"
29133
+ },
29134
+ {
29135
+ "in": "query",
29136
+ "name": "sync",
29137
+ "required": false,
29138
+ "schema": {
29139
+ "type": "boolean"
29140
+ }
29141
+ }
29142
+ ]
29143
+ }
29144
+ },
28480
29145
  "/networks": {
28481
29146
  "get": {
28482
29147
  "operationId": "GetNetworks",