@xen-orchestra/rest-api 0.26.0 → 0.28.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/hosts/host.controller.mjs +90 -1
- package/dist/ioc/ioc.mjs +8 -0
- package/dist/middlewares/generic-error-handler.middleware.mjs +1 -1
- package/dist/networks/network.service.mjs +23 -0
- package/dist/open-api/routes/routes.js +204 -19
- package/dist/pools/pool.controller.mjs +88 -6
- package/dist/srs/sr.controller.mjs +29 -0
- package/dist/vms/vm.controller.mjs +58 -0
- package/dist/vms/vm.service.mjs +1 -1
- package/dist/xoa/xoa.service.mjs +3 -3
- package/open-api/spec/swagger.json +649 -18
- package/package.json +4 -4
|
@@ -1750,9 +1750,9 @@
|
|
|
1750
1750
|
"host",
|
|
1751
1751
|
"VIF",
|
|
1752
1752
|
"VTPM",
|
|
1753
|
-
"VM",
|
|
1754
1753
|
"VM-snapshot",
|
|
1755
1754
|
"SR",
|
|
1755
|
+
"VM",
|
|
1756
1756
|
"message",
|
|
1757
1757
|
"vgpu",
|
|
1758
1758
|
"gpuGroup",
|
|
@@ -2381,9 +2381,9 @@
|
|
|
2381
2381
|
"host",
|
|
2382
2382
|
"VIF",
|
|
2383
2383
|
"VTPM",
|
|
2384
|
-
"VM",
|
|
2385
2384
|
"VM-snapshot",
|
|
2386
2385
|
"SR",
|
|
2386
|
+
"VM",
|
|
2387
2387
|
"message",
|
|
2388
2388
|
"vgpu",
|
|
2389
2389
|
"gpuGroup",
|
|
@@ -2531,9 +2531,9 @@
|
|
|
2531
2531
|
"host",
|
|
2532
2532
|
"VIF",
|
|
2533
2533
|
"VTPM",
|
|
2534
|
-
"VM",
|
|
2535
2534
|
"VM-snapshot",
|
|
2536
2535
|
"SR",
|
|
2536
|
+
"VM",
|
|
2537
2537
|
"message",
|
|
2538
2538
|
"vgpu",
|
|
2539
2539
|
"gpuGroup",
|
|
@@ -6540,9 +6540,9 @@
|
|
|
6540
6540
|
"host",
|
|
6541
6541
|
"VIF",
|
|
6542
6542
|
"VTPM",
|
|
6543
|
-
"VM",
|
|
6544
6543
|
"VM-snapshot",
|
|
6545
6544
|
"SR",
|
|
6545
|
+
"VM",
|
|
6546
6546
|
"message",
|
|
6547
6547
|
"vgpu",
|
|
6548
6548
|
"gpuGroup",
|
|
@@ -7886,7 +7886,7 @@
|
|
|
7886
7886
|
}
|
|
7887
7887
|
]
|
|
7888
7888
|
},
|
|
7889
|
-
"
|
|
7889
|
+
"Unbrand_CreateNetworkBody_": {
|
|
7890
7890
|
"properties": {
|
|
7891
7891
|
"name": {
|
|
7892
7892
|
"type": "string"
|
|
@@ -7894,14 +7894,17 @@
|
|
|
7894
7894
|
"description": {
|
|
7895
7895
|
"type": "string"
|
|
7896
7896
|
},
|
|
7897
|
-
"pif": {
|
|
7898
|
-
"type": "string"
|
|
7899
|
-
},
|
|
7900
7897
|
"mtu": {
|
|
7901
7898
|
"type": "number",
|
|
7902
7899
|
"format": "double",
|
|
7903
7900
|
"default": 1500
|
|
7904
7901
|
},
|
|
7902
|
+
"nbd": {
|
|
7903
|
+
"type": "boolean"
|
|
7904
|
+
},
|
|
7905
|
+
"pif": {
|
|
7906
|
+
"type": "string"
|
|
7907
|
+
},
|
|
7905
7908
|
"vlan": {
|
|
7906
7909
|
"type": "number",
|
|
7907
7910
|
"format": "double",
|
|
@@ -7914,8 +7917,73 @@
|
|
|
7914
7917
|
"pif",
|
|
7915
7918
|
"vlan"
|
|
7916
7919
|
],
|
|
7917
|
-
"type": "object"
|
|
7918
|
-
|
|
7920
|
+
"type": "object"
|
|
7921
|
+
},
|
|
7922
|
+
"BOND_MODE": {
|
|
7923
|
+
"type": "string",
|
|
7924
|
+
"enum": [
|
|
7925
|
+
"active-backup",
|
|
7926
|
+
"balance-slb",
|
|
7927
|
+
"lacp"
|
|
7928
|
+
]
|
|
7929
|
+
},
|
|
7930
|
+
"Unbrand_CreateBondedNetworkBody_": {
|
|
7931
|
+
"properties": {
|
|
7932
|
+
"name": {
|
|
7933
|
+
"type": "string"
|
|
7934
|
+
},
|
|
7935
|
+
"description": {
|
|
7936
|
+
"type": "string"
|
|
7937
|
+
},
|
|
7938
|
+
"mtu": {
|
|
7939
|
+
"type": "number",
|
|
7940
|
+
"format": "double",
|
|
7941
|
+
"default": 1500
|
|
7942
|
+
},
|
|
7943
|
+
"nbd": {
|
|
7944
|
+
"type": "boolean"
|
|
7945
|
+
},
|
|
7946
|
+
"pifIds": {
|
|
7947
|
+
"items": {
|
|
7948
|
+
"type": "string"
|
|
7949
|
+
},
|
|
7950
|
+
"type": "array"
|
|
7951
|
+
},
|
|
7952
|
+
"bondMode": {
|
|
7953
|
+
"$ref": "#/components/schemas/BOND_MODE"
|
|
7954
|
+
}
|
|
7955
|
+
},
|
|
7956
|
+
"required": [
|
|
7957
|
+
"name",
|
|
7958
|
+
"pifIds",
|
|
7959
|
+
"bondMode"
|
|
7960
|
+
],
|
|
7961
|
+
"type": "object"
|
|
7962
|
+
},
|
|
7963
|
+
"BaseCreateNetworkBody": {
|
|
7964
|
+
"properties": {
|
|
7965
|
+
"nbd": {
|
|
7966
|
+
"type": "boolean"
|
|
7967
|
+
},
|
|
7968
|
+
"mtu": {
|
|
7969
|
+
"type": "number",
|
|
7970
|
+
"format": "double",
|
|
7971
|
+
"default": 1500
|
|
7972
|
+
},
|
|
7973
|
+
"description": {
|
|
7974
|
+
"type": "string"
|
|
7975
|
+
},
|
|
7976
|
+
"name": {
|
|
7977
|
+
"type": "string"
|
|
7978
|
+
}
|
|
7979
|
+
},
|
|
7980
|
+
"required": [
|
|
7981
|
+
"name"
|
|
7982
|
+
],
|
|
7983
|
+
"type": "object"
|
|
7984
|
+
},
|
|
7985
|
+
"CreateInternalNetworkBody": {
|
|
7986
|
+
"$ref": "#/components/schemas/BaseCreateNetworkBody"
|
|
7919
7987
|
},
|
|
7920
7988
|
"CreateActionReturnType__id-Unbrand_XoVm__91_id_93___": {
|
|
7921
7989
|
"anyOf": [
|
|
@@ -7967,6 +8035,10 @@
|
|
|
7967
8035
|
"vgpuType": {
|
|
7968
8036
|
"type": "string"
|
|
7969
8037
|
},
|
|
8038
|
+
"cpus": {
|
|
8039
|
+
"type": "number",
|
|
8040
|
+
"format": "double"
|
|
8041
|
+
},
|
|
7970
8042
|
"autoPoweron": {
|
|
7971
8043
|
"type": "boolean"
|
|
7972
8044
|
},
|
|
@@ -10925,9 +10997,9 @@
|
|
|
10925
10997
|
"host",
|
|
10926
10998
|
"VIF",
|
|
10927
10999
|
"VTPM",
|
|
10928
|
-
"VM",
|
|
10929
11000
|
"VM-snapshot",
|
|
10930
11001
|
"SR",
|
|
11002
|
+
"VM",
|
|
10931
11003
|
"message",
|
|
10932
11004
|
"vgpu",
|
|
10933
11005
|
"gpuGroup",
|
|
@@ -12154,9 +12226,9 @@
|
|
|
12154
12226
|
"host",
|
|
12155
12227
|
"VIF",
|
|
12156
12228
|
"VTPM",
|
|
12157
|
-
"VM",
|
|
12158
12229
|
"VM-snapshot",
|
|
12159
12230
|
"SR",
|
|
12231
|
+
"VM",
|
|
12160
12232
|
"message",
|
|
12161
12233
|
"vgpu",
|
|
12162
12234
|
"gpuGroup",
|
|
@@ -12285,9 +12357,9 @@
|
|
|
12285
12357
|
"host",
|
|
12286
12358
|
"VIF",
|
|
12287
12359
|
"VTPM",
|
|
12288
|
-
"VM",
|
|
12289
12360
|
"VM-snapshot",
|
|
12290
12361
|
"SR",
|
|
12362
|
+
"VM",
|
|
12291
12363
|
"message",
|
|
12292
12364
|
"vgpu",
|
|
12293
12365
|
"gpuGroup",
|
|
@@ -12346,7 +12418,7 @@
|
|
|
12346
12418
|
},
|
|
12347
12419
|
"info": {
|
|
12348
12420
|
"title": "@xen-orchestra/rest-api",
|
|
12349
|
-
"version": "0.
|
|
12421
|
+
"version": "0.28.0",
|
|
12350
12422
|
"description": "REST API to manage your XOA",
|
|
12351
12423
|
"license": {
|
|
12352
12424
|
"name": "AGPL-3.0-or-later"
|
|
@@ -14965,6 +15037,120 @@
|
|
|
14965
15037
|
}
|
|
14966
15038
|
}
|
|
14967
15039
|
},
|
|
15040
|
+
"/vms/{id}/actions/clone": {
|
|
15041
|
+
"post": {
|
|
15042
|
+
"operationId": "CloneVm",
|
|
15043
|
+
"responses": {
|
|
15044
|
+
"201": {
|
|
15045
|
+
"description": "Resource created"
|
|
15046
|
+
},
|
|
15047
|
+
"202": {
|
|
15048
|
+
"description": "Action executed asynchronously",
|
|
15049
|
+
"content": {
|
|
15050
|
+
"application/json": {
|
|
15051
|
+
"schema": {
|
|
15052
|
+
"$ref": "#/components/schemas/CreateActionReturnType__id-XenApiVm-at-uuid__"
|
|
15053
|
+
},
|
|
15054
|
+
"examples": {
|
|
15055
|
+
"Example 1": {
|
|
15056
|
+
"value": {
|
|
15057
|
+
"taskId": "0m7kl0j9l"
|
|
15058
|
+
}
|
|
15059
|
+
}
|
|
15060
|
+
}
|
|
15061
|
+
}
|
|
15062
|
+
}
|
|
15063
|
+
},
|
|
15064
|
+
"400": {
|
|
15065
|
+
"description": "Bad request"
|
|
15066
|
+
},
|
|
15067
|
+
"401": {
|
|
15068
|
+
"description": "Authentication required"
|
|
15069
|
+
},
|
|
15070
|
+
"404": {
|
|
15071
|
+
"description": "Resource not found"
|
|
15072
|
+
},
|
|
15073
|
+
"422": {
|
|
15074
|
+
"description": "Invalid parameters"
|
|
15075
|
+
},
|
|
15076
|
+
"500": {
|
|
15077
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
15078
|
+
}
|
|
15079
|
+
},
|
|
15080
|
+
"description": "\n- For fast clone on the same SR, omit `srId` and set `fast` to `true`.\n- For full copy on the same SR, omit `srId` and set `fast` to `false`.\n- To copy the VM to a different SR (always a full copy), provide `srId`. Supports cross-pool copy. Optionally use `compress: \"gzip\"` or `compress: \"zstd\"` to compress the export stream during cross-pool copy.",
|
|
15081
|
+
"tags": [
|
|
15082
|
+
"vms"
|
|
15083
|
+
],
|
|
15084
|
+
"security": [
|
|
15085
|
+
{
|
|
15086
|
+
"*": []
|
|
15087
|
+
}
|
|
15088
|
+
],
|
|
15089
|
+
"parameters": [
|
|
15090
|
+
{
|
|
15091
|
+
"in": "path",
|
|
15092
|
+
"name": "id",
|
|
15093
|
+
"required": true,
|
|
15094
|
+
"schema": {
|
|
15095
|
+
"type": "string"
|
|
15096
|
+
},
|
|
15097
|
+
"example": "f07ab729-c0e8-721c-45ec-f11276377030"
|
|
15098
|
+
},
|
|
15099
|
+
{
|
|
15100
|
+
"in": "query",
|
|
15101
|
+
"name": "sync",
|
|
15102
|
+
"required": false,
|
|
15103
|
+
"schema": {
|
|
15104
|
+
"type": "boolean"
|
|
15105
|
+
}
|
|
15106
|
+
}
|
|
15107
|
+
],
|
|
15108
|
+
"requestBody": {
|
|
15109
|
+
"required": false,
|
|
15110
|
+
"content": {
|
|
15111
|
+
"application/json": {
|
|
15112
|
+
"schema": {
|
|
15113
|
+
"anyOf": [
|
|
15114
|
+
{
|
|
15115
|
+
"properties": {
|
|
15116
|
+
"fast": {
|
|
15117
|
+
"type": "boolean"
|
|
15118
|
+
},
|
|
15119
|
+
"name_label": {
|
|
15120
|
+
"type": "string"
|
|
15121
|
+
}
|
|
15122
|
+
},
|
|
15123
|
+
"type": "object"
|
|
15124
|
+
},
|
|
15125
|
+
{
|
|
15126
|
+
"properties": {
|
|
15127
|
+
"compress": {
|
|
15128
|
+
"type": "string",
|
|
15129
|
+
"enum": [
|
|
15130
|
+
"gzip",
|
|
15131
|
+
"zstd"
|
|
15132
|
+
]
|
|
15133
|
+
},
|
|
15134
|
+
"srId": {
|
|
15135
|
+
"type": "string"
|
|
15136
|
+
},
|
|
15137
|
+
"name_label": {
|
|
15138
|
+
"type": "string"
|
|
15139
|
+
}
|
|
15140
|
+
},
|
|
15141
|
+
"type": "object"
|
|
15142
|
+
}
|
|
15143
|
+
]
|
|
15144
|
+
},
|
|
15145
|
+
"example": {
|
|
15146
|
+
"name_label": "cloned_vm",
|
|
15147
|
+
"fast": true
|
|
15148
|
+
}
|
|
15149
|
+
}
|
|
15150
|
+
}
|
|
15151
|
+
}
|
|
15152
|
+
}
|
|
15153
|
+
},
|
|
14968
15154
|
"/vms/{id}/alarms": {
|
|
14969
15155
|
"get": {
|
|
14970
15156
|
"operationId": "GetVmAlarms",
|
|
@@ -23152,6 +23338,75 @@
|
|
|
23152
23338
|
]
|
|
23153
23339
|
}
|
|
23154
23340
|
},
|
|
23341
|
+
"/srs/{id}/actions/forget": {
|
|
23342
|
+
"post": {
|
|
23343
|
+
"operationId": "ForgetSr",
|
|
23344
|
+
"responses": {
|
|
23345
|
+
"202": {
|
|
23346
|
+
"description": "Action executed asynchronously",
|
|
23347
|
+
"content": {
|
|
23348
|
+
"application/json": {
|
|
23349
|
+
"schema": {
|
|
23350
|
+
"$ref": "#/components/schemas/CreateActionReturnType_void_"
|
|
23351
|
+
},
|
|
23352
|
+
"examples": {
|
|
23353
|
+
"Example 1": {
|
|
23354
|
+
"value": {
|
|
23355
|
+
"taskId": "0m7kl0j9l"
|
|
23356
|
+
}
|
|
23357
|
+
}
|
|
23358
|
+
}
|
|
23359
|
+
}
|
|
23360
|
+
}
|
|
23361
|
+
},
|
|
23362
|
+
"204": {
|
|
23363
|
+
"description": "No content"
|
|
23364
|
+
},
|
|
23365
|
+
"400": {
|
|
23366
|
+
"description": "Bad request"
|
|
23367
|
+
},
|
|
23368
|
+
"401": {
|
|
23369
|
+
"description": "Authentication required"
|
|
23370
|
+
},
|
|
23371
|
+
"404": {
|
|
23372
|
+
"description": "Resource not found"
|
|
23373
|
+
},
|
|
23374
|
+
"422": {
|
|
23375
|
+
"description": "Invalid parameters"
|
|
23376
|
+
},
|
|
23377
|
+
"500": {
|
|
23378
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
23379
|
+
}
|
|
23380
|
+
},
|
|
23381
|
+
"tags": [
|
|
23382
|
+
"srs"
|
|
23383
|
+
],
|
|
23384
|
+
"security": [
|
|
23385
|
+
{
|
|
23386
|
+
"*": []
|
|
23387
|
+
}
|
|
23388
|
+
],
|
|
23389
|
+
"parameters": [
|
|
23390
|
+
{
|
|
23391
|
+
"in": "path",
|
|
23392
|
+
"name": "id",
|
|
23393
|
+
"required": true,
|
|
23394
|
+
"schema": {
|
|
23395
|
+
"type": "string"
|
|
23396
|
+
},
|
|
23397
|
+
"example": "c4284e12-37c9-7967-b9e8-83ef229c3e03"
|
|
23398
|
+
},
|
|
23399
|
+
{
|
|
23400
|
+
"in": "query",
|
|
23401
|
+
"name": "sync",
|
|
23402
|
+
"required": false,
|
|
23403
|
+
"schema": {
|
|
23404
|
+
"type": "boolean"
|
|
23405
|
+
}
|
|
23406
|
+
}
|
|
23407
|
+
]
|
|
23408
|
+
}
|
|
23409
|
+
},
|
|
23155
23410
|
"/sms": {
|
|
23156
23411
|
"get": {
|
|
23157
23412
|
"operationId": "GetSrs",
|
|
@@ -24798,6 +25053,100 @@
|
|
|
24798
25053
|
"404": {
|
|
24799
25054
|
"description": "Resource not found"
|
|
24800
25055
|
},
|
|
25056
|
+
"422": {
|
|
25057
|
+
"description": "Invalid parameters"
|
|
25058
|
+
},
|
|
25059
|
+
"500": {
|
|
25060
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
25061
|
+
}
|
|
25062
|
+
},
|
|
25063
|
+
"tags": [
|
|
25064
|
+
"networks",
|
|
25065
|
+
"pools"
|
|
25066
|
+
],
|
|
25067
|
+
"security": [
|
|
25068
|
+
{
|
|
25069
|
+
"*": []
|
|
25070
|
+
}
|
|
25071
|
+
],
|
|
25072
|
+
"parameters": [
|
|
25073
|
+
{
|
|
25074
|
+
"in": "path",
|
|
25075
|
+
"name": "id",
|
|
25076
|
+
"required": true,
|
|
25077
|
+
"schema": {
|
|
25078
|
+
"type": "string"
|
|
25079
|
+
},
|
|
25080
|
+
"example": "355ee47d-ff4c-4924-3db2-fd86ae629676"
|
|
25081
|
+
},
|
|
25082
|
+
{
|
|
25083
|
+
"in": "query",
|
|
25084
|
+
"name": "sync",
|
|
25085
|
+
"required": false,
|
|
25086
|
+
"schema": {
|
|
25087
|
+
"type": "boolean"
|
|
25088
|
+
}
|
|
25089
|
+
}
|
|
25090
|
+
],
|
|
25091
|
+
"requestBody": {
|
|
25092
|
+
"required": true,
|
|
25093
|
+
"content": {
|
|
25094
|
+
"application/json": {
|
|
25095
|
+
"schema": {
|
|
25096
|
+
"$ref": "#/components/schemas/Unbrand_CreateNetworkBody_"
|
|
25097
|
+
},
|
|
25098
|
+
"example": {
|
|
25099
|
+
"name": "awes0me_network",
|
|
25100
|
+
"description": "random description",
|
|
25101
|
+
"pif": "ad15b2c8-3d9a-194e-c43a-e3dcda74b256",
|
|
25102
|
+
"vlan": 0
|
|
25103
|
+
}
|
|
25104
|
+
}
|
|
25105
|
+
}
|
|
25106
|
+
}
|
|
25107
|
+
}
|
|
25108
|
+
},
|
|
25109
|
+
"/pools/{id}/actions/create_bonded_network": {
|
|
25110
|
+
"post": {
|
|
25111
|
+
"operationId": "CreateBondedNetwork",
|
|
25112
|
+
"responses": {
|
|
25113
|
+
"201": {
|
|
25114
|
+
"description": "Resource created",
|
|
25115
|
+
"content": {
|
|
25116
|
+
"application/json": {
|
|
25117
|
+
"schema": {
|
|
25118
|
+
"$ref": "#/components/schemas/CreateActionReturnType__id-Unbrand_XoNetwork__91_id_93___"
|
|
25119
|
+
},
|
|
25120
|
+
"examples": {
|
|
25121
|
+
"Example 1": {
|
|
25122
|
+
"value": {
|
|
25123
|
+
"taskId": "0m7kl0j9l"
|
|
25124
|
+
}
|
|
25125
|
+
},
|
|
25126
|
+
"Example 2": {
|
|
25127
|
+
"value": {
|
|
25128
|
+
"id": "9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f"
|
|
25129
|
+
}
|
|
25130
|
+
}
|
|
25131
|
+
}
|
|
25132
|
+
}
|
|
25133
|
+
}
|
|
25134
|
+
},
|
|
25135
|
+
"202": {
|
|
25136
|
+
"description": "Action executed asynchronously"
|
|
25137
|
+
},
|
|
25138
|
+
"400": {
|
|
25139
|
+
"description": "Bad request"
|
|
25140
|
+
},
|
|
25141
|
+
"401": {
|
|
25142
|
+
"description": "Authentication required"
|
|
25143
|
+
},
|
|
25144
|
+
"404": {
|
|
25145
|
+
"description": "Resource not found"
|
|
25146
|
+
},
|
|
25147
|
+
"422": {
|
|
25148
|
+
"description": "Invalid parameters"
|
|
25149
|
+
},
|
|
24801
25150
|
"500": {
|
|
24802
25151
|
"description": "Internal server error, XenServer/XCP-ng error"
|
|
24803
25152
|
}
|
|
@@ -24835,13 +25184,105 @@
|
|
|
24835
25184
|
"content": {
|
|
24836
25185
|
"application/json": {
|
|
24837
25186
|
"schema": {
|
|
24838
|
-
"$ref": "#/components/schemas/
|
|
25187
|
+
"$ref": "#/components/schemas/Unbrand_CreateBondedNetworkBody_"
|
|
24839
25188
|
},
|
|
24840
25189
|
"example": {
|
|
24841
|
-
"name": "
|
|
25190
|
+
"name": "awes0me_bonded_network",
|
|
24842
25191
|
"description": "random description",
|
|
24843
|
-
"
|
|
24844
|
-
|
|
25192
|
+
"pifIds": [
|
|
25193
|
+
"ad15b2c8-3d9a-194e-c43a-e3dcda74b256",
|
|
25194
|
+
"7b6bed50-26b2-bd27-8f3a-1b5a81989a92"
|
|
25195
|
+
],
|
|
25196
|
+
"bondMode": "lacp"
|
|
25197
|
+
}
|
|
25198
|
+
}
|
|
25199
|
+
}
|
|
25200
|
+
}
|
|
25201
|
+
}
|
|
25202
|
+
},
|
|
25203
|
+
"/pools/{id}/actions/create_internal_network": {
|
|
25204
|
+
"post": {
|
|
25205
|
+
"operationId": "CreateInternalNetwork",
|
|
25206
|
+
"responses": {
|
|
25207
|
+
"201": {
|
|
25208
|
+
"description": "Resource created",
|
|
25209
|
+
"content": {
|
|
25210
|
+
"application/json": {
|
|
25211
|
+
"schema": {
|
|
25212
|
+
"$ref": "#/components/schemas/CreateActionReturnType__id-Unbrand_XoNetwork__91_id_93___"
|
|
25213
|
+
},
|
|
25214
|
+
"examples": {
|
|
25215
|
+
"Example 1": {
|
|
25216
|
+
"value": {
|
|
25217
|
+
"taskId": "0m7kl0j9l"
|
|
25218
|
+
}
|
|
25219
|
+
},
|
|
25220
|
+
"Example 2": {
|
|
25221
|
+
"value": {
|
|
25222
|
+
"id": "9fe12ca3-d75d-cfb0-492e-cfd2bc6c568f"
|
|
25223
|
+
}
|
|
25224
|
+
}
|
|
25225
|
+
}
|
|
25226
|
+
}
|
|
25227
|
+
}
|
|
25228
|
+
},
|
|
25229
|
+
"202": {
|
|
25230
|
+
"description": "Action executed asynchronously"
|
|
25231
|
+
},
|
|
25232
|
+
"400": {
|
|
25233
|
+
"description": "Bad request"
|
|
25234
|
+
},
|
|
25235
|
+
"401": {
|
|
25236
|
+
"description": "Authentication required"
|
|
25237
|
+
},
|
|
25238
|
+
"404": {
|
|
25239
|
+
"description": "Resource not found"
|
|
25240
|
+
},
|
|
25241
|
+
"422": {
|
|
25242
|
+
"description": "Invalid parameters"
|
|
25243
|
+
},
|
|
25244
|
+
"500": {
|
|
25245
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
25246
|
+
}
|
|
25247
|
+
},
|
|
25248
|
+
"tags": [
|
|
25249
|
+
"networks",
|
|
25250
|
+
"pools"
|
|
25251
|
+
],
|
|
25252
|
+
"security": [
|
|
25253
|
+
{
|
|
25254
|
+
"*": []
|
|
25255
|
+
}
|
|
25256
|
+
],
|
|
25257
|
+
"parameters": [
|
|
25258
|
+
{
|
|
25259
|
+
"in": "path",
|
|
25260
|
+
"name": "id",
|
|
25261
|
+
"required": true,
|
|
25262
|
+
"schema": {
|
|
25263
|
+
"type": "string"
|
|
25264
|
+
},
|
|
25265
|
+
"example": "355ee47d-ff4c-4924-3db2-fd86ae629676"
|
|
25266
|
+
},
|
|
25267
|
+
{
|
|
25268
|
+
"in": "query",
|
|
25269
|
+
"name": "sync",
|
|
25270
|
+
"required": false,
|
|
25271
|
+
"schema": {
|
|
25272
|
+
"type": "boolean"
|
|
25273
|
+
}
|
|
25274
|
+
}
|
|
25275
|
+
],
|
|
25276
|
+
"requestBody": {
|
|
25277
|
+
"required": true,
|
|
25278
|
+
"content": {
|
|
25279
|
+
"application/json": {
|
|
25280
|
+
"schema": {
|
|
25281
|
+
"$ref": "#/components/schemas/CreateInternalNetworkBody"
|
|
25282
|
+
},
|
|
25283
|
+
"example": {
|
|
25284
|
+
"name": "awes0me_internal_network",
|
|
25285
|
+
"description": "random description"
|
|
24845
25286
|
}
|
|
24846
25287
|
}
|
|
24847
25288
|
}
|
|
@@ -37259,6 +37700,196 @@
|
|
|
37259
37700
|
}
|
|
37260
37701
|
}
|
|
37261
37702
|
},
|
|
37703
|
+
"/hosts/{id}/actions/disable": {
|
|
37704
|
+
"post": {
|
|
37705
|
+
"operationId": "Disable",
|
|
37706
|
+
"responses": {
|
|
37707
|
+
"202": {
|
|
37708
|
+
"description": "Action executed asynchronously",
|
|
37709
|
+
"content": {
|
|
37710
|
+
"application/json": {
|
|
37711
|
+
"schema": {
|
|
37712
|
+
"$ref": "#/components/schemas/CreateActionReturnType_void_"
|
|
37713
|
+
},
|
|
37714
|
+
"examples": {
|
|
37715
|
+
"Example 1": {
|
|
37716
|
+
"value": {
|
|
37717
|
+
"taskId": "0m7kl0j9l"
|
|
37718
|
+
}
|
|
37719
|
+
}
|
|
37720
|
+
}
|
|
37721
|
+
}
|
|
37722
|
+
}
|
|
37723
|
+
},
|
|
37724
|
+
"204": {
|
|
37725
|
+
"description": "No content"
|
|
37726
|
+
},
|
|
37727
|
+
"400": {
|
|
37728
|
+
"description": "Bad request"
|
|
37729
|
+
},
|
|
37730
|
+
"401": {
|
|
37731
|
+
"description": "Authentication required"
|
|
37732
|
+
},
|
|
37733
|
+
"404": {
|
|
37734
|
+
"description": "Resource not found"
|
|
37735
|
+
},
|
|
37736
|
+
"422": {
|
|
37737
|
+
"description": "Invalid parameters"
|
|
37738
|
+
},
|
|
37739
|
+
"500": {
|
|
37740
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
37741
|
+
}
|
|
37742
|
+
},
|
|
37743
|
+
"description": "Disable a host.\n\nSet `evacuate` to `true` to also evacuate all running VMs to other hosts in the pool.\n\nUse `vmIdsToForceMigrate` to unblock VMs whose migration is currently blocked (e.g. by `pool_migrate` or `migrate_send` blocked operations).\n\nUse `force` to ignore evacuation errors.",
|
|
37744
|
+
"tags": [
|
|
37745
|
+
"hosts"
|
|
37746
|
+
],
|
|
37747
|
+
"security": [
|
|
37748
|
+
{
|
|
37749
|
+
"*": []
|
|
37750
|
+
}
|
|
37751
|
+
],
|
|
37752
|
+
"parameters": [
|
|
37753
|
+
{
|
|
37754
|
+
"in": "path",
|
|
37755
|
+
"name": "id",
|
|
37756
|
+
"required": true,
|
|
37757
|
+
"schema": {
|
|
37758
|
+
"type": "string"
|
|
37759
|
+
},
|
|
37760
|
+
"example": "b61a5c92-700e-4966-a13b-00633f03eea8"
|
|
37761
|
+
},
|
|
37762
|
+
{
|
|
37763
|
+
"in": "query",
|
|
37764
|
+
"name": "sync",
|
|
37765
|
+
"required": false,
|
|
37766
|
+
"schema": {
|
|
37767
|
+
"type": "boolean"
|
|
37768
|
+
}
|
|
37769
|
+
}
|
|
37770
|
+
],
|
|
37771
|
+
"requestBody": {
|
|
37772
|
+
"required": false,
|
|
37773
|
+
"content": {
|
|
37774
|
+
"application/json": {
|
|
37775
|
+
"schema": {
|
|
37776
|
+
"anyOf": [
|
|
37777
|
+
{
|
|
37778
|
+
"properties": {
|
|
37779
|
+
"evacuate": {
|
|
37780
|
+
"type": "boolean",
|
|
37781
|
+
"enum": [
|
|
37782
|
+
false
|
|
37783
|
+
],
|
|
37784
|
+
"nullable": false
|
|
37785
|
+
}
|
|
37786
|
+
},
|
|
37787
|
+
"type": "object"
|
|
37788
|
+
},
|
|
37789
|
+
{
|
|
37790
|
+
"properties": {
|
|
37791
|
+
"vmIdsToForceMigrate": {
|
|
37792
|
+
"items": {
|
|
37793
|
+
"type": "string"
|
|
37794
|
+
},
|
|
37795
|
+
"type": "array"
|
|
37796
|
+
},
|
|
37797
|
+
"force": {
|
|
37798
|
+
"type": "boolean"
|
|
37799
|
+
},
|
|
37800
|
+
"evacuate": {
|
|
37801
|
+
"type": "boolean",
|
|
37802
|
+
"enum": [
|
|
37803
|
+
true
|
|
37804
|
+
],
|
|
37805
|
+
"nullable": false
|
|
37806
|
+
}
|
|
37807
|
+
},
|
|
37808
|
+
"required": [
|
|
37809
|
+
"evacuate"
|
|
37810
|
+
],
|
|
37811
|
+
"type": "object"
|
|
37812
|
+
}
|
|
37813
|
+
]
|
|
37814
|
+
},
|
|
37815
|
+
"example": {
|
|
37816
|
+
"evacuate": true,
|
|
37817
|
+
"vmIdsToForceMigrate": [
|
|
37818
|
+
"f07ab729-c0e8-721c-45ec-f11276377030"
|
|
37819
|
+
]
|
|
37820
|
+
}
|
|
37821
|
+
}
|
|
37822
|
+
}
|
|
37823
|
+
}
|
|
37824
|
+
}
|
|
37825
|
+
},
|
|
37826
|
+
"/hosts/{id}/actions/enable": {
|
|
37827
|
+
"post": {
|
|
37828
|
+
"operationId": "Enable",
|
|
37829
|
+
"responses": {
|
|
37830
|
+
"202": {
|
|
37831
|
+
"description": "Action executed asynchronously",
|
|
37832
|
+
"content": {
|
|
37833
|
+
"application/json": {
|
|
37834
|
+
"schema": {
|
|
37835
|
+
"$ref": "#/components/schemas/CreateActionReturnType_void_"
|
|
37836
|
+
},
|
|
37837
|
+
"examples": {
|
|
37838
|
+
"Example 1": {
|
|
37839
|
+
"value": {
|
|
37840
|
+
"taskId": "0m7kl0j9l"
|
|
37841
|
+
}
|
|
37842
|
+
}
|
|
37843
|
+
}
|
|
37844
|
+
}
|
|
37845
|
+
}
|
|
37846
|
+
},
|
|
37847
|
+
"204": {
|
|
37848
|
+
"description": "No content"
|
|
37849
|
+
},
|
|
37850
|
+
"400": {
|
|
37851
|
+
"description": "Bad request"
|
|
37852
|
+
},
|
|
37853
|
+
"401": {
|
|
37854
|
+
"description": "Authentication required"
|
|
37855
|
+
},
|
|
37856
|
+
"404": {
|
|
37857
|
+
"description": "Resource not found"
|
|
37858
|
+
},
|
|
37859
|
+
"500": {
|
|
37860
|
+
"description": "Internal server error, XenServer/XCP-ng error"
|
|
37861
|
+
}
|
|
37862
|
+
},
|
|
37863
|
+
"description": "Enable a host, taking it out of disabled state.",
|
|
37864
|
+
"tags": [
|
|
37865
|
+
"hosts"
|
|
37866
|
+
],
|
|
37867
|
+
"security": [
|
|
37868
|
+
{
|
|
37869
|
+
"*": []
|
|
37870
|
+
}
|
|
37871
|
+
],
|
|
37872
|
+
"parameters": [
|
|
37873
|
+
{
|
|
37874
|
+
"in": "path",
|
|
37875
|
+
"name": "id",
|
|
37876
|
+
"required": true,
|
|
37877
|
+
"schema": {
|
|
37878
|
+
"type": "string"
|
|
37879
|
+
},
|
|
37880
|
+
"example": "b61a5c92-700e-4966-a13b-00633f03eea8"
|
|
37881
|
+
},
|
|
37882
|
+
{
|
|
37883
|
+
"in": "query",
|
|
37884
|
+
"name": "sync",
|
|
37885
|
+
"required": false,
|
|
37886
|
+
"schema": {
|
|
37887
|
+
"type": "boolean"
|
|
37888
|
+
}
|
|
37889
|
+
}
|
|
37890
|
+
]
|
|
37891
|
+
}
|
|
37892
|
+
},
|
|
37262
37893
|
"/groups": {
|
|
37263
37894
|
"get": {
|
|
37264
37895
|
"operationId": "GetGroups",
|