@xen-orchestra/rest-api 0.7.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"
@@ -4730,41 +4990,351 @@
4730
4990
  "name_description": {
4731
4991
  "type": "string"
4732
4992
  },
4733
- "name_label": {
4734
- "type": "string"
4993
+ "name_label": {
4994
+ "type": "string"
4995
+ },
4996
+ "otherConfig": {
4997
+ "$ref": "#/components/schemas/Record_string.string_"
4998
+ },
4999
+ "platform_version": {
5000
+ "type": "string"
5001
+ },
5002
+ "suspendSr": {
5003
+ "type": "string"
5004
+ },
5005
+ "tags": {
5006
+ "items": {
5007
+ "type": "string"
5008
+ },
5009
+ "type": "array"
5010
+ },
5011
+ "type": {
5012
+ "type": "string",
5013
+ "enum": [
5014
+ "pool"
5015
+ ],
5016
+ "nullable": false
5017
+ },
5018
+ "vtpmSupported": {
5019
+ "type": "boolean"
5020
+ },
5021
+ "xosanPackInstallationTime": {
5022
+ "type": "number",
5023
+ "format": "double",
5024
+ "nullable": true
5025
+ },
5026
+ "zstdSupported": {
5027
+ "type": "boolean"
5028
+ }
5029
+ },
5030
+ "required": [
5031
+ "$pool",
5032
+ "$poolId",
5033
+ "_xapiRef",
5034
+ "uuid",
5035
+ "auto_poweron",
5036
+ "cpus",
5037
+ "current_operations",
5038
+ "HA_enabled",
5039
+ "haSrs",
5040
+ "id",
5041
+ "master",
5042
+ "name_description",
5043
+ "name_label",
5044
+ "otherConfig",
5045
+ "platform_version",
5046
+ "tags",
5047
+ "type",
5048
+ "vtpmSupported",
5049
+ "xosanPackInstallationTime",
5050
+ "zstdSupported"
5051
+ ],
5052
+ "type": "object"
5053
+ },
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
+ ]
5075
+ },
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_": {
5101
+ "properties": {
5102
+ "$pool": {
5103
+ "type": "string"
5104
+ },
5105
+ "$poolId": {
5106
+ "type": "string",
5107
+ "deprecated": true
5108
+ },
5109
+ "_xapiRef": {
5110
+ "type": "string"
5111
+ },
5112
+ "uuid": {
5113
+ "type": "string"
5114
+ },
5115
+ "$host": {
5116
+ "type": "string"
5117
+ },
5118
+ "$network": {
5119
+ "type": "string"
5120
+ },
5121
+ "attached": {
5122
+ "type": "boolean"
5123
+ },
5124
+ "bondMaster": {
5125
+ "type": "string"
5126
+ },
5127
+ "bondSalves": {
5128
+ "items": {
5129
+ "$ref": "#/components/schemas/Branded_PIF_"
5130
+ },
5131
+ "type": "array"
5132
+ },
5133
+ "carrier": {
5134
+ "type": "boolean"
5135
+ },
5136
+ "device": {
5137
+ "type": "string"
5138
+ },
5139
+ "deviceName": {
5140
+ "type": "string"
5141
+ },
5142
+ "disallowUnplug": {
5143
+ "type": "boolean"
5144
+ },
5145
+ "dns": {
5146
+ "type": "string"
5147
+ },
5148
+ "gateway": {
5149
+ "type": "string"
5150
+ },
5151
+ "id": {
5152
+ "type": "string"
5153
+ },
5154
+ "ip": {
5155
+ "type": "string"
5156
+ },
5157
+ "ipv6": {
5158
+ "items": {
5159
+ "type": "string"
5160
+ },
5161
+ "type": "array"
5162
+ },
5163
+ "ipv6Mode": {
5164
+ "$ref": "#/components/schemas/IPV6_CONFIGURATION_MODE"
5165
+ },
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"
4735
5310
  },
