@xen-orchestra/rest-api 0.6.0 → 0.8.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.
@@ -325,6 +325,38 @@
325
325
  "virtualizationMode": {
326
326
  "$ref": "#/components/schemas/DOMAIN_TYPE"
327
327
  },
328
+ "vulnerabilities": {
329
+ "properties": {
330
+ "xsa468": {
331
+ "anyOf": [
332
+ {
333
+ "type": "boolean"
334
+ },
335
+ {
336
+ "properties": {
337
+ "version": {
338
+ "type": "string"
339
+ },
340
+ "driver": {
341
+ "type": "string"
342
+ },
343
+ "reason": {
344
+ "type": "string"
345
+ }
346
+ },
347
+ "required": [
348
+ "reason"
349
+ ],
350
+ "type": "object"
351
+ }
352
+ ]
353
+ }
354
+ },
355
+ "required": [
356
+ "xsa468"
357
+ ],
358
+ "type": "object"
359
+ },
328
360
  "xenStoreData": {
329
361
  "$ref": "#/components/schemas/Record_string.string_"
330
362
  },
@@ -678,6 +710,38 @@
678
710
  "virtualizationMode": {
679
711
  "$ref": "#/components/schemas/DOMAIN_TYPE"
680
712
  },
713
+ "vulnerabilities": {
714
+ "properties": {
715
+ "xsa468": {
716
+ "anyOf": [
717
+ {
718
+ "type": "boolean"
719
+ },
720
+ {
721
+ "properties": {
722
+ "version": {
723
+ "type": "string"
724
+ },
725
+ "driver": {
726
+ "type": "string"
727
+ },
728
+ "reason": {
729
+ "type": "string"
730
+ }
731
+ },
732
+ "required": [
733
+ "reason"
734
+ ],
735
+ "type": "object"
736
+ }
737
+ ]
738
+ }
739
+ },
740
+ "required": [
741
+ "xsa468"
742
+ ],
743
+ "type": "object"
744
+ },
681
745
  "xenStoreData": {
682
746
  "$ref": "#/components/schemas/Record_string.string_"
683
747
  },
@@ -764,6 +828,7 @@
764
828
  "tags",
765
829
  "viridian",
766
830
  "virtualizationMode",
831
+ "vulnerabilities",
767
832
  "xenStoreData",
768
833
  "id",
769
834
  "type"
@@ -1170,6 +1235,38 @@
1170
1235
  "virtualizationMode": {
1171
1236
  "$ref": "#/components/schemas/DOMAIN_TYPE"
1172
1237
  },
1238
+ "vulnerabilities": {
1239
+ "properties": {
1240
+ "xsa468": {
1241
+ "anyOf": [
1242
+ {
1243
+ "type": "boolean"
1244
+ },
1245
+ {
1246
+ "properties": {
1247
+ "version": {
1248
+ "type": "string"
1249
+ },
1250
+ "driver": {
1251
+ "type": "string"
1252
+ },
1253
+ "reason": {
1254
+ "type": "string"
1255
+ }
1256
+ },
1257
+ "required": [
1258
+ "reason"
1259
+ ],
1260
+ "type": "object"
1261
+ }
1262
+ ]
1263
+ }
1264
+ },
1265
+ "required": [
1266
+ "xsa468"
1267
+ ],
1268
+ "type": "object"
1269
+ },
1173
1270
  "xenStoreData": {
1174
1271
  "$ref": "#/components/schemas/Record_string.string_"
1175
1272
  },
@@ -1578,6 +1675,38 @@
1578
1675
  "virtualizationMode": {
1579
1676
  "$ref": "#/components/schemas/DOMAIN_TYPE"
1580
1677
  },
1678
+ "vulnerabilities": {
1679
+ "properties": {
1680
+ "xsa468": {
1681
+ "anyOf": [
1682
+ {
1683
+ "type": "boolean"
1684
+ },
1685
+ {
1686
+ "properties": {
1687
+ "version": {
1688
+ "type": "string"
1689
+ },
1690
+ "driver": {
1691
+ "type": "string"
1692
+ },
1693
+ "reason": {
1694
+ "type": "string"
1695
+ }
1696
+ },
1697
+ "required": [
1698
+ "reason"
1699
+ ],
1700
+ "type": "object"
1701
+ }
1702
+ ]
1703
+ }
1704
+ },
1705
+ "required": [
1706
+ "xsa468"
1707
+ ],
1708
+ "type": "object"
1709
+ },
1581
1710
  "xenStoreData": {
1582
1711
  "$ref": "#/components/schemas/Record_string.string_"
1583
1712
  },
@@ -1719,6 +1848,7 @@
1719
1848
  "tags",
1720
1849
  "viridian",
1721
1850
  "virtualizationMode",
1851
+ "vulnerabilities",
1722
1852
  "xenStoreData",
1723
1853
  "id",
1724
1854
  "isDefaultTemplate",
@@ -2011,6 +2141,38 @@
2011
2141
  "virtualizationMode": {
2012
2142
  "$ref": "#/components/schemas/DOMAIN_TYPE"
2013
2143
  },
2144
+ "vulnerabilities": {
2145
+ "properties": {
2146
+ "xsa468": {
2147
+ "anyOf": [
2148
+ {
2149
+ "type": "boolean"
2150
+ },
2151
+ {
2152
+ "properties": {
2153
+ "version": {
2154
+ "type": "string"
2155
+ },
2156
+ "driver": {
2157
+ "type": "string"
2158
+ },
2159
+ "reason": {
2160
+ "type": "string"
2161
+ }
2162
+ },
2163
+ "required": [
2164
+ "reason"
2165
+ ],
2166
+ "type": "object"
2167
+ }
2168
+ ]
2169
+ }
2170
+ },
2171
+ "required": [
2172
+ "xsa468"
2173
+ ],
2174
+ "type": "object"
2175
+ },
2014
2176
  "xenStoreData": {
2015
2177
  "$ref": "#/components/schemas/Record_string.string_"
2016
2178
  },
@@ -2374,6 +2536,38 @@
2374
2536
  "virtualizationMode": {
2375
2537
  "$ref": "#/components/schemas/DOMAIN_TYPE"
2376
2538
  },
2539
+ "vulnerabilities": {
2540
+ "properties": {
2541
+ "xsa468": {
2542
+ "anyOf": [
2543
+ {
2544
+ "type": "boolean"
2545
+ },
2546
+ {
2547
+ "properties": {
2548
+ "version": {
2549
+ "type": "string"
2550
+ },
2551
+ "driver": {
2552
+ "type": "string"
2553
+ },
2554
+ "reason": {
2555
+ "type": "string"
2556
+ }
2557
+ },
2558
+ "required": [
2559
+ "reason"
2560
+ ],
2561
+ "type": "object"
2562
+ }
2563
+ ]
2564
+ }
2565
+ },
2566
+ "required": [
2567
+ "xsa468"
2568
+ ],
2569
+ "type": "object"
2570
+ },
2377
2571
  "xenStoreData": {
2378
2572
  "$ref": "#/components/schemas/Record_string.string_"
2379
2573
  },
