@xen-orchestra/rest-api 0.5.0 → 0.7.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.
@@ -4443,6 +4443,38 @@
4443
4443
  ],
4444
4444
  "type": "object"
4445
4445
  },
4446
+ "InsertableXoServer": {
4447
+ "properties": {
4448
+ "host": {
4449
+ "type": "string"
4450
+ },
4451
+ "httpProxy": {
4452
+ "type": "string"
4453
+ },
4454
+ "label": {
4455
+ "type": "string"
4456
+ },
4457
+ "username": {
4458
+ "type": "string"
4459
+ },
4460
+ "allowUnauthorized": {
4461
+ "type": "boolean"
4462
+ },
4463
+ "password": {
4464
+ "type": "string"
4465
+ },
4466
+ "readOnly": {
4467
+ "type": "boolean"
4468
+ }
4469
+ },
4470
+ "required": [
4471
+ "host",
4472
+ "username",
4473
+ "password"
4474
+ ],
4475
+ "type": "object",
4476
+ "additionalProperties": false
4477
+ },
4446
4478
  "Partial_Unbrand_XoSchedule__": {
4447
4479
  "properties": {
4448
4480
  "cron": {
@@ -4759,6 +4791,202 @@
4759
4791
  ],
4760
4792
  "type": "object"
4761
4793
  },
4794
+ "Record_string.attaching_": {
4795
+ "properties": {},
4796
+ "type": "object",
4797
+ "description": "Construct a type with a set of properties K of type T"
4798
+ },
4799
+ "Partial_Unbrand_XoNetwork__": {
4800
+ "properties": {
4801
+ "$pool": {
4802
+ "type": "string"
4803
+ },
4804
+ "$poolId": {
4805
+ "type": "string",
4806
+ "deprecated": true
4807
+ },
4808
+ "_xapiRef": {
4809
+ "type": "string"
4810
+ },
4811
+ "uuid": {
4812
+ "type": "string"
4813
+ },
4814
+ "MTU": {
4815
+ "type": "number",
4816
+ "format": "double"
4817
+ },
4818
+ "PIFs": {
4819
+ "items": {
4820
+ "type": "string"
4821
+ },
4822
+ "type": "array"
4823
+ },
4824
+ "VIFs": {
4825
+ "items": {
4826
+ "type": "string"
4827
+ },
4828
+ "type": "array"
4829
+ },
4830
+ "automatic": {
4831
+ "type": "boolean"
4832
+ },
4833
+ "bridge": {
4834
+ "type": "string"
4835
+ },
4836
+ "current_operations": {
4837
+ "$ref": "#/components/schemas/Record_string.attaching_"
4838
+ },
4839
+ "defaultIsLocked": {
4840
+ "type": "boolean"
4841
+ },
4842
+ "id": {
4843
+ "type": "string"
4844
+ },
4845
+ "insecureNbd": {
4846
+ "type": "boolean"
4847
+ },
4848
+ "name_description": {
4849
+ "type": "string"
4850
+ },
4851
+ "name_label": {
4852
+ "type": "string"
4853
+ },
4854
+ "nbd": {
4855
+ "type": "boolean"
4856
+ },
4857
+ "other_config": {
4858
+ "$ref": "#/components/schemas/Record_string.string_"
4859
+ },
4860
+ "tags": {
4861
+ "items": {
4862
+ "type": "string"
4863
+ },
4864
+ "type": "array"
4865
+ },
4866
+ "type": {
4867
+ "type": "string",
4868
+ "enum": [
4869
+ "network"
4870
+ ]
4871
+ }
4872
+ },
4873
+ "type": "object",
4874
+ "description": "Make all properties in T optional"
4875
+ },
4876
+ "WithHref_Partial_Unbrand_XoNetwork___": {
4877
+ "allOf": [
4878
+ {
4879
+ "$ref": "#/components/schemas/Partial_Unbrand_XoNetwork__"
4880
+ },
4881
+ {
4882
+ "properties": {
4883
+ "href": {
4884
+ "type": "string"
4885
+ }
4886
+ },
4887
+ "required": [
4888
+ "href"
4889
+ ],
4890
+ "type": "object"
4891
+ }
4892
+ ]
4893
+ },
4894
+ "Unbrand_XoNetwork_": {
4895
+ "properties": {
4896
+ "$pool": {
4897
+ "type": "string"
4898
+ },
4899
+ "$poolId": {
4900
+ "type": "string",
4901
+ "deprecated": true
4902
+ },
4903
+ "_xapiRef": {
4904
+ "type": "string"
4905
+ },
4906
+ "uuid": {
4907
+ "type": "string"
4908
+ },
4909
+ "MTU": {
4910
+ "type": "number",
4911
+ "format": "double"
4912
+ },
4913
+ "PIFs": {
4914
+ "items": {
4915
+ "type": "string"
4916
+ },
4917
+ "type": "array"
4918
+ },
4919
+ "VIFs": {
4920
+ "items": {
4921
+ "type": "string"
4922
+ },
4923
+ "type": "array"
4924
+ },
4925
+ "automatic": {
4926
+ "type": "boolean"
4927
+ },
4928
+ "bridge": {
4929
+ "type": "string"
4930
+ },
4931
+ "current_operations": {
4932
+ "$ref": "#/components/schemas/Record_string.attaching_"
4933
+ },
4934
+ "defaultIsLocked": {
4935
+ "type": "boolean"
4936
+ },
4937
+ "id": {
4938
+ "type": "string"
4939
+ },
4940
+ "insecureNbd": {
4941
+ "type": "boolean"
4942
+ },
4943
+ "name_description": {
4944
+ "type": "string"
4945
+ },
4946
+ "name_label": {
4947
+ "type": "string"
4948
+ },
4949
+ "nbd": {
4950
+ "type": "boolean"
4951
+ },
4952
+ "other_config": {
4953
+ "$ref": "#/components/schemas/Record_string.string_"
4954
+ },
4955
+ "tags": {
4956
+ "items": {
4957
+ "type": "string"
4958
+ },
4959
+ "type": "array"
4960
+ },
4961
+ "type": {
4962
+ "type": "string",
4963
+ "enum": [
4964
+ "network"
4965
+ ],
4966
+ "nullable": false
4967
+ }
4968
+ },
4969
+ "required": [
4970
+ "$pool",
4971
+ "$poolId",
4972
+ "_xapiRef",
4973
+ "uuid",
4974
+ "MTU",
4975
+ "PIFs",
4976
+ "VIFs",
4977
+ "automatic",
4978
+ "bridge",
4979
+ "current_operations",
4980
+ "defaultIsLocked",
4981
+ "id",
4982
+ "name_description",
4983
+ "name_label",
4984
+ "other_config",
4985
+ "tags",
4986
+ "type"
4987
+ ],
4988
+ "type": "object"
4989
+ },
4762
4990
  "Partial_UnbrandedXoAlarm_": {
4763
4991
  "properties": {
4764
4992
  "$pool": {
@@ -5948,6 +6176,76 @@
5948
6176
  },
5949
6177
  "XapiHostStats": {
5950
6178
  "$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____"
6179
+ },
6180
+ "Partial_Unbrand_XoGroup__": {
6181
+ "properties": {
6182
+ "id": {
6183
+ "type": "string"
6184
+ },
6185
+ "name": {
6186
+ "type": "string"
6187
+ },
6188
+ "provider": {
6189
+ "type": "string"
6190
+ },
6191
+ "providerGroupId": {
6192
+ "type": "string"
6193
+ },
6194
+ "users": {
6195
+ "items": {
6196
+ "type": "string"
6197
+ },
6198
+ "type": "array"
6199
+ }
6200
+ },
6201
+ "type": "object",
6202
+ "description": "Make all properties in T optional"
6203
+ },
6204
+ "WithHref_Partial_Unbrand_XoGroup___": {
6205
+ "allOf": [
6206
+ {
6207
+ "$ref": "#/components/schemas/Partial_Unbrand_XoGroup__"
6208
+ },
6209
+ {
6210
+ "properties": {
6211
+ "href": {
6212
+ "type": "string"
6213
+ }
6214
+ },
6215
+ "required": [
6216
+ "href"
6217
+ ],
6218
+ "type": "object"
6219
+ }
6220
+ ]
6221
+ },
6222
+ "Unbrand_XoGroup_": {
6223
+ "properties": {
6224
+ "id": {
6225
+ "type": "string"
6226
+ },
6227
+ "name": {
6228
+ "type": "string"
6229
+ },
6230
+ "provider": {
6231
+ "type": "string"
6232
+ },
6233
+ "providerGroupId": {
6234
+ "type": "string"
6235
+ },
6236
+ "users": {
6237
+ "items": {
6238
+ "type": "string"
6239
+ },
6240
+ "type": "array"
6241
+ }
6242
+ },
6243
+ "required": [
6244
+ "id",
6245
+ "name",
6246
+ "users"
6247
+ ],
6248
+ "type": "object"
5951
6249
  }
5952
6250
  },
5953
6251
  "securitySchemes": {
@@ -5960,7 +6258,7 @@
5960
6258
  },
5961
6259
  "info": {
5962
6260
  "title": "@xen-orchestra/rest-api",
5963
- "version": "0.5.0",
6261
+ "version": "0.7.0",
5964
6262
  "description": "REST API to manage your XOA",
5965
6263
  "license": {
5966
6264
  "name": "AGPL-3.0-or-later"
@@ -7466,11 +7764,261 @@
7466
7764
  "404": {
7467
7765
  "description": "Resource not found"
7468
7766
  },
7469
- "422": {
7470
- "description": "Invalid granularity, VM is halted or host could not be found"
7767
+ "422": {
7768
+ "description": "Invalid granularity, VM is halted or host could not be found"
7769
+ }
7770
+ },
7771
+ "description": "\nVM must be running",
7772
+ "tags": [
7773
+ "vms"
7774
+ ],
7775
+ "security": [
7776
+ {
7777
+ "*": []
7778
+ }
7779
+ ],
7780
+ "parameters": [
7781
+ {
7782
+ "in": "path",
7783
+ "name": "id",
7784
+ "required": true,
7785
+ "schema": {
7786
+ "type": "string"
7787
+ },
7788
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
7789
+ },
7790
+ {
7791
+ "in": "query",
7792
+ "name": "granularity",
7793
+ "required": false,
7794
+ "schema": {
7795
+ "$ref": "#/components/schemas/XapiStatsGranularity"
7796
+ }
7797
+ }
7798
+ ]
7799
+ }
7800
+ },
7801
+ "/vms/{id}/actions/start": {
7802
+ "post": {
7803
+ "operationId": "StartVm",
7804
+ "responses": {
7805
+ "202": {
7806
+ "description": "Action executed asynchronously",
7807
+ "content": {
7808
+ "text/plain": {
7809
+ "schema": {},
7810
+ "examples": {
7811
+ "Example 1": {
7812
+ "value": "/rest/v0/tasks/0m7kl0j9l"
7813
+ }
7814
+ }
7815
+ }
7816
+ }
7817
+ },
7818
+ "204": {
7819
+ "description": "No content"
7820
+ },
7821
+ "401": {
7822
+ "description": "Authentication required"
7823
+ },
7824
+ "404": {
7825
+ "description": "Resource not found"
7826
+ },
7827
+ "500": {
7828
+ "description": "Internal server error, XenServer/XCP-ng error"
7829
+ }
7830
+ },
7831
+ "tags": [
7832
+ "vms"
7833
+ ],
7834
+ "security": [
7835
+ {
7836
+ "*": []
7837
+ }
7838
+ ],
7839
+ "parameters": [
7840
+ {
7841
+ "in": "path",
7842
+ "name": "id",
7843
+ "required": true,
7844
+ "schema": {
7845
+ "type": "string"
7846
+ },
7847
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
7848
+ },
7849
+ {
7850
+ "in": "query",
7851
+ "name": "sync",
7852
+ "required": false,
7853
+ "schema": {
7854
+ "type": "boolean"
7855
+ }
7856
+ }
7857
+ ]
7858
+ }
7859
+ },
7860
+ "/vms/{id}/actions/clean_shutdown": {
7861
+ "post": {
7862
+ "operationId": "CleanShutdownVm",
7863
+ "responses": {
7864
+ "202": {
7865
+ "description": "Action executed asynchronously",
7866
+ "content": {
7867
+ "text/plain": {
7868
+ "schema": {
7869
+ "anyOf": [
7870
+ {
7871
+ "type": "string"
7872
+ },
7873
+ {}
7874
+ ]
7875
+ },
7876
+ "examples": {
7877
+ "Example 1": {
7878
+ "value": "/rest/v0/tasks/0m7kl0j9l"
7879
+ }
7880
+ }
7881
+ }
7882
+ }
7883
+ },
7884
+ "204": {
7885
+ "description": "No content"
7886
+ },
7887
+ "401": {
7888
+ "description": "Authentication required"
7889
+ },
7890
+ "404": {
7891
+ "description": "Resource not found"
7892
+ },
7893
+ "500": {
7894
+ "description": "Internal server error, XenServer/XCP-ng error"
7895
+ }
7896
+ },
7897
+ "description": "Requires guest tools to be installed",
7898
+ "tags": [
7899
+ "vms"
7900
+ ],
7901
+ "security": [
7902
+ {
7903
+ "*": []
7904
+ }
7905
+ ],
7906
+ "parameters": [
7907
+ {
7908
+ "in": "path",
7909
+ "name": "id",
7910
+ "required": true,
7911
+ "schema": {
7912
+ "type": "string"
7913
+ },
7914
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
7915
+ },
7916
+ {
7917
+ "in": "query",
7918
+ "name": "sync",
7919
+ "required": false,
7920
+ "schema": {
7921
+ "type": "boolean"
7922
+ }
7923
+ }
7924
+ ]
7925
+ }
7926
+ },
7927
+ "/vms/{id}/actions/clean_reboot": {
7928
+ "post": {
7929
+ "operationId": "CleanRebootVm",
7930
+ "responses": {
7931
+ "200": {
7932
+ "description": "Ok",
7933
+ "content": {
7934
+ "application/json": {
7935
+ "schema": {
7936
+ "anyOf": [
7937
+ {},
7938
+ {
7939
+ "type": "string"
7940
+ }
7941
+ ]
7942
+ },
7943
+ "examples": {
7944
+ "Example 1": {
7945
+ "value": "/rest/v0/tasks/0m7kl0j9l"
7946
+ }
7947
+ }
7948
+ }
7949
+ }
7950
+ },
7951
+ "401": {
7952
+ "description": "Authentication required"
7953
+ }
7954
+ },
7955
+ "description": "Requires guest tools to be installed",
7956
+ "tags": [
7957
+ "vms"
7958
+ ],
7959
+ "security": [
7960
+ {
7961
+ "*": []
7962
+ }
7963
+ ],
7964
+ "parameters": [
7965
+ {
7966
+ "in": "path",
7967
+ "name": "id",
7968
+ "required": true,
7969
+ "schema": {
7970
+ "type": "string"
7971
+ },
7972
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
7973
+ },
7974
+ {
7975
+ "in": "query",
7976
+ "name": "sync",
7977
+ "required": false,
7978
+ "schema": {
7979
+ "type": "boolean"
7980
+ }
7981
+ }
7982
+ ]
7983
+ }
7984
+ },
7985
+ "/vms/{id}/actions/hard_shutdown": {
7986
+ "post": {
7987
+ "operationId": "HardShutdownVm",
7988
+ "responses": {
7989
+ "202": {
7990
+ "description": "Action executed asynchronously",
7991
+ "content": {
7992
+ "text/plain": {
7993
+ "schema": {
7994
+ "anyOf": [
7995
+ {
7996
+ "type": "string"
7997
+ },
7998
+ {}
7999
+ ]
8000
+ },
8001
+ "examples": {
8002
+ "Example 1": {
8003
+ "value": "/rest/v0/tasks/0m7kl0j9l"
8004
+ }
8005
+ }
8006
+ }
8007
+ }
8008
+ },
8009
+ "204": {
8010
+ "description": "No content"
8011
+ },
8012
+ "401": {
8013
+ "description": "Authentication required"
8014
+ },
8015
+ "404": {
8016
+ "description": "Resource not found"
8017
+ },
8018
+ "500": {
8019
+ "description": "Internal server error, XenServer/XCP-ng error"
7471
8020
  }
7472
8021
  },
7473
- "description": "\nVM must be running",
7474
8022
  "tags": [
7475
8023
  "vms"
7476
8024
  ],
@@ -7491,24 +8039,31 @@
7491
8039
  },
7492
8040
  {
7493
8041
  "in": "query",
7494
- "name": "granularity",
8042
+ "name": "sync",
7495
8043
  "required": false,
7496
8044
  "schema": {
7497
- "$ref": "#/components/schemas/XapiStatsGranularity"
8045
+ "type": "boolean"
7498
8046
  }
7499
8047
  }
7500
8048
  ]
7501
8049
  }
7502
8050
  },