4736
- "otherConfig": {
4737
- "$ref": "#/components/schemas/Record_string.string_"
5311
+ "mtu": {
5312
+ "type": "number",
5313
+ "format": "double"
4738
5314
  },
4739
- "platform_version": {
5315
+ "netmask": {
4740
5316
  "type": "string"
4741
5317
  },
4742
- "suspendSr": {
4743
- "type": "string"
5318
+ "physical": {
5319
+ "type": "boolean"
4744
5320
  },
4745
- "tags": {
4746
- "items": {
4747
- "type": "string"
4748
- },
4749
- "type": "array"
5321
+ "primaryAddressType": {
5322
+ "$ref": "#/components/schemas/PRIMARY_ADDRESS_TYPE"
5323
+ },
5324
+ "speed": {
5325
+ "type": "number",
5326
+ "format": "double"
4750
5327
  },
4751
5328
  "type": {
4752
5329
  "type": "string",
4753
5330
  "enum": [
4754
- "pool"
5331
+ "PIF"
4755
5332
  ],
4756
5333
  "nullable": false
4757
5334
  },
4758
- "vtpmSupported": {
4759
- "type": "boolean"
4760
- },
4761
- "xosanPackInstallationTime": {
5335
+ "vlan": {
4762
5336
  "type": "number",
4763
- "format": "double",
4764
- "nullable": true
4765
- },
4766
- "zstdSupported": {
4767
- "type": "boolean"
5337
+ "format": "double"
4768
5338
  }
4769
5339
  },
4770
5340
  "required": [
@@ -4772,25 +5342,35 @@
4772
5342
  "$poolId",
4773
5343
  "_xapiRef",
4774
5344
  "uuid",
4775
- "auto_poweron",
4776
- "cpus",
4777
- "current_operations",
4778
- "HA_enabled",
4779
- "haSrs",
5345
+ "$host",
5346
+ "$network",
5347
+ "attached",
5348
+ "carrier",
5349
+ "device",
5350
+ "disallowUnplug",
5351
+ "dns",
5352
+ "gateway",
4780
5353
  "id",
4781
- "master",
4782
- "name_description",
4783
- "name_label",
4784
- "otherConfig",
4785
- "platform_version",
4786
- "tags",
5354
+ "ip",
5355
+ "ipv6",
5356
+ "ipv6Mode",
5357
+ "isBondMaster",
5358
+ "isBondSlave",
5359
+ "mac",
5360
+ "management",
5361
+ "mode",
5362
+ "mtu",
5363
+ "netmask",
5364
+ "physical",
5365
+ "primaryAddressType",
4787
5366
  "type",
4788
- "vtpmSupported",
4789
- "xosanPackInstallationTime",
4790
- "zstdSupported"
5367
+ "vlan"
4791
5368
  ],
4792
5369
  "type": "object"
4793
5370
  },
5371
+ "UnbrandedXoPif": {
5372
+ "$ref": "#/components/schemas/Unbrand_XoPif_"
5373
+ },
4794
5374
  "Record_string.attaching_": {
4795
5375
  "properties": {},
4796
5376
  "type": "object",
@@ -5055,6 +5635,7 @@
5055
5635
  "SR",
5056
5636
  "message",
5057
5637
  "network",
5638
+ "PIF",
5058
5639
  "VDI",
5059
5640
  "VDI-snapshot",
5060
5641
  "VDI-unmanaged",
@@ -5161,6 +5742,7 @@
5161
5742
  "SR",
5162
5743
  "message",
5163
5744
  "network",
5745
+ "PIF",
5164
5746
  "VDI",
5165
5747
  "VDI-snapshot",
5166
5748
  "VDI-unmanaged",
@@ -6258,7 +6840,7 @@
6258
6840
  },
6259
6841
  "info": {
6260
6842
  "title": "@xen-orchestra/rest-api",
6261
- "version": "0.7.0",
6843
+ "version": "0.8.0",
6262
6844
  "description": "REST API to manage your XOA",
6263
6845
  "license": {
6264
6846
  "name": "AGPL-3.0-or-later"
@@ -8114,6 +8696,100 @@
8114
8696
  ]
8115
8697
  }
8116
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
+ },
8117
8793
  "/vm-templates": {
8118
8794
  "get": {
8119
8795
  "operationId": "GetVmTemplates",
@@ -10674,6 +11350,180 @@
10674
11350
  ]
10675
11351
  }
10676
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
+ },
10677
11527
  "/networks": {
10678
11528
  "get": {
10679
11529
  "operationId": "GetNetworks",