@@ -2470,6 +2664,7 @@
2470
2664
  "tags",
2471
2665
  "viridian",
2472
2666
  "virtualizationMode",
2667
+ "vulnerabilities",
2473
2668
  "xenStoreData",
2474
2669
  "$snapshot_of",
2475
2670
  "id",
@@ -2762,6 +2957,38 @@
2762
2957
  "virtualizationMode": {
2763
2958
  "$ref": "#/components/schemas/DOMAIN_TYPE"
2764
2959
  },
2960
+ "vulnerabilities": {
2961
+ "properties": {
2962
+ "xsa468": {
2963
+ "anyOf": [
2964
+ {
2965
+ "type": "boolean"
2966
+ },
2967
+ {
2968
+ "properties": {
2969
+ "version": {
2970
+ "type": "string"
2971
+ },
2972
+ "driver": {
2973
+ "type": "string"
2974
+ },
2975
+ "reason": {
2976
+ "type": "string"
2977
+ }
2978
+ },
2979
+ "required": [
2980
+ "reason"
2981
+ ],
2982
+ "type": "object"
2983
+ }
2984
+ ]
2985
+ }
2986
+ },
2987
+ "required": [
2988
+ "xsa468"
2989
+ ],
2990
+ "type": "object"
2991
+ },
2765
2992
  "xenStoreData": {
2766
2993
  "$ref": "#/components/schemas/Record_string.string_"
2767
2994
  },
@@ -3115,6 +3342,38 @@
3115
3342
  "virtualizationMode": {
3116
3343
  "$ref": "#/components/schemas/DOMAIN_TYPE"
3117
3344
  },
3345
+ "vulnerabilities": {
3346
+ "properties": {
3347
+ "xsa468": {
3348
+ "anyOf": [
3349
+ {
3350
+ "type": "boolean"
3351
+ },
3352
+ {
3353
+ "properties": {
3354
+ "version": {
3355
+ "type": "string"
3356
+ },
3357
+ "driver": {
3358
+ "type": "string"
3359
+ },
3360
+ "reason": {
3361
+ "type": "string"
3362
+ }
3363
+ },
3364
+ "required": [
3365
+ "reason"
3366
+ ],
3367
+ "type": "object"
3368
+ }
3369
+ ]
3370
+ }
3371
+ },
3372
+ "required": [
3373
+ "xsa468"
3374
+ ],
3375
+ "type": "object"
3376
+ },
3118
3377
  "xenStoreData": {
3119
3378
  "$ref": "#/components/schemas/Record_string.string_"
3120
3379
  },
@@ -3201,6 +3460,7 @@
3201
3460
  "tags",
3202
3461
  "viridian",
3203
3462
  "virtualizationMode",
3463
+ "vulnerabilities",
3204
3464
  "xenStoreData",
3205
3465
  "id",
3206
3466
  "type"
@@ -4443,6 +4703,38 @@
4443
4703
  ],
4444
4704
  "type": "object"
4445
4705
  },