7503
- "/vms/{id}/actions/start": {
8051
+ "/vms/{id}/actions/hard_reboot": {
7504
8052
  "post": {
7505
- "operationId": "StartVm",
8053
+ "operationId": "HardRebootVm",
7506
8054
  "responses": {
7507
8055
  "202": {
7508
8056
  "description": "Action executed asynchronously",
7509
8057
  "content": {
7510
8058
  "text/plain": {
7511
- "schema": {},
8059
+ "schema": {
8060
+ "anyOf": [
8061
+ {},
8062
+ {
8063
+ "type": "string"
8064
+ }
8065
+ ]
8066
+ },
7512
8067
  "examples": {
7513
8068
  "Example 1": {
7514
8069
  "value": "/rest/v0/tasks/0m7kl0j9l"
@@ -9455,6 +10010,71 @@
9455
10010
  "example": 42
9456
10011
  }
9457
10012
  ]
10013
+ },
10014
+ "post": {
10015
+ "operationId": "AddServer",
10016
+ "responses": {
10017
+ "201": {
10018
+ "description": "Resource created",
10019
+ "content": {
10020
+ "application/json": {
10021
+ "schema": {
10022
+ "properties": {
10023
+ "id": {
10024
+ "type": "string"
10025
+ }
10026
+ },
10027
+ "required": [
10028
+ "id"
10029
+ ],
10030
+ "type": "object"
10031
+ },
10032
+ "examples": {
10033
+ "Example 1": {
10034
+ "value": {
10035
+ "id": "38068475-3a1d-4a64-95df-8782cdea02ac"
10036
+ }
10037
+ }
10038
+ }
10039
+ }
10040
+ }
10041
+ },
10042
+ "401": {
10043
+ "description": "Authentication required"
10044
+ },
10045
+ "409": {
10046
+ "description": "Resource already exists"
10047
+ },
10048
+ "422": {
10049
+ "description": "Invalid parameters"
10050
+ }
10051
+ },
10052
+ "tags": [
10053
+ "servers"
10054
+ ],
10055
+ "security": [
10056
+ {
10057
+ "*": []
10058
+ }
10059
+ ],
10060
+ "parameters": [],
10061
+ "requestBody": {
10062
+ "required": true,
10063
+ "content": {
10064
+ "application/json": {
10065
+ "schema": {
10066
+ "$ref": "#/components/schemas/InsertableXoServer"
10067
+ },
10068
+ "example": {
10069
+ "allowUnauthorized": true,
10070
+ "host": "192.168.1.10",
10071
+ "label": "Example server",
10072
+ "username": "root",
10073
+ "password": "awes0meP4ssword"
10074
+ }
10075
+ }
10076
+ }
10077
+ }
9458
10078
  }
9459
10079
  },
9460
10080
  "/servers/{id}": {
@@ -9515,6 +10135,138 @@
9515
10135
  ]
9516
10136
  }
9517
10137
  },
10138
+ "/servers/{id}/actions/connect": {
10139
+ "post": {
10140
+ "operationId": "ConnectServer",
10141
+ "responses": {
10142
+ "202": {
10143
+ "description": "Action executed asynchronously",
10144
+ "content": {
10145
+ "text/plain": {
10146
+ "schema": {
10147
+ "anyOf": [
10148
+ {},
10149
+ {
10150
+ "type": "string"
10151
+ }
10152
+ ]
10153
+ },
10154
+ "examples": {
10155
+ "Example 1": {
10156
+ "value": "/rest/v0/tasks/0m7kl0j9l"
10157
+ }
10158
+ }
10159
+ }
10160
+ }
10161
+ },
10162
+ "204": {
10163
+ "description": "No content"
10164
+ },
10165
+ "401": {
10166
+ "description": "Authentication required"
10167
+ },
10168
+ "404": {
10169
+ "description": "Resource not found"
10170
+ },
10171
+ "409": {
10172
+ "description": "The server is already connected"
10173
+ }
10174
+ },
10175
+ "tags": [
10176
+ "servers"
10177
+ ],
10178
+ "security": [
10179
+ {
10180
+ "*": []
10181
+ }
10182
+ ],
10183
+ "parameters": [
10184
+ {
10185
+ "in": "path",
10186
+ "name": "id",
10187
+ "required": true,
10188
+ "schema": {
10189
+ "type": "string"
10190
+ },
10191
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
10192
+ },
10193
+ {
10194
+ "in": "query",
10195
+ "name": "sync",
10196
+ "required": false,
10197
+ "schema": {
10198
+ "type": "boolean"
10199
+ }
10200
+ }
10201
+ ]
10202
+ }
10203
+ },
10204
+ "/servers/{id}/actions/disconnect": {
10205
+ "post": {
10206
+ "operationId": "DisconnectServer",
10207
+ "responses": {
10208
+ "202": {
10209
+ "description": "Action executed asynchronously",
10210
+ "content": {
10211
+ "text/plain": {
10212
+ "schema": {
10213
+ "anyOf": [
10214
+ {},
10215
+ {
10216
+ "type": "string"
10217
+ }
10218
+ ]
10219
+ },
10220
+ "examples": {
10221
+ "Example 1": {
10222
+ "value": "/rest/v0/tasks/0m7kl0j9l"
10223
+ }
10224
+ }
10225
+ }
10226
+ }
10227
+ },
10228
+ "204": {
10229
+ "description": "No content"
10230
+ },
10231
+ "401": {
10232
+ "description": "Authentication required"
10233
+ },
10234
+ "404": {
10235
+ "description": "Resource not found"
10236
+ },
10237
+ "409": {
10238
+ "description": "The server is already disconnected"
10239
+ }
10240
+ },
10241
+ "tags": [
10242
+ "servers"
10243
+ ],
10244
+ "security": [
10245
+ {
10246
+ "*": []
10247
+ }
10248
+ ],
10249
+ "parameters": [
10250
+ {
10251
+ "in": "path",
10252
+ "name": "id",
10253
+ "required": true,
10254
+ "schema": {
10255
+ "type": "string"
10256
+ },
10257
+ "example": "f07ab729-c0e8-721c-45ec-f11276377030"
10258
+ },
10259
+ {
10260
+ "in": "query",
10261
+ "name": "sync",
10262
+ "required": false,
10263
+ "schema": {
10264
+ "type": "boolean"
10265
+ }
10266
+ }
10267
+ ]
10268
+ }
10269
+ },
9518
10270
  "/schedules": {
9519
10271
  "get": {
9520
10272
  "operationId": "GetSchedules",
@@ -9922,6 +10674,179 @@
9922
10674
  ]
9923
10675
  }
9924
10676
  },
10677
+ "/networks": {
10678
+ "get": {
10679
+ "operationId": "GetNetworks",
10680
+ "responses": {
10681
+ "200": {
10682
+ "description": "Ok",
10683
+ "content": {
10684
+ "application/json": {
10685
+ "schema": {
10686
+ "anyOf": [
10687
+ {
10688
+ "items": {
10689
+ "type": "string"
10690
+ },
10691
+ "type": "array"
10692
+ },
10693
+ {
10694
+ "items": {
10695
+ "$ref": "#/components/schemas/WithHref_Partial_Unbrand_XoNetwork___"
10696
+ },
10697
+ "type": "array"
10698
+ }
10699
+ ]
10700
+ },
10701
+ "examples": {
10702
+ "Example 1": {
10703
+ "value": [
10704
+ "/rest/v0/networks/9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f",
10705
+ "/rest/v0/networks/6b6ca0f5-6611-0636-4b0a-1fb1c8e96414"
10706
+ ]
10707
+ },
10708
+ "Example 2": {
10709
+ "value": [
10710
+ {
10711
+ "nbd": true,
10712
+ "name_label": "Host internal management network",
10713
+ "id": "9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f",
10714
+ "href": "/rest/v0/networks/9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f"
10715
+ },
10716
+ {
10717
+ "nbd": true,
10718
+ "name_label": "Lab v2 (VLAN 11)",
10719
+ "id": "6b6ca0f5-6611-0636-4b0a-1fb1c8e96414",
10720
+ "href": "/rest/v0/networks/6b6ca0f5-6611-0636-4b0a-1fb1c8e96414"
10721
+ }
10722
+ ]
10723
+ }
10724
+ }
10725
+ }
10726
+ }
10727
+ },
10728
+ "401": {
10729
+ "description": "Authentication required"
10730
+ }
10731
+ },
10732
+ "tags": [
10733
+ "networks"
10734
+ ],
10735
+ "security": [
10736
+ {
10737
+ "*": []
10738
+ }
10739
+ ],
10740
+ "parameters": [
10741
+ {
10742
+ "in": "query",
10743
+ "name": "fields",
10744
+ "required": false,
10745
+ "schema": {
10746
+ "type": "string"
10747
+ },
10748
+ "example": "nbd,name_label,id"
10749
+ },
10750
+ {
10751
+ "in": "query",
10752
+ "name": "filter",
10753
+ "required": false,
10754
+ "schema": {
10755
+ "type": "string"
10756
+ },
10757
+ "example": "nbd?"
10758
+ },
10759
+ {
10760
+ "in": "query",
10761
+ "name": "limit",
10762
+ "required": false,
10763
+ "schema": {
10764
+ "format": "double",
10765
+ "type": "number"
10766
+ },
10767
+ "example": 42
10768
+ }
10769
+ ]
10770
+ }
10771
+ },
10772
+ "/networks/{id}": {
10773
+ "get": {
10774
+ "operationId": "GetNetwork",
10775
+ "responses": {
10776
+ "200": {
10777
+ "description": "Ok",
10778
+ "content": {
10779
+ "application/json": {
10780
+ "schema": {
10781
+ "$ref": "#/components/schemas/Unbrand_XoNetwork_"
10782
+ },
10783
+ "examples": {
10784
+ "Example 1": {
10785
+ "value": {
10786
+ "automatic": false,
10787
+ "bridge": "xenapi",
10788
+ "current_operations": {},
10789
+ "defaultIsLocked": false,
10790
+ "MTU": 1500,
10791
+ "name_description": "Network on which guests will be assigned a private link-local IP address which can be used to talk XenAPI",
10792
+ "name_label": "Host internal management network",
10793
+ "other_config": {
10794
+ "is_guest_installer_network": "true",
10795
+ "is_host_internal_management_network": "true",
10796
+ "ip_begin": "169.254.0.1",
10797
+ "ip_end": "169.254.255.254",
10798
+ "netmask": "255.255.0.0"
10799
+ },
10800
+ "tags": [],
10801
+ "PIFs": [],
10802
+ "VIFs": [
10803
+ "2d039fc8-e522-75db-34c9-536b9553bd5a",
10804
+ "38623621-d30e-0307-dcef-eb7ed6c69f0c",
10805
+ "cc4b090f-5ff1-254b-558f-f7ac237e6fc5",
10806
+ "a9f3d042-a2e1-102f-74fc-ff1df41c6eb3"
10807
+ ],
10808
+ "nbd": false,
10809
+ "insecureNbd": false,
10810
+ "id": "9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f",
10811
+ "type": "network",
10812
+ "uuid": "9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f",
10813
+ "$pool": "b7569d99-30f8-178a-7d94-801de3e29b5b",
10814
+ "$poolId": "b7569d99-30f8-178a-7d94-801de3e29b5b",
10815
+ "_xapiRef": "OpaqueRef:eb906e77-2221-5399-4a26-60f0ad069b61"
10816
+ }
10817
+ }
10818
+ }
10819
+ }
10820
+ }
10821
+ },
10822
+ "401": {
10823
+ "description": "Authentication required"
10824
+ },
10825
+ "404": {
10826
+ "description": "Resource not found"
10827
+ }
10828
+ },
10829
+ "tags": [
10830
+ "networks"
10831
+ ],
10832
+ "security": [
10833
+ {
10834
+ "*": []
10835
+ }
10836
+ ],
10837
+ "parameters": [
10838
+ {
10839
+ "in": "path",
10840
+ "name": "id",
10841
+ "required": true,
10842
+ "schema": {
10843
+ "type": "string"
10844
+ },
10845
+ "example": "9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f"
10846
+ }
10847
+ ]
10848
+ }
10849
+ },
9925
10850
  "/alarms": {
9926
10851
  "get": {
9927
10852
  "operationId": "GetAlarms",
@@ -16828,6 +17753,159 @@
16828
17753
  }
16829
17754
  ]
16830
17755
  }
17756
+ },
17757
+ "/groups": {
17758
+ "get": {
17759
+ "operationId": "GetGroups",
17760
+ "responses": {
17761
+ "200": {
17762
+ "description": "Ok",
17763
+ "content": {
17764
+ "application/json": {
17765
+ "schema": {
17766
+ "anyOf": [
17767
+ {
17768
+ "items": {
17769
+ "type": "string"
17770
+ },
17771
+ "type": "array"
17772
+ },
17773
+ {
17774
+ "items": {
17775
+ "$ref": "#/components/schemas/WithHref_Partial_Unbrand_XoGroup___"
17776
+ },
17777
+ "type": "array"
17778
+ }
17779
+ ]
17780
+ },
17781
+ "examples": {
17782
+ "Example 1": {
17783
+ "value": [
17784
+ "/rest/v0/groups/7d98fee4-3357-41a7-ac3f-9124212badb7",
17785
+ "/rest/v0/groups/7981ba62-c395-4546-bfa4-d1261653a77f"
17786
+ ]
17787
+ },
17788
+ "Example 2": {
17789
+ "value": [
17790
+ {
17791
+ "name": "group 1",
17792
+ "id": "7d98fee4-3357-41a7-ac3f-9124212badb7",
17793
+ "users": [
17794
+ "722d17b9-699b-49d2-8193-be1ac573d3de"
17795
+ ],
17796
+ "href": "/rest/v0/groups/7d98fee4-3357-41a7-ac3f-9124212badb7"
17797
+ },
17798
+ {
17799
+ "name": "group 2",
17800
+ "id": "7981ba62-c395-4546-bfa4-d1261653a77f",
17801
+ "users": [
17802
+ "722d17b9-699b-49d2-8193-be1ac573d3de",
17803
+ "088124f3-41b6-4258-9653-6eedc7b46111"
17804
+ ],
17805
+ "href": "/rest/v0/groups/7981ba62-c395-4546-bfa4-d1261653a77f"
17806
+ }
17807
+ ]
17808
+ }
17809
+ }
17810
+ }
17811
+ }
17812
+ },
17813
+ "401": {
17814
+ "description": "Authentication required"
17815
+ }
17816
+ },
17817
+ "tags": [
17818
+ "groups"
17819
+ ],
17820
+ "security": [
17821
+ {
17822
+ "*": []
17823
+ }
17824
+ ],
17825
+ "parameters": [
17826
+ {
17827
+ "in": "query",
17828
+ "name": "fields",
17829
+ "required": false,
17830
+ "schema": {
17831
+ "type": "string"
17832
+ },
17833
+ "example": "name,id,users"
17834
+ },
17835
+ {
17836
+ "in": "query",
17837
+ "name": "filter",
17838
+ "required": false,
17839
+ "schema": {
17840
+ "type": "string"
17841
+ },
17842
+ "example": "users:length:>0"
17843
+ },
17844
+ {
17845
+ "in": "query",
17846
+ "name": "limit",
17847
+ "required": false,
17848
+ "schema": {
17849
+ "format": "double",
17850
+ "type": "number"
17851
+ },
17852
+ "example": 42
17853
+ }
17854
+ ]
17855
+ }
17856
+ },
17857
+ "/groups/{id}": {
17858
+ "get": {
17859
+ "operationId": "GetGroup",
17860
+ "responses": {
17861
+ "200": {
17862
+ "description": "Ok",
17863
+ "content": {
17864
+ "application/json": {
17865
+ "schema": {
17866
+ "$ref": "#/components/schemas/Unbrand_XoGroup_"
17867
+ },
17868
+ "examples": {
17869
+ "Example 1": {
17870
+ "value": {
17871
+ "name": "group 1",
17872
+ "users": [
17873
+ "722d17b9-699b-49d2-8193-be1ac573d3de"
17874
+ ],
17875
+ "id": "7d98fee4-3357-41a7-ac3f-9124212badb7"
17876
+ }
17877
+ }
17878
+ }
17879
+ }
17880
+ }
17881
+ },
17882
+ "401": {
17883
+ "description": "Authentication required"
17884
+ },
17885
+ "404": {
17886
+ "description": "Resource not found"
17887
+ }
17888
+ },
17889
+ "tags": [
17890
+ "groups"
17891
+ ],
17892
+ "security": [
17893
+ {
17894
+ "*": []
17895
+ }
17896
+ ],
17897
+ "parameters": [
17898
+ {
17899
+ "in": "path",
17900
+ "name": "id",
17901
+ "required": true,
17902
+ "schema": {
17903
+ "type": "string"
17904
+ },
17905
+ "example": "7d98fee4-3357-41a7-ac3f-9124212badb7"
17906
+ }
17907
+ ]
17908
+ }
16831
17909
  }
16832
17910
  },
16833
17911
  "servers": [