@xen-orchestra/rest-api 0.4.0 → 0.6.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/groups/group.controller.mjs +60 -0
- package/dist/open-api/networks/network.controller.mjs +59 -0
- package/dist/open-api/oa-examples/group.oa-example.mjs +23 -0
- package/dist/open-api/oa-examples/network.oa-example.mjs +50 -0
- package/dist/open-api/oa-examples/user.oa-example.mjs +26 -0
- package/dist/open-api/oa-examples/vm-template.oa-example.mjs +1 -1
- package/dist/open-api/routes/routes.js +227 -0
- package/dist/users/user.controller.mjs +70 -0
- package/open-api/spec/swagger.json +836 -2
- package/package.json +1 -1
|
@@ -3978,6 +3978,96 @@
|
|
|
3978
3978
|
],
|
|
3979
3979
|
"type": "object"
|
|
3980
3980
|
},
|
|
3981
|
+
"Partial_Unbrand_XoUser__": {
|
|
3982
|
+
"properties": {
|
|
3983
|
+
"authProviders": {
|
|
3984
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
3985
|
+
},
|
|
3986
|
+
"email": {
|
|
3987
|
+
"type": "string"
|
|
3988
|
+
},
|
|
3989
|
+
"groups": {
|
|
3990
|
+
"items": {
|
|
3991
|
+
"type": "string"
|
|
3992
|
+
},
|
|
3993
|
+
"type": "array"
|
|
3994
|
+
},
|
|
3995
|
+
"id": {
|
|
3996
|
+
"type": "string"
|
|
3997
|
+
},
|
|
3998
|
+
"name": {
|
|
3999
|
+
"type": "string"
|
|
4000
|
+
},
|
|
4001
|
+
"permission": {
|
|
4002
|
+
"type": "string"
|
|
4003
|
+
},
|
|
4004
|
+
"pw_hash": {
|
|
4005
|
+
"type": "string"
|
|
4006
|
+
},
|
|
4007
|
+
"preferences": {
|
|
4008
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
4009
|
+
}
|
|
4010
|
+
},
|
|
4011
|
+
"type": "object",
|
|
4012
|
+
"description": "Make all properties in T optional"
|
|
4013
|
+
},
|
|
4014
|
+
"WithHref_Partial_Unbrand_XoUser___": {
|
|
4015
|
+
"allOf": [
|
|
4016
|
+
{
|
|
4017
|
+
"$ref": "#/components/schemas/Partial_Unbrand_XoUser__"
|
|
4018
|
+
},
|
|
4019
|
+
{
|
|
4020
|
+
"properties": {
|
|
4021
|
+
"href": {
|
|
4022
|
+
"type": "string"
|
|
4023
|
+
}
|
|
4024
|
+
},
|
|
4025
|
+
"required": [
|
|
4026
|
+
"href"
|
|
4027
|
+
],
|
|
4028
|
+
"type": "object"
|
|
4029
|
+
}
|
|
4030
|
+
]
|
|
4031
|
+
},
|
|
4032
|
+
"Unbrand_XoUser_": {
|
|
4033
|
+
"properties": {
|
|
4034
|
+
"authProviders": {
|
|
4035
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
4036
|
+
},
|
|
4037
|
+
"email": {
|
|
4038
|
+
"type": "string"
|
|
4039
|
+
},
|
|
4040
|
+
"groups": {
|
|
4041
|
+
"items": {
|
|
4042
|
+
"type": "string"
|
|
4043
|
+
},
|
|
4044
|
+
"type": "array"
|
|
4045
|
+
},
|
|
4046
|
+
"id": {
|
|
4047
|
+
"type": "string"
|
|
4048
|
+
},
|
|
4049
|
+
"name": {
|
|
4050
|
+
"type": "string"
|
|
4051
|
+
},
|
|
4052
|
+
"permission": {
|
|
4053
|
+
"type": "string"
|
|
4054
|
+
},
|
|
4055
|
+
"pw_hash": {
|
|
4056
|
+
"type": "string"
|
|
4057
|
+
},
|
|
4058
|
+
"preferences": {
|
|
4059
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
4060
|
+
}
|
|
4061
|
+
},
|
|
4062
|
+
"required": [
|
|
4063
|
+
"email",
|
|
4064
|
+
"groups",
|
|
4065
|
+
"id",
|
|
4066
|
+
"permission",
|
|
4067
|
+
"preferences"
|
|
4068
|
+
],
|
|
4069
|
+
"type": "object"
|
|
4070
|
+
},
|
|
3981
4071
|
"Record_string.STORAGE_OPERATIONS_": {
|
|
3982
4072
|
"properties": {},
|
|
3983
4073
|
"type": "object",
|
|
@@ -4669,6 +4759,202 @@
|
|
|
4669
4759
|
],
|
|
4670
4760
|
"type": "object"
|
|
4671
4761
|
},
|
|
4762
|
+
"Record_string.attaching_": {
|
|
4763
|
+
"properties": {},
|
|
4764
|
+
"type": "object",
|
|
4765
|
+
"description": "Construct a type with a set of properties K of type T"
|
|
4766
|
+
},
|
|
4767
|
+
"Partial_Unbrand_XoNetwork__": {
|
|
4768
|
+
"properties": {
|
|
4769
|
+
"$pool": {
|
|
4770
|
+
"type": "string"
|
|
4771
|
+
},
|
|
4772
|
+
"$poolId": {
|
|
4773
|
+
"type": "string",
|
|
4774
|
+
"deprecated": true
|
|
4775
|
+
},
|
|
4776
|
+
"_xapiRef": {
|
|
4777
|
+
"type": "string"
|
|
4778
|
+
},
|
|
4779
|
+
"uuid": {
|
|
4780
|
+
"type": "string"
|
|
4781
|
+
},
|
|
4782
|
+
"MTU": {
|
|
4783
|
+
"type": "number",
|
|
4784
|
+
"format": "double"
|
|
4785
|
+
},
|
|
4786
|
+
"PIFs": {
|
|
4787
|
+
"items": {
|
|
4788
|
+
"type": "string"
|
|
4789
|
+
},
|
|
4790
|
+
"type": "array"
|
|
4791
|
+
},
|
|
4792
|
+
"VIFs": {
|
|
4793
|
+
"items": {
|
|
4794
|
+
"type": "string"
|
|
4795
|
+
},
|
|
4796
|
+
"type": "array"
|
|
4797
|
+
},
|
|
4798
|
+
"automatic": {
|
|
4799
|
+
"type": "boolean"
|
|
4800
|
+
},
|
|
4801
|
+
"bridge": {
|
|
4802
|
+
"type": "string"
|
|
4803
|
+
},
|
|
4804
|
+
"current_operations": {
|
|
4805
|
+
"$ref": "#/components/schemas/Record_string.attaching_"
|
|
4806
|
+
},
|
|
4807
|
+
"defaultIsLocked": {
|
|
4808
|
+
"type": "boolean"
|
|
4809
|
+
},
|
|
4810
|
+
"id": {
|
|
4811
|
+
"type": "string"
|
|
4812
|
+
},
|
|
4813
|
+
"insecureNbd": {
|
|
4814
|
+
"type": "boolean"
|
|
4815
|
+
},
|
|
4816
|
+
"name_description": {
|
|
4817
|
+
"type": "string"
|
|
4818
|
+
},
|
|
4819
|
+
"name_label": {
|
|
4820
|
+
"type": "string"
|
|
4821
|
+
},
|
|
4822
|
+
"nbd": {
|
|
4823
|
+
"type": "boolean"
|
|
4824
|
+
},
|
|
4825
|
+
"other_config": {
|
|
4826
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
4827
|
+
},
|
|
4828
|
+
"tags": {
|
|
4829
|
+
"items": {
|
|
4830
|
+
"type": "string"
|
|
4831
|
+
},
|
|
4832
|
+
"type": "array"
|
|
4833
|
+
},
|
|
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__"
|
|
4848
|
+
},
|
|
4849
|
+
{
|
|
4850
|
+
"properties": {
|
|
4851
|
+
"href": {
|
|
4852
|
+
"type": "string"
|
|
4853
|
+
}
|
|
4854
|
+
},
|
|
4855
|
+
"required": [
|
|
4856
|
+
"href"
|
|
4857
|
+
],
|
|
4858
|
+
"type": "object"
|
|
4859
|
+
}
|
|
4860
|
+
]
|
|
4861
|
+
},
|
|
4862
|
+
"Unbrand_XoNetwork_": {
|
|
4863
|
+
"properties": {
|
|
4864
|
+
"$pool": {
|
|
4865
|
+
"type": "string"
|
|
4866
|
+
},
|
|
4867
|
+
"$poolId": {
|
|
4868
|
+
"type": "string",
|
|
4869
|
+
"deprecated": true
|
|
4870
|
+
},
|
|
4871
|
+
"_xapiRef": {
|
|
4872
|
+
"type": "string"
|
|
4873
|
+
},
|
|
4874
|
+
"uuid": {
|
|
4875
|
+
"type": "string"
|
|
4876
|
+
},
|
|
4877
|
+
"MTU": {
|
|
4878
|
+
"type": "number",
|
|
4879
|
+
"format": "double"
|
|
4880
|
+
},
|
|
4881
|
+
"PIFs": {
|
|
4882
|
+
"items": {
|
|
4883
|
+
"type": "string"
|
|
4884
|
+
},
|
|
4885
|
+
"type": "array"
|
|
4886
|
+
},
|
|
4887
|
+
"VIFs": {
|
|
4888
|
+
"items": {
|
|
4889
|
+
"type": "string"
|
|
4890
|
+
},
|
|
4891
|
+
"type": "array"
|
|
4892
|
+
},
|
|
4893
|
+
"automatic": {
|
|
4894
|
+
"type": "boolean"
|
|
4895
|
+
},
|
|
4896
|
+
"bridge": {
|
|
4897
|
+
"type": "string"
|
|
4898
|
+
},
|
|
4899
|
+
"current_operations": {
|
|
4900
|
+
"$ref": "#/components/schemas/Record_string.attaching_"
|
|
4901
|
+
},
|
|
4902
|
+
"defaultIsLocked": {
|
|
4903
|
+
"type": "boolean"
|
|
4904
|
+
},
|
|
4905
|
+
"id": {
|
|
4906
|
+
"type": "string"
|
|
4907
|
+
},
|
|
4908
|
+
"insecureNbd": {
|
|
4909
|
+
"type": "boolean"
|
|
4910
|
+
},
|
|
4911
|
+
"name_description": {
|
|
4912
|
+
"type": "string"
|
|
4913
|
+
},
|
|
4914
|
+
"name_label": {
|
|
4915
|
+
"type": "string"
|
|
4916
|
+
},
|
|
4917
|
+
"nbd": {
|
|
4918
|
+
"type": "boolean"
|
|
4919
|
+
},
|
|
4920
|
+
"other_config": {
|
|
4921
|
+
"$ref": "#/components/schemas/Record_string.string_"
|
|
4922
|
+
},
|
|
4923
|
+
"tags": {
|
|
4924
|
+
"items": {
|
|
4925
|
+
"type": "string"
|
|
4926
|
+
},
|
|
4927
|
+
"type": "array"
|
|
4928
|
+
},
|
|
4929
|
+
"type": {
|
|
4930
|
+
"type": "string",
|
|
4931
|
+
"enum": [
|
|
4932
|
+
"network"
|
|
4933
|
+
],
|
|
4934
|
+
"nullable": false
|
|
4935
|
+
}
|
|
4936
|
+
},
|
|
4937
|
+
"required": [
|
|
4938
|
+
"$pool",
|
|
4939
|
+
"$poolId",
|
|
4940
|
+
"_xapiRef",
|
|
4941
|
+
"uuid",
|
|
4942
|
+
"MTU",
|
|
4943
|
+
"PIFs",
|
|
4944
|
+
"VIFs",
|
|
4945
|
+
"automatic",
|
|
4946
|
+
"bridge",
|
|
4947
|
+
"current_operations",
|
|
4948
|
+
"defaultIsLocked",
|
|
4949
|
+
"id",
|
|
4950
|
+
"name_description",
|
|
4951
|
+
"name_label",
|
|
4952
|
+
"other_config",
|
|
4953
|
+
"tags",
|
|
4954
|
+
"type"
|
|
4955
|
+
],
|
|
4956
|
+
"type": "object"
|
|
4957
|
+
},
|
|
4672
4958
|
"Partial_UnbrandedXoAlarm_": {
|
|
4673
4959
|
"properties": {
|
|
4674
4960
|
"$pool": {
|
|
@@ -5858,6 +6144,76 @@
|
|
|
5858
6144
|
},
|
|
5859
6145
|
"XapiHostStats": {
|
|
5860
6146
|
"$ref": "#/components/schemas/XapiStatsResponse__cpus-Record_string.number-Array_--ioThroughput_58__r-Record_string.number-Array_--w-Record_string.number-Array__--iops_58__r-Record_string.number-Array_--w-Record_string.number-Array__--iowait-Record_string.number-Array_--latency_58__r-Record_string.number-Array_--w-Record_string.number-Array__--load-number-Array--memory-number-Array--memoryFree-number-Array--pifs_58__rx-Record_string.number-Array_--tx-Record_string.number-Array____"
|
|
6147
|
+
},
|
|
6148
|
+
"Partial_Unbrand_XoGroup__": {
|
|
6149
|
+
"properties": {
|
|
6150
|
+
"id": {
|
|
6151
|
+
"type": "string"
|
|
6152
|
+
},
|
|
6153
|
+
"name": {
|
|
6154
|
+
"type": "string"
|
|
6155
|
+
},
|
|
6156
|
+
"provider": {
|
|
6157
|
+
"type": "string"
|
|
6158
|
+
},
|
|
6159
|
+
"providerGroupId": {
|
|
6160
|
+
"type": "string"
|
|
6161
|
+
},
|
|
6162
|
+
"users": {
|
|
6163
|
+
"items": {
|
|
6164
|
+
"type": "string"
|
|
6165
|
+
},
|
|
6166
|
+
"type": "array"
|
|
6167
|
+
}
|
|
6168
|
+
},
|
|
6169
|
+
"type": "object",
|
|
6170
|
+
"description": "Make all properties in T optional"
|
|
6171
|
+
},
|
|
6172
|
+
"WithHref_Partial_Unbrand_XoGroup___": {
|
|
6173
|
+
"allOf": [
|
|
6174
|
+
{
|
|
6175
|
+
"$ref": "#/components/schemas/Partial_Unbrand_XoGroup__"
|
|
6176
|
+
},
|
|
6177
|
+
{
|
|
6178
|
+
"properties": {
|
|
6179
|
+
"href": {
|
|
6180
|
+
"type": "string"
|
|
6181
|
+
}
|
|
6182
|
+
},
|
|
6183
|
+
"required": [
|
|
6184
|
+
"href"
|
|
6185
|
+
],
|
|
6186
|
+
"type": "object"
|
|
6187
|
+
}
|
|
6188
|
+
]
|
|
6189
|
+
},
|
|
6190
|
+
"Unbrand_XoGroup_": {
|
|
6191
|
+
"properties": {
|
|
6192
|
+
"id": {
|
|
6193
|
+
"type": "string"
|
|
6194
|
+
},
|
|
6195
|
+
"name": {
|
|
6196
|
+
"type": "string"
|
|
6197
|
+
},
|
|
6198
|
+
"provider": {
|
|
6199
|
+
"type": "string"
|
|
6200
|
+
},
|
|
6201
|
+
"providerGroupId": {
|
|
6202
|
+
"type": "string"
|
|
6203
|
+
},
|
|
6204
|
+
"users": {
|
|
6205
|
+
"items": {
|
|
6206
|
+
"type": "string"
|
|
6207
|
+
},
|
|
6208
|
+
"type": "array"
|
|
6209
|
+
}
|
|
6210
|
+
},
|
|
6211
|
+
"required": [
|
|
6212
|
+
"id",
|
|
6213
|
+
"name",
|
|
6214
|
+
"users"
|
|
6215
|
+
],
|
|
6216
|
+
"type": "object"
|
|
5861
6217
|
}
|
|
5862
6218
|
},
|
|
5863
6219
|
"securitySchemes": {
|
|
@@ -5870,7 +6226,7 @@
|
|
|
5870
6226
|
},
|
|
5871
6227
|
"info": {
|
|
5872
6228
|
"title": "@xen-orchestra/rest-api",
|
|
5873
|
-
"version": "0.
|
|
6229
|
+
"version": "0.6.0",
|
|
5874
6230
|
"description": "REST API to manage your XOA",
|
|
5875
6231
|
"license": {
|
|
5876
6232
|
"name": "AGPL-3.0-or-later"
|
|
@@ -7636,7 +7992,7 @@
|
|
|
7636
7992
|
"$VGPUs": [],
|
|
7637
7993
|
"xenStoreData": {},
|
|
7638
7994
|
"vga": "std",
|
|
7639
|
-
"videoram":
|
|
7995
|
+
"videoram": 8,
|
|
7640
7996
|
"id": "b7569d99-30f8-178a-7d94-801de3e29b5b-f873abe0-b138-4995-8f6f-498b423d234d",
|
|
7641
7997
|
"isDefaultTemplate": true,
|
|
7642
7998
|
"template_info": {
|
|
@@ -8916,6 +9272,158 @@
|
|
|
8916
9272
|
]
|
|
8917
9273
|
}
|
|
8918
9274
|
},
|
|
9275
|
+
"/users": {
|
|
9276
|
+
"get": {
|
|
9277
|
+
"operationId": "GetUsers",
|
|
9278
|
+
"responses": {
|
|
9279
|
+
"200": {
|
|
9280
|
+
"description": "Ok",
|
|
9281
|
+
"content": {
|
|
9282
|
+
"application/json": {
|
|
9283
|
+
"schema": {
|
|
9284
|
+
"anyOf": [
|
|
9285
|
+
{
|
|
9286
|
+
"items": {
|
|
9287
|
+
"type": "string"
|
|
9288
|
+
},
|
|
9289
|
+
"type": "array"
|
|
9290
|
+
},
|
|
9291
|
+
{
|
|
9292
|
+
"items": {
|
|
9293
|
+
"$ref": "#/components/schemas/WithHref_Partial_Unbrand_XoUser___"
|
|
9294
|
+
},
|
|
9295
|
+
"type": "array"
|
|
9296
|
+
}
|
|
9297
|
+
]
|
|
9298
|
+
},
|
|
9299
|
+
"examples": {
|
|
9300
|
+
"Example 1": {
|
|
9301
|
+
"value": [
|
|
9302
|
+
"/rest/v0/users/088124f3-41b6-4258-9653-6eedc7b46111",
|
|
9303
|
+
"/rest/v0/users/a8715f02-20e7-4881-8b02-28ce2260c39d"
|
|
9304
|
+
]
|
|
9305
|
+
},
|
|
9306
|
+
"Example 2": {
|
|
9307
|
+
"value": [
|
|
9308
|
+
{
|
|
9309
|
+
"permission": "none",
|
|
9310
|
+
"name": "testName",
|
|
9311
|
+
"id": "088124f3-41b6-4258-9653-6eedc7b46111",
|
|
9312
|
+
"href": "/rest/v0/users/088124f3-41b6-4258-9653-6eedc7b46111"
|
|
9313
|
+
},
|
|
9314
|
+
{
|
|
9315
|
+
"permission": "none",
|
|
9316
|
+
"id": "a8715f02-20e7-4881-8b02-28ce2260c39d",
|
|
9317
|
+
"href": "/rest/v0/users/a8715f02-20e7-4881-8b02-28ce2260c39d"
|
|
9318
|
+
}
|
|
9319
|
+
]
|
|
9320
|
+
}
|
|
9321
|
+
}
|
|
9322
|
+
}
|
|
9323
|
+
}
|
|
9324
|
+
},
|
|
9325
|
+
"401": {
|
|
9326
|
+
"description": "Authentication required"
|
|
9327
|
+
}
|
|
9328
|
+
},
|
|
9329
|
+
"tags": [
|
|
9330
|
+
"users"
|
|
9331
|
+
],
|
|
9332
|
+
"security": [
|
|
9333
|
+
{
|
|
9334
|
+
"*": []
|
|
9335
|
+
}
|
|
9336
|
+
],
|
|
9337
|
+
"parameters": [
|
|
9338
|
+
{
|
|
9339
|
+
"in": "query",
|
|
9340
|
+
"name": "fields",
|
|
9341
|
+
"required": false,
|
|
9342
|
+
"schema": {
|
|
9343
|
+
"type": "string"
|
|
9344
|
+
},
|
|
9345
|
+
"example": "permission,name,id"
|
|
9346
|
+
},
|
|
9347
|
+
{
|
|
9348
|
+
"in": "query",
|
|
9349
|
+
"name": "filter",
|
|
9350
|
+
"required": false,
|
|
9351
|
+
"schema": {
|
|
9352
|
+
"type": "string"
|
|
9353
|
+
},
|
|
9354
|
+
"example": "permission:none"
|
|
9355
|
+
},
|
|
9356
|
+
{
|
|
9357
|
+
"in": "query",
|
|
9358
|
+
"name": "limit",
|
|
9359
|
+
"required": false,
|
|
9360
|
+
"schema": {
|
|
9361
|
+
"format": "double",
|
|
9362
|
+
"type": "number"
|
|
9363
|
+
},
|
|
9364
|
+
"example": 42
|
|
9365
|
+
}
|
|
9366
|
+
]
|
|
9367
|
+
}
|
|
9368
|
+
},
|
|
9369
|
+
"/users/{id}": {
|
|
9370
|
+
"get": {
|
|
9371
|
+
"operationId": "GetUser",
|
|
9372
|
+
"responses": {
|
|
9373
|
+
"200": {
|
|
9374
|
+
"description": "Ok",
|
|
9375
|
+
"content": {
|
|
9376
|
+
"application/json": {
|
|
9377
|
+
"schema": {
|
|
9378
|
+
"$ref": "#/components/schemas/Unbrand_XoUser_"
|
|
9379
|
+
},
|
|
9380
|
+
"examples": {
|
|
9381
|
+
"Example 1": {
|
|
9382
|
+
"value": {
|
|
9383
|
+
"email": "admin@admin.net",
|
|
9384
|
+
"permission": "admin",
|
|
9385
|
+
"pw_hash": "***obfuscated***",
|
|
9386
|
+
"groups": [
|
|
9387
|
+
"7d98fee4-3357-41a7-ac3f-9124212badb7",
|
|
9388
|
+
"7981ba62-c395-4546-bfa4-d1261653a77f"
|
|
9389
|
+
],
|
|
9390
|
+
"name": "admin@admin.net",
|
|
9391
|
+
"preferences": {},
|
|
9392
|
+
"id": "722d17b9-699b-49d2-8193-be1ac573d3de"
|
|
9393
|
+
}
|
|
9394
|
+
}
|
|
9395
|
+
}
|
|
9396
|
+
}
|
|
9397
|
+
}
|
|
9398
|
+
},
|
|
9399
|
+
"401": {
|
|
9400
|
+
"description": "Authentication required"
|
|
9401
|
+
},
|
|
9402
|
+
"404": {
|
|
9403
|
+
"description": "Resource not found"
|
|
9404
|
+
}
|
|
9405
|
+
},
|
|
9406
|
+
"tags": [
|
|
9407
|
+
"users"
|
|
9408
|
+
],
|
|
9409
|
+
"security": [
|
|
9410
|
+
{
|
|
9411
|
+
"*": []
|
|
9412
|
+
}
|
|
9413
|
+
],
|
|
9414
|
+
"parameters": [
|
|
9415
|
+
{
|
|
9416
|
+
"in": "path",
|
|
9417
|
+
"name": "id",
|
|
9418
|
+
"required": true,
|
|
9419
|
+
"schema": {
|
|
9420
|
+
"type": "string"
|
|
9421
|
+
},
|
|
9422
|
+
"example": "722d17b9-699b-49d2-8193-be1ac573d3de"
|
|
9423
|
+
}
|
|
9424
|
+
]
|
|
9425
|
+
}
|
|
9426
|
+
},
|
|
8919
9427
|
"/srs": {
|
|
8920
9428
|
"get": {
|
|
8921
9429
|
"operationId": "GetSrs",
|
|
@@ -9680,6 +10188,179 @@
|
|
|
9680
10188
|
]
|
|
9681
10189
|
}
|
|
9682
10190
|
},
|
|
10191
|
+
"/networks": {
|
|
10192
|
+
"get": {
|
|
10193
|
+
"operationId": "GetNetworks",
|
|
10194
|
+
"responses": {
|
|
10195
|
+
"200": {
|
|
10196
|
+
"description": "Ok",
|
|
10197
|
+
"content": {
|
|
10198
|
+
"application/json": {
|
|
10199
|
+
"schema": {
|
|
10200
|
+
"anyOf": [
|
|
10201
|
+
{
|
|
10202
|
+
"items": {
|
|
10203
|
+
"type": "string"
|
|
10204
|
+
},
|
|
10205
|
+
"type": "array"
|
|
10206
|
+
},
|
|
10207
|
+
{
|
|
10208
|
+
"items": {
|
|
10209
|
+
"$ref": "#/components/schemas/WithHref_Partial_Unbrand_XoNetwork___"
|
|
10210
|
+
},
|
|
10211
|
+
"type": "array"
|
|
10212
|
+
}
|
|
10213
|
+
]
|
|
10214
|
+
},
|
|
10215
|
+
"examples": {
|
|
10216
|
+
"Example 1": {
|
|
10217
|
+
"value": [
|
|
10218
|
+
"/rest/v0/networks/9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f",
|
|
10219
|
+
"/rest/v0/networks/6b6ca0f5-6611-0636-4b0a-1fb1c8e96414"
|
|
10220
|
+
]
|
|
10221
|
+
},
|
|
10222
|
+
"Example 2": {
|
|
10223
|
+
"value": [
|
|
10224
|
+
{
|
|
10225
|
+
"nbd": true,
|
|
10226
|
+
"name_label": "Host internal management network",
|
|
10227
|
+
"id": "9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f",
|
|
10228
|
+
"href": "/rest/v0/networks/9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f"
|
|
10229
|
+
},
|
|
10230
|
+
{
|
|
10231
|
+
"nbd": true,
|
|
10232
|
+
"name_label": "Lab v2 (VLAN 11)",
|
|
10233
|
+
"id": "6b6ca0f5-6611-0636-4b0a-1fb1c8e96414",
|
|
10234
|
+
"href": "/rest/v0/networks/6b6ca0f5-6611-0636-4b0a-1fb1c8e96414"
|
|
10235
|
+
}
|
|
10236
|
+
]
|
|
10237
|
+
}
|
|
10238
|
+
}
|
|
10239
|
+
}
|
|
10240
|
+
}
|
|
10241
|
+
},
|
|
10242
|
+
"401": {
|
|
10243
|
+
"description": "Authentication required"
|
|
10244
|
+
}
|
|
10245
|
+
},
|
|
10246
|
+
"tags": [
|
|
10247
|
+
"networks"
|
|
10248
|
+
],
|
|
10249
|
+
"security": [
|
|
10250
|
+
{
|
|
10251
|
+
"*": []
|
|
10252
|
+
}
|
|
10253
|
+
],
|
|
10254
|
+
"parameters": [
|
|
10255
|
+
{
|
|
10256
|
+
"in": "query",
|
|
10257
|
+
"name": "fields",
|
|
10258
|
+
"required": false,
|
|
10259
|
+
"schema": {
|
|
10260
|
+
"type": "string"
|
|
10261
|
+
},
|
|
10262
|
+
"example": "nbd,name_label,id"
|
|
10263
|
+
},
|
|
10264
|
+
{
|
|
10265
|
+
"in": "query",
|
|
10266
|
+
"name": "filter",
|
|
10267
|
+
"required": false,
|
|
10268
|
+
"schema": {
|
|
10269
|
+
"type": "string"
|
|
10270
|
+
},
|
|
10271
|
+
"example": "nbd?"
|
|
10272
|
+
},
|
|
10273
|
+
{
|
|
10274
|
+
"in": "query",
|
|
10275
|
+
"name": "limit",
|
|
10276
|
+
"required": false,
|
|
10277
|
+
"schema": {
|
|
10278
|
+
"format": "double",
|
|
10279
|
+
"type": "number"
|
|
10280
|
+
},
|
|
10281
|
+
"example": 42
|
|
10282
|
+
}
|
|
10283
|
+
]
|
|
10284
|
+
}
|
|
10285
|
+
},
|
|
10286
|
+
"/networks/{id}": {
|
|
10287
|
+
"get": {
|
|
10288
|
+
"operationId": "GetNetwork",
|
|
10289
|
+
"responses": {
|
|
10290
|
+
"200": {
|
|
10291
|
+
"description": "Ok",
|
|
10292
|
+
"content": {
|
|
10293
|
+
"application/json": {
|
|
10294
|
+
"schema": {
|
|
10295
|
+
"$ref": "#/components/schemas/Unbrand_XoNetwork_"
|
|
10296
|
+
},
|
|
10297
|
+
"examples": {
|
|
10298
|
+
"Example 1": {
|
|
10299
|
+
"value": {
|
|
10300
|
+
"automatic": false,
|
|
10301
|
+
"bridge": "xenapi",
|
|
10302
|
+
"current_operations": {},
|
|
10303
|
+
"defaultIsLocked": false,
|
|
10304
|
+
"MTU": 1500,
|
|
10305
|
+
"name_description": "Network on which guests will be assigned a private link-local IP address which can be used to talk XenAPI",
|
|
10306
|
+
"name_label": "Host internal management network",
|
|
10307
|
+
"other_config": {
|
|
10308
|
+
"is_guest_installer_network": "true",
|
|
10309
|
+
"is_host_internal_management_network": "true",
|
|
10310
|
+
"ip_begin": "169.254.0.1",
|
|
10311
|
+
"ip_end": "169.254.255.254",
|
|
10312
|
+
"netmask": "255.255.0.0"
|
|
10313
|
+
},
|
|
10314
|
+
"tags": [],
|
|
10315
|
+
"PIFs": [],
|
|
10316
|
+
"VIFs": [
|
|
10317
|
+
"2d039fc8-e522-75db-34c9-536b9553bd5a",
|
|
10318
|
+
"38623621-d30e-0307-dcef-eb7ed6c69f0c",
|
|
10319
|
+
"cc4b090f-5ff1-254b-558f-f7ac237e6fc5",
|
|
10320
|
+
"a9f3d042-a2e1-102f-74fc-ff1df41c6eb3"
|
|
10321
|
+
],
|
|
10322
|
+
"nbd": false,
|
|
10323
|
+
"insecureNbd": false,
|
|
10324
|
+
"id": "9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f",
|
|
10325
|
+
"type": "network",
|
|
10326
|
+
"uuid": "9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f",
|
|
10327
|
+
"$pool": "b7569d99-30f8-178a-7d94-801de3e29b5b",
|
|
10328
|
+
"$poolId": "b7569d99-30f8-178a-7d94-801de3e29b5b",
|
|
10329
|
+
"_xapiRef": "OpaqueRef:eb906e77-2221-5399-4a26-60f0ad069b61"
|
|
10330
|
+
}
|
|
10331
|
+
}
|
|
10332
|
+
}
|
|
10333
|
+
}
|
|
10334
|
+
}
|
|
10335
|
+
},
|
|
10336
|
+
"401": {
|
|
10337
|
+
"description": "Authentication required"
|
|
10338
|
+
},
|
|
10339
|
+
"404": {
|
|
10340
|
+
"description": "Resource not found"
|
|
10341
|
+
}
|
|
10342
|
+
},
|
|
10343
|
+
"tags": [
|
|
10344
|
+
"networks"
|
|
10345
|
+
],
|
|
10346
|
+
"security": [
|
|
10347
|
+
{
|
|
10348
|
+
"*": []
|
|
10349
|
+
}
|
|
10350
|
+
],
|
|
10351
|
+
"parameters": [
|
|
10352
|
+
{
|
|
10353
|
+
"in": "path",
|
|
10354
|
+
"name": "id",
|
|
10355
|
+
"required": true,
|
|
10356
|
+
"schema": {
|
|
10357
|
+
"type": "string"
|
|
10358
|
+
},
|
|
10359
|
+
"example": "9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f"
|
|
10360
|
+
}
|
|
10361
|
+
]
|
|
10362
|
+
}
|
|
10363
|
+
},
|
|
9683
10364
|
"/alarms": {
|
|
9684
10365
|
"get": {
|
|
9685
10366
|
"operationId": "GetAlarms",
|
|
@@ -16586,6 +17267,159 @@
|
|
|
16586
17267
|
}
|
|
16587
17268
|
]
|
|
16588
17269
|
}
|
|
17270
|
+
},
|
|
17271
|
+
"/groups": {
|
|
17272
|
+
"get": {
|
|
17273
|
+
"operationId": "GetGroups",
|
|
17274
|
+
"responses": {
|
|
17275
|
+
"200": {
|
|
17276
|
+
"description": "Ok",
|
|
17277
|
+
"content": {
|
|
17278
|
+
"application/json": {
|
|
17279
|
+
"schema": {
|
|
17280
|
+
"anyOf": [
|
|
17281
|
+
{
|
|
17282
|
+
"items": {
|
|
17283
|
+
"type": "string"
|
|
17284
|
+
},
|
|
17285
|
+
"type": "array"
|
|
17286
|
+
},
|
|
17287
|
+
{
|
|
17288
|
+
"items": {
|
|
17289
|
+
"$ref": "#/components/schemas/WithHref_Partial_Unbrand_XoGroup___"
|
|
17290
|
+
},
|
|
17291
|
+
"type": "array"
|
|
17292
|
+
}
|
|
17293
|
+
]
|
|
17294
|
+
},
|
|
17295
|
+
"examples": {
|
|
17296
|
+
"Example 1": {
|
|
17297
|
+
"value": [
|
|
17298
|
+
"/rest/v0/groups/7d98fee4-3357-41a7-ac3f-9124212badb7",
|
|
17299
|
+
"/rest/v0/groups/7981ba62-c395-4546-bfa4-d1261653a77f"
|
|
17300
|
+
]
|
|
17301
|
+
},
|
|
17302
|
+
"Example 2": {
|
|
17303
|
+
"value": [
|
|
17304
|
+
{
|
|
17305
|
+
"name": "group 1",
|
|
17306
|
+
"id": "7d98fee4-3357-41a7-ac3f-9124212badb7",
|
|
17307
|
+
"users": [
|
|
17308
|
+
"722d17b9-699b-49d2-8193-be1ac573d3de"
|
|
17309
|
+
],
|
|
17310
|
+
"href": "/rest/v0/groups/7d98fee4-3357-41a7-ac3f-9124212badb7"
|
|
17311
|
+
},
|
|
17312
|
+
{
|
|
17313
|
+
"name": "group 2",
|
|
17314
|
+
"id": "7981ba62-c395-4546-bfa4-d1261653a77f",
|
|
17315
|
+
"users": [
|
|
17316
|
+
"722d17b9-699b-49d2-8193-be1ac573d3de",
|
|
17317
|
+
"088124f3-41b6-4258-9653-6eedc7b46111"
|
|
17318
|
+
],
|
|
17319
|
+
"href": "/rest/v0/groups/7981ba62-c395-4546-bfa4-d1261653a77f"
|
|
17320
|
+
}
|
|
17321
|
+
]
|
|
17322
|
+
}
|
|
17323
|
+
}
|
|
17324
|
+
}
|
|
17325
|
+
}
|
|
17326
|
+
},
|
|
17327
|
+
"401": {
|
|
17328
|
+
"description": "Authentication required"
|
|
17329
|
+
}
|
|
17330
|
+
},
|
|
17331
|
+
"tags": [
|
|
17332
|
+
"groups"
|
|
17333
|
+
],
|
|
17334
|
+
"security": [
|
|
17335
|
+
{
|
|
17336
|
+
"*": []
|
|
17337
|
+
}
|
|
17338
|
+
],
|
|
17339
|
+
"parameters": [
|
|
17340
|
+
{
|
|
17341
|
+
"in": "query",
|
|
17342
|
+
"name": "fields",
|
|
17343
|
+
"required": false,
|
|
17344
|
+
"schema": {
|
|
17345
|
+
"type": "string"
|
|
17346
|
+
},
|
|
17347
|
+
"example": "name,id,users"
|
|
17348
|
+
},
|
|
17349
|
+
{
|
|
17350
|
+
"in": "query",
|
|
17351
|
+
"name": "filter",
|
|
17352
|
+
"required": false,
|
|
17353
|
+
"schema": {
|
|
17354
|
+
"type": "string"
|
|
17355
|
+
},
|
|
17356
|
+
"example": "users:length:>0"
|
|
17357
|
+
},
|
|
17358
|
+
{
|
|
17359
|
+
"in": "query",
|
|
17360
|
+
"name": "limit",
|
|
17361
|
+
"required": false,
|
|
17362
|
+
"schema": {
|
|
17363
|
+
"format": "double",
|
|
17364
|
+
"type": "number"
|
|
17365
|
+
},
|
|
17366
|
+
"example": 42
|
|
17367
|
+
}
|
|
17368
|
+
]
|
|
17369
|
+
}
|
|
17370
|
+
},
|
|
17371
|
+
"/groups/{id}": {
|
|
17372
|
+
"get": {
|
|
17373
|
+
"operationId": "GetGroup",
|
|
17374
|
+
"responses": {
|
|
17375
|
+
"200": {
|
|
17376
|
+
"description": "Ok",
|
|
17377
|
+
"content": {
|
|
17378
|
+
"application/json": {
|
|
17379
|
+
"schema": {
|
|
17380
|
+
"$ref": "#/components/schemas/Unbrand_XoGroup_"
|
|
17381
|
+
},
|
|
17382
|
+
"examples": {
|
|
17383
|
+
"Example 1": {
|
|
17384
|
+
"value": {
|
|
17385
|
+
"name": "group 1",
|
|
17386
|
+
"users": [
|
|
17387
|
+
"722d17b9-699b-49d2-8193-be1ac573d3de"
|
|
17388
|
+
],
|
|
17389
|
+
"id": "7d98fee4-3357-41a7-ac3f-9124212badb7"
|
|
17390
|
+
}
|
|
17391
|
+
}
|
|
17392
|
+
}
|
|
17393
|
+
}
|
|
17394
|
+
}
|
|
17395
|
+
},
|
|
17396
|
+
"401": {
|
|
17397
|
+
"description": "Authentication required"
|
|
17398
|
+
},
|
|
17399
|
+
"404": {
|
|
17400
|
+
"description": "Resource not found"
|
|
17401
|
+
}
|
|
17402
|
+
},
|
|
17403
|
+
"tags": [
|
|
17404
|
+
"groups"
|
|
17405
|
+
],
|
|
17406
|
+
"security": [
|
|
17407
|
+
{
|
|
17408
|
+
"*": []
|
|
17409
|
+
}
|
|
17410
|
+
],
|
|
17411
|
+
"parameters": [
|
|
17412
|
+
{
|
|
17413
|
+
"in": "path",
|
|
17414
|
+
"name": "id",
|
|
17415
|
+
"required": true,
|
|
17416
|
+
"schema": {
|
|
17417
|
+
"type": "string"
|
|
17418
|
+
},
|
|
17419
|
+
"example": "7d98fee4-3357-41a7-ac3f-9124212badb7"
|
|
17420
|
+
}
|
|
17421
|
+
]
|
|
17422
|
+
}
|
|
16589
17423
|
}
|
|
16590
17424
|
},
|
|
16591
17425
|
"servers": [
|