4706
+ "InsertableXoServer": {
4707
+ "properties": {
4708
+ "host": {
4709
+ "type": "string"
4710
+ },
4711
+ "httpProxy": {
4712
+ "type": "string"
4713
+ },
4714
+ "label": {
4715
+ "type": "string"
4716
+ },
4717
+ "username": {
4718
+ "type": "string"
4719
+ },
4720
+ "allowUnauthorized": {
4721
+ "type": "boolean"
4722
+ },
4723
+ "password": {
4724
+ "type": "string"
4725
+ },
4726
+ "readOnly": {
4727
+ "type": "boolean"
4728
+ }
4729
+ },
4730
+ "required": [
4731
+ "host",
4732
+ "username",
4733
+ "password"
4734
+ ],
4735
+ "type": "object",
4736
+ "additionalProperties": false
4737
+ },
4446
4738
  "Partial_Unbrand_XoSchedule__": {
4447
4739
  "properties": {
4448
4740
  "cron": {
@@ -4759,12 +5051,53 @@
4759
5051
  ],
4760
5052
  "type": "object"
4761
5053
  },
4762
- "Record_string.attaching_": {
4763
- "properties": {},
4764
- "type": "object",
4765
- "description": "Construct a type with a set of properties K of type T"
5054
+ "Branded_PIF_": {
5055
+ "allOf": [
5056
+ {
5057
+ "type": "string"
5058
+ },
5059
+ {
5060
+ "properties": {
5061
+ "undefined": {
5062
+ "type": "string",
5063
+ "enum": [
5064
+ "PIF"
5065
+ ],
5066
+ "nullable": false
5067
+ }
5068
+ },
5069
+ "required": [
5070
+ null
5071
+ ],
5072
+ "type": "object"
5073
+ }
5074
+ ]
4766
5075
  },
4767
- "Partial_Unbrand_XoNetwork__": {
5076
+ "IPV6_CONFIGURATION_MODE": {
5077
+ "type": "string",
5078
+ "enum": [
5079
+ "DHCP",
5080
+ "Autoconf",
5081
+ "None",
5082
+ "Static"
5083
+ ]
5084
+ },
5085
+ "IP_CONFIGURATION_MODE": {
5086
+ "type": "string",
5087
+ "enum": [
5088
+ "DHCP",
5089
+ "None",
5090
+ "Static"
5091
+ ]
5092
+ },
5093
+ "PRIMARY_ADDRESS_TYPE": {
5094
+ "type": "string",
5095
+ "enum": [
5096
+ "IPv4",
5097
+ "IPv6"
5098
+ ]
5099
+ },
5100
+ "Partial_UnbrandedXoPif_": {
4768
5101
  "properties": {
4769
5102
  "$pool": {
4770
5103
  "type": "string"
@@ -4779,77 +5112,356 @@
4779
5112
  "uuid": {
4780
5113
  "type": "string"
4781
5114
  },
4782
- "MTU": {
4783
- "type": "number",
4784
- "format": "double"
5115
+ "$host": {
5116
+ "type": "string"
4785
5117
  },
4786
- "PIFs": {
4787
- "items": {
4788
- "type": "string"
4789
- },
4790
- "type": "array"
5118
+ "$network": {
5119
+ "type": "string"
4791
5120
  },
4792
- "VIFs": {
5121
+ "attached": {
5122
+ "type": "boolean"
5123
+ },
5124
+ "bondMaster": {
5125
+ "type": "string"
5126
+ },
5127
+ "bondSalves": {
4793
5128
  "items": {
4794
- "type": "string"
5129
+ "$ref": "#/components/schemas/Branded_PIF_"
4795
5130
  },
4796
5131
  "type": "array"
4797
5132
  },
4798
- "automatic": {
5133
+ "carrier": {
4799
5134
  "type": "boolean"
4800
5135
  },
4801
- "bridge": {
5136
+ "device": {
4802
5137
  "type": "string"
4803
5138
  },
4804
- "current_operations": {
4805
- "$ref": "#/components/schemas/Record_string.attaching_"
4806
- },
4807
- "defaultIsLocked": {
4808
- "type": "boolean"
4809
- },
4810
- "id": {
5139
+ "deviceName": {
4811
5140
  "type": "string"
4812
5141
  },
4813
- "insecureNbd": {
5142
+ "disallowUnplug": {
4814
5143
  "type": "boolean"
4815
5144
  },
4816
- "name_description": {
5145
+ "dns": {
4817
5146
  "type": "string"
4818
5147
  },
4819
- "name_label": {
5148
+ "gateway": {
4820
5149
  "type": "string"
4821
5150
  },
4822
- "nbd": {
4823
- "type": "boolean"
5151
+ "id": {
5152
+ "type": "string"
4824
5153
  },
4825
- "other_config": {
4826
- "$ref": "#/components/schemas/Record_string.string_"
5154
+ "ip": {
5155
+ "type": "string"
4827
5156
  },
4828
- "tags": {
5157
+ "ipv6": {
4829
5158
  "items": {
4830
5159
  "type": "string"
4831
5160
  },
4832
5161
  "type": "array"
4833
5162
  },
4834
- "type": {
4835
- "type": "string",
4836
- "enum": [
4837
- "network"
4838
- ]
4839
- }
4840
- },
4841
- "type": "object",
4842
- "description": "Make all properties in T optional"
4843
- },
4844
- "WithHref_Partial_Unbrand_XoNetwork___": {
4845
- "allOf": [
4846
- {
4847
- "$ref": "#/components/schemas/Partial_Unbrand_XoNetwork__"
5163
+ "ipv6Mode": {
5164
+ "$ref": "#/components/schemas/IPV6_CONFIGURATION_MODE"
4848
5165
  },
4849
- {
4850
- "properties": {
4851
- "href": {
4852
- "type": "string"
5166
+ "isBondMaster": {
5167
+ "type": "boolean"
5168
+ },
5169
+ "isBondSlave": {
5170
+ "type": "boolean"
5171
+ },
5172
+ "mac": {
5173
+ "type": "string"
5174
+ },
5175
+ "management": {
5176
+ "type": "boolean"
5177
+ },
5178
+ "mode": {
5179
+ "$ref": "#/components/schemas/IP_CONFIGURATION_MODE"
5180
+ },
5181
+ "mtu": {
5182
+ "type": "number",
5183
+ "format": "double"
5184
+ },
5185
+ "netmask": {
5186
+ "type": "string"
5187
+ },
5188
+ "physical": {
5189
+ "type": "boolean"
5190
+ },
5191
+ "primaryAddressType": {
5192
+ "$ref": "#/components/schemas/PRIMARY_ADDRESS_TYPE"
5193
+ },
5194
+ "speed": {
5195
+ "type": "number",
5196
+ "format": "double"
5197
+ },
5198
+ "type": {
5199
+ "type": "string",
5200
+ "enum": [
5201
+ "PIF"
5202
+ ]
5203
+ },
5204
+ "vlan": {
5205
+ "type": "number",
5206
+ "format": "double"
5207
+ }
5208
+ },
5209
+ "type": "object",
5210
+ "description": "Make all properties in T optional"
5211
+ },
5212
+ "WithHref_Partial_UnbrandedXoPif__": {
5213
+ "allOf": [
5214
+ {
5215
+ "$ref": "#/components/schemas/Partial_UnbrandedXoPif_"
5216
+ },
5217
+ {
5218
+ "properties": {
5219
+ "href": {
5220
+ "type": "string"
5221
+ }
5222
+ },
5223
+ "required": [
5224
+ "href"
5225
+ ],
5226
+ "type": "object"
5227
+ }
5228
+ ]
5229
+ },
5230
+ "Unbrand_XoPif_": {
5231
+ "properties": {
5232
+ "$pool": {
5233
+ "type": "string"
5234
+ },
5235
+ "$poolId": {
5236
+ "type": "string",
5237
+ "deprecated": true
5238
+ },
5239
+ "_xapiRef": {
5240
+ "type": "string"
5241
+ },
5242
+ "uuid": {
5243
+ "type": "string"
5244
+ },
5245
+ "$host": {
5246
+ "type": "string"
5247
+ },
5248
+ "$network": {
5249
+ "type": "string"
5250
+ },
5251
+ "attached": {
5252
+ "type": "boolean"
5253
+ },
5254
+ "bondMaster": {
5255
+ "type": "string"
5256
+ },
5257
+ "bondSalves": {
5258
+ "items": {
5259
+ "$ref": "#/components/schemas/Branded_PIF_"
5260
+ },
5261
+ "type": "array"
5262
+ },
5263
+ "carrier": {
5264
+ "type": "boolean"
5265
+ },
5266
+ "device": {
5267
+ "type": "string"
5268
+ },
5269
+ "deviceName": {
5270
+ "type": "string"
5271
+ },
5272
+ "disallowUnplug": {
5273
+ "type": "boolean"
5274
+ },
5275
+ "dns": {
5276
+ "type": "string"
5277
+ },
5278
+ "gateway": {
5279
+ "type": "string"
5280
+ },
5281
+ "id": {
5282
+ "type": "string"
5283
+ },
5284
+ "ip": {
5285
+ "type": "string"
5286
+ },
5287
+ "ipv6": {
5288
+ "items": {
5289
+ "type": "string"
5290
+ },
5291
+ "type": "array"
5292
+ },
5293
+ "ipv6Mode": {
5294
+ "$ref": "#/components/schemas/IPV6_CONFIGURATION_MODE"
5295
+ },
5296
+ "isBondMaster": {
5297
+ "type": "boolean"
5298
+ },
5299
+ "isBondSlave": {
5300
+ "type": "boolean"
5301
+ },
5302
+ "mac": {
5303
+ "type": "string"
5304
+ },
5305
+ "management": {
5306
+ "type": "boolean"
5307
+ },
5308
+ "mode": {
5309
+ "$ref": "#/components/schemas/IP_CONFIGURATION_MODE"
5310
+ },
5311
+ "mtu": {
5312
+ "type": "number",
5313
+ "format": "double"
5314
+ },
5315
+ "netmask": {
5316
+ "type": "string"
5317
+ },
5318
+ "physical": {
5319
+ "type": "boolean"
5320
+ },
5321
+ "primaryAddressType": {
5322
+ "$ref": "#/components/schemas/PRIMARY_ADDRESS_TYPE"
5323
+ },
5324
+ "speed": {
5325
+ "type": "number",
5326
+ "format": "double"
5327
+ },
5328
+ "type": {
5329
+ "type": "string",
5330
+ "enum": [
5331
+ "PIF"
5332
+ ],
5333
+ "nullable": false
5334
+ },
5335
+ "vlan": {
5336
+ "type": "number",
5337
+ "format": "double"
5338
+ }
5339
+ },
5340
+ "required": [
5341
+ "$pool",
5342
+ "$poolId",
5343
+ "_xapiRef",
5344
+ "uuid",
5345
+ "$host",
5346
+ "$network",
5347
+ "attached",
5348
+ "carrier",
5349
+ "device",
5350
+ "disallowUnplug",
5351
+ "dns",
5352
+ "gateway",
5353
+ "id",
5354
+ "ip",
5355
+ "ipv6",
5356
+ "ipv6Mode",
5357
+ "isBondMaster",
5358
+ "isBondSlave",
5359
+ "mac",
5360
+ "management",
5361
+ "mode",
5362
+ "mtu",
5363
+ "netmask",
5364
+ "physical",
5365
+ "primaryAddressType",
5366
+ "type",
5367
+ "vlan"
5368
+ ],
5369
+ "type": "object"
5370
+ },
5371
+ "UnbrandedXoPif": {
5372
+ "$ref": "#/components/schemas/Unbrand_XoPif_"
5373
+ },
5374
+ "Record_string.attaching_": {
5375
+ "properties": {},
5376
+ "type": "object",
5377
+ "description": "Construct a type with a set of properties K of type T"
5378
+ },
5379
+ "Partial_Unbrand_XoNetwork__": {
5380
+ "properties": {
5381
+ "$pool": {
5382
+ "type": "string"
5383
+ },
5384
+ "$poolId": {
5385
+ "type": "string",
5386
+ "deprecated": true
5387
+ },
5388
+ "_xapiRef": {
5389
+ "type": "string"
5390
+ },
5391
+ "uuid": {
5392
+ "type": "string"
5393
+ },
5394
+ "MTU": {
5395
+ "type": "number",
5396
+ "format": "double"
5397
+ },
5398
+ "PIFs": {
5399
+ "items": {
5400
+ "type": "string"
5401
+ },
5402
+ "type": "array"
5403
+ },
5404
+ "VIFs": {
5405
+ "items": {
5406
+ "type": "string"
5407
+ },
5408
+ "type": "array"
5409
+ },
5410
+ "automatic": {
5411
+ "type": "boolean"
5412
+ },
5413
+ "bridge": {
5414
+ "type": "string"
5415
+ },
5416
+ "current_operations": {
5417
+ "$ref": "#/components/schemas/Record_string.attaching_"
5418
+ },
5419
+ "defaultIsLocked": {
5420
+ "type": "boolean"
5421
+ },
5422
+ "id": {
5423
+ "type": "string"
5424
+ },
5425
+ "insecureNbd": {
5426
+ "type": "boolean"
5427
+ },
5428
+ "name_description": {
5429
+ "type": "string"
5430
+ },
5431
+ "name_label": {
5432
+ "type": "string"
5433
+ },
5434
+ "nbd": {
5435
+ "type": "boolean"
5436
+ },
5437
+ "other_config": {
5438
+ "$ref": "#/components/schemas/Record_string.string_"
5439
+ },
5440
+ "tags": {
5441
+ "items": {
5442
+ "type": "string"
5443
+ },
5444
+ "type": "array"
5445
+ },
5446
+ "type": {
5447
+ "type": "string",
5448
+ "enum": [
5449
+ "network"
5450
+ ]
5451
+ }
5452
+ },
5453
+ "type": "object",
5454
+ "description": "Make all properties in T optional"
5455
+ },
5456
+ "WithHref_Partial_Unbrand_XoNetwork___": {
5457
+ "allOf": [
5458
+ {
5459
+ "$ref": "#/components/schemas/Partial_Unbrand_XoNetwork__"
5460
+ },
5461
+ {
5462
+ "properties": {
5463
+ "href": {
5464
+ "type": "string"
4853
5465
  }
4854
5466
  },
4855
5467
  "required": [
@@ -5023,6 +5635,7 @@
5023
5635
  "SR",
5024
5636
  "message",
5025
5637
  "network",
5638
+ "PIF",
5026
5639
  "VDI",
5027
5640
  "VDI-snapshot",
5028
5641
  "VDI-unmanaged",
@@ -5129,6 +5742,7 @@
5129
5742
  "SR",
5130
5743
  "message",
5131
5744
  "network",
5745
+ "PIF",
5132
5746
  "VDI",
5133
5747
  "VDI-snapshot",
5134
5748
  "VDI-unmanaged",
@@ -6226,7 +6840,7 @@
6226
6840
  },
6227
6841
  "info": {
6228
6842
  "title": "@xen-orchestra/rest-api",
6229
- "version": "0.6.0",
6843
+ "version": "0.8.0",
6230
6844
  "description": "REST API to manage your XOA",
6231
6845
  "license": {
6232
6846
  "name": "AGPL-3.0-or-later"
@@ -7825,28 +8439,379 @@
7825
8439
  ]
7826
8440
  }
7827
8441
  },
7828
- "/vm-templates": {
7829
- "get": {
7830
- "operationId": "GetVmTemplates",
8442
+ "/vms/{id}/actions/clean_shutdown": {
8443
+ "post": {
8444
+ "operationId": "CleanShutdownVm",
7831
8445
  "responses": {
7832
- "200": {
7833
- "description": "Ok",
8446
+ "202": {
8447
+ "description": "Action executed asynchronously",
7834
8448
  "content": {
7835
- "application/json": {
8449
+ "text/plain": {
7836
8450
  "schema": {
7837
8451
  "anyOf": [
7838
8452
  {
7839
- "items": {
7840
- "type": "string"
7841
- },
7842
- "type": "array"
8453
+ "type": "string"
7843
8454
  },
7844
- {
7845
- "items": {
7846
- "$ref": "#/components/schemas/WithHref_Partial_Unbrand_XoVmTemplate___"
7847
- },
7848
- "type": "array"
7849
- }
8455
+ {}
8456
+ ]
8457
+ },
8458
+ "examples": {
8459
+ "Example 1": {
8460
+ "value": "/rest/v0/tasks/0m7kl0j9l"
8461
+ }
8462
+ }
8463
+ }
8464
+ }
8465
+ },
8466
+ "204": {
8467
+ "description": "No content"
8468
+ },
8469
+ "401": {
8470
+ "description": "Authentication required"
8471
+ },
8472
+ "404": {
8473
+ "description": "Resource not found"
8474
+ },
8475
+ "500": {
8476
+ "description": "Internal server error, XenServer/XCP-ng error"
8477
+ }
8478
+ },
8479
+ "description": "Requires guest tools to be installed",
8480
+ "tags": [
8481
+ "vms"
8482
+ ],
8483
+ "security": [
8484
+ {
8485
+ "*": []
8486
+ }
8487
+ ],
8488
+ "parameters": [
8489
+ {
8490
+ "in": "path",
8491
+ "name": "id",
8492
+ "required": true,
8493
+ "schema": {
8494
+ "type": "string"
8495
+ },
8496
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
8497
+ },
8498
+ {
8499
+ "in": "query",
8500
+ "name": "sync",
8501
+ "required": false,
8502
+ "schema": {
8503
+ "type": "boolean"
8504
+ }
8505
+ }
8506
+ ]
8507
+ }
8508
+ },
8509
+ "/vms/{id}/actions/clean_reboot": {
8510
+ "post": {
8511
+ "operationId": "CleanRebootVm",
8512
+ "responses": {
8513
+ "200": {
8514
+ "description": "Ok",
8515
+ "content": {
8516
+ "application/json": {
8517
+ "schema": {
8518
+ "anyOf": [
8519
+ {},
8520
+ {
8521
+ "type": "string"
8522
+ }
8523
+ ]
8524
+ },
8525
+ "examples": {
8526
+ "Example 1": {
8527
+ "value": "/rest/v0/tasks/0m7kl0j9l"
8528
+ }
8529
+ }
8530
+ }
8531
+ }
8532
+ },
8533
+ "401": {
8534
+ "description": "Authentication required"
8535
+ }
8536
+ },
8537
+ "description": "Requires guest tools to be installed",
8538
+ "tags": [
8539
+ "vms"
8540
+ ],
8541
+ "security": [
8542
+ {
8543
+ "*": []
8544
+ }
8545
+ ],
8546
+ "parameters": [
8547
+ {
8548
+ "in": "path",
8549
+ "name": "id",
8550
+ "required": true,
8551
+ "schema": {
8552
+ "type": "string"
8553
+ },
8554
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
8555
+ },
8556
+ {
8557
+ "in": "query",
8558
+ "name": "sync",
8559
+ "required": false,
8560
+ "schema": {
8561
+ "type": "boolean"
8562
+ }
8563
+ }
8564
+ ]
8565
+ }
8566
+ },
8567
+ "/vms/{id}/actions/hard_shutdown": {
8568
+ "post": {
8569
+ "operationId": "HardShutdownVm",
8570
+ "responses": {
8571
+ "202": {
8572
+ "description": "Action executed asynchronously",
8573
+ "content": {
8574
+ "text/plain": {
8575
+ "schema": {
8576
+ "anyOf": [
8577
+ {
8578
+ "type": "string"
8579
+ },
8580
+ {}
8581
+ ]
8582
+ },
8583
+ "examples": {
8584
+ "Example 1": {
8585
+ "value": "/rest/v0/tasks/0m7kl0j9l"
8586
+ }
8587
+ }
8588
+ }
8589
+ }
8590
+ },
8591
+ "204": {
8592
+ "description": "No content"
8593
+ },
8594
+ "401": {
8595
+ "description": "Authentication required"
8596
+ },
8597
+ "404": {
8598
+ "description": "Resource not found"
8599
+ },
8600
+ "500": {
8601
+ "description": "Internal server error, XenServer/XCP-ng error"
8602
+ }
8603
+ },
8604
+ "tags": [
8605
+ "vms"
8606
+ ],
8607
+ "security": [
8608
+ {
8609
+ "*": []
8610
+ }
8611
+ ],
8612
+ "parameters": [
8613
+ {
8614
+ "in": "path",
8615
+ "name": "id",
8616
+ "required": true,
8617
+ "schema": {
8618
+ "type": "string"
8619
+ },
8620
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
8621
+ },
8622
+ {
8623
+ "in": "query",
8624
+ "name": "sync",
8625
+ "required": false,
8626
+ "schema": {
8627
+ "type": "boolean"
8628
+ }
8629
+ }
8630
+ ]
8631
+ }
8632
+ },
8633
+ "/vms/{id}/actions/hard_reboot": {
8634
+ "post": {
8635
+ "operationId": "HardRebootVm",
8636
+ "responses": {
8637
+ "202": {
8638
+ "description": "Action executed asynchronously",
8639
+ "content": {
8640
+ "text/plain": {
8641
+ "schema": {
8642
+ "anyOf": [
8643
+ {},
8644
+ {
8645
+ "type": "string"
8646
+ }
8647
+ ]
8648
+ },
8649
+ "examples": {
8650
+ "Example 1": {
8651
+ "value": "/rest/v0/tasks/0m7kl0j9l"
8652
+ }
8653
+ }
8654
+ }
8655
+ }
8656
+ },
8657
+ "204": {
8658
+ "description": "No content"
8659
+ },
8660
+ "401": {
8661
+ "description": "Authentication required"
8662
+ },
8663
+ "404": {
8664
+ "description": "Resource not found"
8665
+ },
8666
+ "500": {
8667
+ "description": "Internal server error, XenServer/XCP-ng error"
8668
+ }
8669
+ },
8670
+ "tags": [
8671
+ "vms"
8672
+ ],
8673
+ "security": [
8674
+ {
8675
+ "*": []
8676
+ }
8677
+ ],
8678
+ "parameters": [
8679
+ {
8680
+ "in": "path",
8681
+ "name": "id",
8682
+ "required": true,
8683
+ "schema": {
8684
+ "type": "string"
8685
+ },
8686
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
8687
+ },
8688
+ {
8689
+ "in": "query",
8690
+ "name": "sync",
8691
+ "required": false,
8692
+ "schema": {
8693
+ "type": "boolean"
8694
+ }
8695
+ }
8696
+ ]
8697
+ }
8698
+ },
8699
+ "/vms/{id}/actions/snapshot": {
8700
+ "post": {
8701
+ "operationId": "SnapshotVm",
8702
+ "responses": {
8703
+ "201": {
8704
+ "description": "Snapshot created"
8705
+ },
8706
+ "202": {
8707
+ "description": "Action executed asynchronously",
8708
+ "content": {
8709
+ "text/plain": {
8710
+ "schema": {
8711
+ "anyOf": [
8712
+ {
8713
+ "type": "string"
8714
+ },
8715
+ {
8716
+ "properties": {
8717
+ "id": {
8718
+ "type": "string"
8719
+ }
8720
+ },
8721
+ "required": [
8722
+ "id"
8723
+ ],
8724
+ "type": "object"
8725
+ }
8726
+ ]
8727
+ },
8728
+ "examples": {
8729
+ "Example 1": {
8730
+ "value": "/rest/v0/tasks/0m7kl0j9l"
8731
+ }
8732
+ }
8733
+ }
8734
+ }
8735
+ },
8736
+ "401": {
8737
+ "description": "Authentication required"
8738
+ },
8739
+ "404": {
8740
+ "description": "Resource not found"
8741
+ },
8742
+ "500": {
8743
+ "description": "Internal server error, XenServer/XCP-ng error"
8744
+ }
8745
+ },
8746
+ "tags": [
8747
+ "vms"
8748
+ ],
8749
+ "security": [
8750
+ {
8751
+ "*": []
8752
+ }
8753
+ ],
8754
+ "parameters": [
8755
+ {
8756
+ "in": "path",
8757
+ "name": "id",
8758
+ "required": true,
8759
+ "schema": {
8760
+ "type": "string"
8761
+ },
8762
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
8763
+ },
8764
+ {
8765
+ "in": "query",
8766
+ "name": "sync",
8767
+ "required": false,
8768
+ "schema": {
8769
+ "type": "boolean"
8770
+ }
8771
+ }
8772
+ ],
8773
+ "requestBody": {
8774
+ "required": false,
8775
+ "content": {
8776
+ "application/json": {
8777
+ "schema": {
8778
+ "properties": {
8779
+ "name_label": {
8780
+ "type": "string"
8781
+ }
8782
+ },
8783
+ "type": "object"
8784
+ },
8785
+ "example": {
8786
+ "name_label": "my_awesome_snapshot"
8787
+ }
8788
+ }
8789
+ }
8790
+ }
8791
+ }
8792
+ },
8793
+ "/vm-templates": {
8794
+ "get": {
8795
+ "operationId": "GetVmTemplates",
8796
+ "responses": {
8797
+ "200": {
8798
+ "description": "Ok",
8799
+ "content": {
8800
+ "application/json": {
8801
+ "schema": {
8802
+ "anyOf": [
8803
+ {
8804
+ "items": {
8805
+ "type": "string"
8806
+ },
8807
+ "type": "array"
8808
+ },
8809
+ {
8810
+ "items": {
8811
+ "$ref": "#/components/schemas/WithHref_Partial_Unbrand_XoVmTemplate___"
8812
+ },
8813
+ "type": "array"
8814
+ }
7850
8815
  ]
7851
8816
  },
7852
8817
  "examples": {
@@ -9610,7 +10575,223 @@
9610
10575
  }
9611
10576
  },
9612
10577
  "tags": [
9613
- "srs"
10578
+ "srs"
10579
+ ],
10580
+ "security": [
10581
+ {
10582
+ "*": []
10583
+ }
10584
+ ],
10585
+ "parameters": [
10586
+ {
10587
+ "in": "path",
10588
+ "name": "id",
10589
+ "required": true,
10590
+ "schema": {
10591
+ "type": "string"
10592
+ },
10593
+ "example": "c4284e12-37c9-7967-b9e8-83ef229c3e03"
10594
+ }
10595
+ ]
10596
+ }
10597
+ },
10598
+ "/servers": {
10599
+ "get": {
10600
+ "operationId": "GetServers",
10601
+ "responses": {
10602
+ "200": {
10603
+ "description": "Ok",
10604
+ "content": {
10605
+ "application/json": {
10606
+ "schema": {
10607
+ "anyOf": [
10608
+ {
10609
+ "items": {
10610
+ "type": "string"
10611
+ },
10612
+ "type": "array"
10613
+ },
10614
+ {
10615
+ "items": {
10616
+ "$ref": "#/components/schemas/WithHref_Partial_Unbrand_XoServer___"
10617
+ },
10618
+ "type": "array"
10619
+ }
10620
+ ]
10621
+ },
10622
+ "examples": {
10623
+ "Example 1": {
10624
+ "value": [
10625
+ "/rest/v0/servers/f07ab729-c0e8-721c-45ec-f11276377030",
10626
+ "/rest/v0/servers/d5d1c4a3-4c5e-ca7b-6be8-33c824f87571"
10627
+ ]
10628
+ },
10629
+ "Example 2": {
10630
+ "value": [
10631
+ {
10632
+ "id": "63375ed4-6d71-4fce-91b0-0a98921b1f9f",
10633
+ "status": "connected",
10634
+ "href": "/rest/v0/servers/63375ed4-6d71-4fce-91b0-0a98921b1f9f"
10635
+ },
10636
+ {
10637
+ "id": "7202d2b7-913a-473b-b6d1-39447a51643f",
10638
+ "status": "connected",
10639
+ "href": "/rest/v0/servers/7202d2b7-913a-473b-b6d1-39447a51643f"
10640
+ }
10641
+ ]
10642
+ }
10643
+ }
10644
+ }
10645
+ }
10646
+ },
10647
+ "401": {
10648
+ "description": "Authentication required"
10649
+ }
10650
+ },
10651
+ "tags": [
10652
+ "servers"
10653
+ ],
10654
+ "security": [
10655
+ {
10656
+ "*": []
10657
+ }
10658
+ ],
10659
+ "parameters": [
10660
+ {
10661
+ "in": "query",
10662
+ "name": "fields",
10663
+ "required": false,
10664
+ "schema": {
10665
+ "type": "string"
10666
+ },
10667
+ "example": "status,id"
10668
+ },
10669
+ {
10670
+ "in": "query",
10671
+ "name": "filter",
10672
+ "required": false,
10673
+ "schema": {
10674
+ "type": "string"
10675
+ },
10676
+ "example": "status:/^connected$/"
10677
+ },
10678
+ {
10679
+ "in": "query",
10680
+ "name": "limit",
10681
+ "required": false,
10682
+ "schema": {
10683
+ "format": "double",
10684
+ "type": "number"
10685
+ },
10686
+ "example": 42
10687
+ }
10688
+ ]
10689
+ },
10690
+ "post": {
10691
+ "operationId": "AddServer",
10692
+ "responses": {
10693
+ "201": {
10694
+ "description": "Resource created",
10695
+ "content": {
10696
+ "application/json": {
10697
+ "schema": {
10698
+ "properties": {
10699
+ "id": {
10700
+ "type": "string"
10701
+ }
10702
+ },
10703
+ "required": [
10704
+ "id"
10705
+ ],
10706
+ "type": "object"
10707
+ },
10708
+ "examples": {
10709
+ "Example 1": {
10710
+ "value": {
10711
+ "id": "38068475-3a1d-4a64-95df-8782cdea02ac"
10712
+ }
10713
+ }
10714
+ }
10715
+ }
10716
+ }
10717
+ },
10718
+ "401": {
10719
+ "description": "Authentication required"
10720
+ },
10721
+ "409": {
10722
+ "description": "Resource already exists"
10723
+ },
10724
+ "422": {
10725
+ "description": "Invalid parameters"
10726
+ }
10727
+ },
10728
+ "tags": [
10729
+ "servers"
10730
+ ],
10731
+ "security": [
10732
+ {
10733
+ "*": []
10734
+ }
10735
+ ],
10736
+ "parameters": [],
10737
+ "requestBody": {
10738
+ "required": true,
10739
+ "content": {
10740
+ "application/json": {
10741
+ "schema": {
10742
+ "$ref": "#/components/schemas/InsertableXoServer"
10743
+ },
10744
+ "example": {
10745
+ "allowUnauthorized": true,
10746
+ "host": "192.168.1.10",
10747
+ "label": "Example server",
10748
+ "username": "root",
10749
+ "password": "awes0meP4ssword"
10750
+ }
10751
+ }
10752
+ }
10753
+ }
10754
+ }
10755
+ },
10756
+ "/servers/{id}": {
10757
+ "get": {
10758
+ "operationId": "GetServer",
10759
+ "responses": {
10760
+ "200": {
10761
+ "description": "Ok",
10762
+ "content": {
10763
+ "application/json": {
10764
+ "schema": {
10765
+ "$ref": "#/components/schemas/Unbrand_XoServer_"
10766
+ },
10767
+ "examples": {
10768
+ "Example 1": {
10769
+ "value": {
10770
+ "host": "192.168.1.2",
10771
+ "label": "MRA local",
10772
+ "username": "root",
10773
+ "allowUnauthorized": true,
10774
+ "poolNameLabel": "MRA local",
10775
+ "enabled": true,
10776
+ "readOnly": false,
10777
+ "id": "63375ed4-6d71-4fce-91b0-0a98921b1f9f",
10778
+ "status": "connected",
10779
+ "poolId": "b7569d99-30f8-178a-7d94-801de3e29b5b"
10780
+ }
10781
+ }
10782
+ }
10783
+ }
10784
+ }
10785
+ },
10786
+ "401": {
10787
+ "description": "Authentication required"
10788
+ },
10789
+ "404": {
10790
+ "description": "Resource not found"
10791
+ }
10792
+ },
10793
+ "tags": [
10794
+ "servers"
9614
10795
  ],
9615
10796
  "security": [
9616
10797
  {
@@ -9625,62 +10806,46 @@
9625
10806
  "schema": {
9626
10807
  "type": "string"
9627
10808
  },
9628
- "example": "c4284e12-37c9-7967-b9e8-83ef229c3e03"
10809
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
9629
10810
  }
9630
10811
  ]
9631
10812
  }
9632
10813
  },
9633
- "/servers": {
9634
- "get": {
9635
- "operationId": "GetServers",
10814
+ "/servers/{id}/actions/connect": {
10815
+ "post": {
10816
+ "operationId": "ConnectServer",
9636
10817
  "responses": {
9637
- "200": {
9638
- "description": "Ok",
10818
+ "202": {
10819
+ "description": "Action executed asynchronously",
9639
10820
  "content": {
9640
- "application/json": {
10821
+ "text/plain": {
9641
10822
  "schema": {
9642
10823
  "anyOf": [
10824
+ {},
9643
10825
  {
9644
- "items": {
9645
- "type": "string"
9646
- },
9647
- "type": "array"
9648
- },
9649
- {
9650
- "items": {
9651
- "$ref": "#/components/schemas/WithHref_Partial_Unbrand_XoServer___"
9652
- },
9653
- "type": "array"
10826
+ "type": "string"
9654
10827
  }
9655
10828
  ]
9656
10829
  },
9657
10830
  "examples": {
9658
10831
  "Example 1": {
9659
- "value": [
9660
- "/rest/v0/servers/f07ab729-c0e8-721c-45ec-f11276377030",
9661
- "/rest/v0/servers/d5d1c4a3-4c5e-ca7b-6be8-33c824f87571"
9662
- ]
9663
- },
9664
- "Example 2": {
9665
- "value": [
9666
- {
9667
- "id": "63375ed4-6d71-4fce-91b0-0a98921b1f9f",
9668
- "status": "connected",
9669
- "href": "/rest/v0/servers/63375ed4-6d71-4fce-91b0-0a98921b1f9f"
9670
- },
9671
- {
9672
- "id": "7202d2b7-913a-473b-b6d1-39447a51643f",
9673
- "status": "connected",
9674
- "href": "/rest/v0/servers/7202d2b7-913a-473b-b6d1-39447a51643f"
9675
- }
9676
- ]
10832
+ "value": "/rest/v0/tasks/0m7kl0j9l"
9677
10833
  }
9678
10834
  }
9679
10835
  }
9680
10836
  }
9681
10837
  },
10838
+ "204": {
10839
+ "description": "No content"
10840
+ },
9682
10841
  "401": {
9683
10842
  "description": "Authentication required"
10843
+ },
10844
+ "404": {
10845
+ "description": "Resource not found"
10846
+ },
10847
+ "409": {
10848
+ "description": "The server is already connected"
9684
10849
  }
9685
10850
  },
9686
10851
  "tags": [
@@ -9693,71 +10858,60 @@
9693
10858
  ],
9694
10859
  "parameters": [
9695
10860
  {
9696
- "in": "query",
9697
- "name": "fields",
9698
- "required": false,
9699
- "schema": {
9700
- "type": "string"
9701
- },
9702
- "example": "status,id"
9703
- },
9704
- {
9705
- "in": "query",
9706
- "name": "filter",
9707
- "required": false,
10861
+ "in": "path",
10862
+ "name": "id",
10863
+ "required": true,
9708
10864
  "schema": {
9709
10865
  "type": "string"
9710
10866
  },
9711
- "example": "status:/^connected$/"
10867
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
9712
10868
  },
9713
10869
  {
9714
10870
  "in": "query",
9715
- "name": "limit",
10871
+ "name": "sync",
9716
10872
  "required": false,
9717
10873
  "schema": {
9718
- "format": "double",
9719
- "type": "number"
9720
- },
9721
- "example": 42
10874
+ "type": "boolean"
10875
+ }
9722
10876
  }
9723
10877
  ]
9724
10878
  }
9725
10879
  },
9726
- "/servers/{id}": {
9727
- "get": {
9728
- "operationId": "GetServer",
10880
+ "/servers/{id}/actions/disconnect": {
10881
+ "post": {
10882
+ "operationId": "DisconnectServer",
9729
10883
  "responses": {
9730
- "200": {
9731
- "description": "Ok",
10884
+ "202": {
10885
+ "description": "Action executed asynchronously",
9732
10886
  "content": {
9733
- "application/json": {
10887
+ "text/plain": {
9734
10888
  "schema": {
9735
- "$ref": "#/components/schemas/Unbrand_XoServer_"
10889
+ "anyOf": [
10890
+ {},
10891
+ {
10892
+ "type": "string"
10893
+ }
10894
+ ]
9736
10895
  },
9737
10896
  "examples": {
9738
10897
  "Example 1": {
9739
- "value": {
9740
- "host": "192.168.1.2",
9741
- "label": "MRA local",
9742
- "username": "root",
9743
- "allowUnauthorized": true,
9744
- "poolNameLabel": "MRA local",
9745
- "enabled": true,
9746
- "readOnly": false,
9747
- "id": "63375ed4-6d71-4fce-91b0-0a98921b1f9f",
9748
- "status": "connected",
9749
- "poolId": "b7569d99-30f8-178a-7d94-801de3e29b5b"
9750
- }
10898
+ "value": "/rest/v0/tasks/0m7kl0j9l"
9751
10899
  }
9752
10900
  }
9753
10901
  }
9754
10902
  }
9755
10903
  },
10904
+ "204": {
10905
+ "description": "No content"
10906
+ },
9756
10907
  "401": {
9757
10908
  "description": "Authentication required"
9758
10909
  },
9759
10910
  "404": {
9760
10911
  "description": "Resource not found"
10912
+ },
10913
+ "409": {
10914
+ "description": "The server is already disconnected"
9761
10915
  }
9762
10916
  },
9763
10917
  "tags": [
@@ -9777,6 +10931,14 @@
9777
10931
  "type": "string"
9778
10932
  },
9779
10933
  "example": "f07ab729-c0e8-721c-45ec-f11276377030"
10934
+ },
10935
+ {
10936
+ "in": "query",
10937
+ "name": "sync",
10938
+ "required": false,
10939
+ "schema": {
10940
+ "type": "boolean"
10941
+ }
9780
10942
  }
9781
10943
  ]
9782
10944
  }
@@ -10188,6 +11350,180 @@
10188
11350
  ]
10189
11351
  }
10190
11352
  },
11353
+ "/pifs": {
11354
+ "get": {
11355
+ "operationId": "GetPifs",
11356
+ "responses": {
11357
+ "200": {
11358
+ "description": "Ok",
11359
+ "content": {
11360
+ "application/json": {
11361
+ "schema": {
11362
+ "anyOf": [
11363
+ {
11364
+ "items": {
11365
+ "type": "string"
11366
+ },
11367
+ "type": "array"
11368
+ },
11369
+ {
11370
+ "items": {
11371
+ "$ref": "#/components/schemas/WithHref_Partial_UnbrandedXoPif__"
11372
+ },
11373
+ "type": "array"
11374
+ }
11375
+ ]
11376
+ },
11377
+ "examples": {
11378
+ "Example 1": {
11379
+ "value": [
11380
+ "/rest/v0/pifs/d9e42451-3794-089f-de81-4ee0e6137bee",
11381
+ "/rest/v0/pifs/3f258258-ffd9-7bf2-2b47-74a0af2ea3b3"
11382
+ ]
11383
+ },
11384
+ "Example 2": {
11385
+ "value": [
11386
+ {
11387
+ "attached": true,
11388
+ "device": "eth0",
11389
+ "deviceName": "MT27520 Family [ConnectX-3 Pro]",
11390
+ "id": "d9e42451-3794-089f-de81-4ee0e6137bee",
11391
+ "href": "/rest/v0/pifs/d9e42451-3794-089f-de81-4ee0e6137bee"
11392
+ },
11393
+ {
11394
+ "attached": true,
11395
+ "device": "eth1",
11396
+ "deviceName": "MT27520 Family [ConnectX-3 Pro]",
11397
+ "id": "3f258258-ffd9-7bf2-2b47-74a0af2ea3b3",
11398
+ "href": "/rest/v0/pifs/3f258258-ffd9-7bf2-2b47-74a0af2ea3b3"
11399
+ }
11400
+ ]
11401
+ }
11402
+ }
11403
+ }
11404
+ }
11405
+ },
11406
+ "401": {
11407
+ "description": "Authentication required"
11408
+ }
11409
+ },
11410
+ "tags": [
11411
+ "pifs"
11412
+ ],
11413
+ "security": [
11414
+ {
11415
+ "*": []
11416
+ }
11417
+ ],
11418
+ "parameters": [
11419
+ {
11420
+ "in": "query",
11421
+ "name": "fields",
11422
+ "required": false,
11423
+ "schema": {
11424
+ "type": "string"
11425
+ },
11426
+ "example": "attached,device,deviceName,id"
11427
+ },
11428
+ {
11429
+ "in": "query",
11430
+ "name": "filter",
11431
+ "required": false,
11432
+ "schema": {
11433
+ "type": "string"
11434
+ },
11435
+ "example": "attached?"
11436
+ },
11437
+ {
11438
+ "in": "query",
11439
+ "name": "limit",
11440
+ "required": false,
11441
+ "schema": {
11442
+ "format": "double",
11443
+ "type": "number"
11444
+ },
11445
+ "example": 42
11446
+ }
11447
+ ]
11448
+ }
11449
+ },
11450
+ "/pifs/{id}": {
11451
+ "get": {
11452
+ "operationId": "GetPif",
11453
+ "responses": {
11454
+ "200": {
11455
+ "description": "Ok",
11456
+ "content": {
11457
+ "application/json": {
11458
+ "schema": {
11459
+ "$ref": "#/components/schemas/UnbrandedXoPif"
11460
+ },
11461
+ "examples": {
11462
+ "Example 1": {
11463
+ "value": {
11464
+ "type": "PIF",
11465
+ "attached": true,
11466
+ "isBondMaster": false,
11467
+ "isBondSlave": false,
11468
+ "device": "eth0",
11469
+ "deviceName": "MT27520 Family [ConnectX-3 Pro]",
11470
+ "dns": "",
11471
+ "disallowUnplug": false,
11472
+ "gateway": "",
11473
+ "ip": "",
11474
+ "ipv6": [],
11475
+ "mac": "ec:eb:b8:8e:d1:12",
11476
+ "management": false,
11477
+ "carrier": true,
11478
+ "mode": "None",
11479
+ "ipv6Mode": "None",
11480
+ "mtu": 1500,
11481
+ "netmask": "",
11482
+ "physical": true,
11483
+ "primaryAddressType": "IPv4",
11484
+ "vlan": -1,
11485
+ "speed": 10000,
11486
+ "$host": "b61a5c92-700e-4966-a13b-00633f03eea8",
11487
+ "$network": "ac9b098e-df7f-50d3-b013-95d4cd550c61",
11488
+ "id": "d9e42451-3794-089f-de81-4ee0e6137bee",
11489
+ "uuid": "d9e42451-3794-089f-de81-4ee0e6137bee",
11490
+ "$pool": "b7569d99-30f8-178a-7d94-801de3e29b5b",
11491
+ "$poolId": "b7569d99-30f8-178a-7d94-801de3e29b5b",
11492
+ "_xapiRef": "OpaqueRef:d94c0e13-ce19-c545-bcf2-c4cbbd3d43b8"
11493
+ }
11494
+ }
11495
+ }
11496
+ }
11497
+ }
11498
+ },
11499
+ "401": {
11500
+ "description": "Authentication required"
11501
+ },
11502
+ "404": {
11503
+ "description": "Resource not found"
11504
+ }
11505
+ },
11506
+ "tags": [
11507
+ "pifs"
11508
+ ],
11509
+ "security": [
11510
+ {
11511
+ "*": []
11512
+ }
11513
+ ],
11514
+ "parameters": [
11515
+ {
11516
+ "in": "path",
11517
+ "name": "id",
11518
+ "required": true,
11519
+ "schema": {
11520
+ "type": "string"
11521
+ },
11522
+ "example": "d9e42451-3794-089f-de81-4ee0e6137bee"
11523
+ }
11524
+ ]
11525
+ }
11526
+ },
10191
11527
  "/networks": {
10192
11528
  "get": {
10193
11529
  "operationId": "GetNetworks",