View | Details | Raw Unified | Return to ticket 12897 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/plugins/openapi/dbv0.0.36/openapi.json (-224 / +1329 lines)
Lines 32-38 Link Here
32
  ],
32
  ],
33
  "security": [
33
  "security": [
34
    {
34
    {
35
      "user": [],
35
      "user": []
36
    },
37
    {
36
      "token": []
38
      "token": []
37
    }
39
    }
38
  ],
40
  ],
Lines 77-82 Link Here
77
          },
79
          },
78
          "default": {
80
          "default": {
79
            "description": "Unable to find job"
81
            "description": "Unable to find job"
82
          },
83
          "400": {
84
            "description": "Invalid Request",
85
            "content": {
86
              "application/json": {
87
                "schema": {
88
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
89
                }
90
              },
91
              "application/x-yaml": {
92
                "schema": {
93
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
94
                }
95
              }
96
            }
97
          },
98
          "500": {
99
            "description": "Internal Error",
100
            "content": {
101
              "application/json": {
102
                "schema": {
103
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
104
                }
105
              },
106
              "application/x-yaml": {
107
                "schema": {
108
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
109
                }
110
              }
111
            }
80
          }
112
          }
81
        }
113
        }
82
      }
114
      }
Lines 106-111 Link Here
106
          },
138
          },
107
          "default": {
139
          "default": {
108
            "description": "Unable to dump config"
140
            "description": "Unable to dump config"
141
          },
142
          "400": {
143
            "description": "Invalid Request",
144
            "content": {
145
              "application/json": {
146
                "schema": {
147
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
148
                }
149
              },
150
              "application/x-yaml": {
151
                "schema": {
152
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
153
                }
154
              }
155
            }
156
          },
157
          "500": {
158
            "description": "Internal Error",
159
            "content": {
160
              "application/json": {
161
                "schema": {
162
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
163
                }
164
              },
165
              "application/x-yaml": {
166
                "schema": {
167
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
168
                }
169
              }
170
            }
109
          }
171
          }
110
        }
172
        }
111
      },
173
      },
Lines 133-138 Link Here
133
          },
195
          },
134
          "default": {
196
          "default": {
135
            "description": "Unable to set config"
197
            "description": "Unable to set config"
198
          },
199
          "400": {
200
            "description": "Invalid Request",
201
            "content": {
202
              "application/json": {
203
                "schema": {
204
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
205
                }
206
              },
207
              "application/x-yaml": {
208
                "schema": {
209
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
210
                }
211
              }
212
            }
213
          },
214
          "500": {
215
            "description": "Internal Error",
216
            "content": {
217
              "application/json": {
218
                "schema": {
219
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
220
                }
221
              },
222
              "application/x-yaml": {
223
                "schema": {
224
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
225
                }
226
              }
227
            }
136
          }
228
          }
137
        }
229
        }
138
      }
230
      }
Lines 161-166 Link Here
161
          },
253
          },
162
          "default": {
254
          "default": {
163
            "description": "Unable to update TRES"
255
            "description": "Unable to update TRES"
256
          },
257
          "400": {
258
            "description": "Invalid Request",
259
            "content": {
260
              "application/json": {
261
                "schema": {
262
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
263
                }
264
              },
265
              "application/x-yaml": {
266
                "schema": {
267
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
268
                }
269
              }
270
            }
271
          },
272
          "500": {
273
            "description": "Internal Error",
274
            "content": {
275
              "application/json": {
276
                "schema": {
277
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
278
                }
279
              },
280
              "application/x-yaml": {
281
                "schema": {
282
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
283
                }
284
              }
285
            }
164
          }
286
          }
165
        },
287
        },
166
        "summary": "Set TRES info"
288
        "summary": "Set TRES info"
Lines 188-193 Link Here
188
          },
310
          },
189
          "default": {
311
          "default": {
190
            "description": "Unable to retrieve TRES"
312
            "description": "Unable to retrieve TRES"
313
          },
314
          "400": {
315
            "description": "Invalid Request",
316
            "content": {
317
              "application/json": {
318
                "schema": {
319
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
320
                }
321
              },
322
              "application/x-yaml": {
323
                "schema": {
324
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
325
                }
326
              }
327
            }
328
          },
329
          "500": {
330
            "description": "Internal Error",
331
            "content": {
332
              "application/json": {
333
                "schema": {
334
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
335
                }
336
              },
337
              "application/x-yaml": {
338
                "schema": {
339
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
340
                }
341
              }
342
            }
191
          }
343
          }
192
        },
344
        },
193
        "summary": "Get TRES info"
345
        "summary": "Get TRES info"
Lines 218-223 Link Here
218
          },
370
          },
219
          "default": {
371
          "default": {
220
            "description": "Unable to delete QOS"
372
            "description": "Unable to delete QOS"
373
          },
374
          "400": {
375
            "description": "Invalid Request",
376
            "content": {
377
              "application/json": {
378
                "schema": {
379
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
380
                }
381
              },
382
              "application/x-yaml": {
383
                "schema": {
384
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
385
                }
386
              }
387
            }
388
          },
389
          "500": {
390
            "description": "Internal Error",
391
            "content": {
392
              "application/json": {
393
                "schema": {
394
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
395
                }
396
              },
397
              "application/x-yaml": {
398
                "schema": {
399
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
400
                }
401
              }
402
            }
221
          }
403
          }
222
        },
404
        },
223
        "parameters": [
405
        "parameters": [
Lines 258-263 Link Here
258
          },
440
          },
259
          "default": {
441
          "default": {
260
            "description": "QOS not found"
442
            "description": "QOS not found"
443
          },
444
          "400": {
445
            "description": "Invalid Request",
446
            "content": {
447
              "application/json": {
448
                "schema": {
449
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
450
                }
451
              },
452
              "application/x-yaml": {
453
                "schema": {
454
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
455
                }
456
              }
457
            }
458
          },
459
          "500": {
460
            "description": "Internal Error",
461
            "content": {
462
              "application/json": {
463
                "schema": {
464
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
465
                }
466
              },
467
              "application/x-yaml": {
468
                "schema": {
469
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
470
                }
471
              }
472
            }
261
          }
473
          }
262
        },
474
        },
263
        "parameters": [
475
        "parameters": [
Lines 299-304 Link Here
299
          },
511
          },
300
          "default": {
512
          "default": {
301
            "description": "QOS not found"
513
            "description": "QOS not found"
514
          },
515
          "400": {
516
            "description": "Invalid Request",
517
            "content": {
518
              "application/json": {
519
                "schema": {
520
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
521
                }
522
              },
523
              "application/x-yaml": {
524
                "schema": {
525
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
526
                }
527
              }
528
            }
529
          },
530
          "500": {
531
            "description": "Internal Error",
532
            "content": {
533
              "application/json": {
534
                "schema": {
535
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
536
                }
537
              },
538
              "application/x-yaml": {
539
                "schema": {
540
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
541
                }
542
              }
543
            }
302
          }
544
          }
303
        },
545
        },
304
        "summary": "Get QOS list"
546
        "summary": "Get QOS list"
Lines 328-333 Link Here
328
          },
570
          },
329
          "default": {
571
          "default": {
330
            "description": "Association not found"
572
            "description": "Association not found"
573
          },
574
          "400": {
575
            "description": "Invalid Request",
576
            "content": {
577
              "application/json": {
578
                "schema": {
579
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
580
                }
581
              },
582
              "application/x-yaml": {
583
                "schema": {
584
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
585
                }
586
              }
587
            }
588
          },
589
          "500": {
590
            "description": "Internal Error",
591
            "content": {
592
              "application/json": {
593
                "schema": {
594
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
595
                }
596
              },
597
              "application/x-yaml": {
598
                "schema": {
599
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
600
                }
601
              }
602
            }
331
          }
603
          }
332
        },
604
        },
333
        "summary": "Get association list"
605
        "summary": "Get association list"
Lines 403-408 Link Here
403
          },
675
          },
404
          "default": {
676
          "default": {
405
            "description": "Association not found"
677
            "description": "Association not found"
678
          },
679
          "400": {
680
            "description": "Invalid Request",
681
            "content": {
682
              "application/json": {
683
                "schema": {
684
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
685
                }
686
              },
687
              "application/x-yaml": {
688
                "schema": {
689
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
690
                }
691
              }
692
            }
693
          },
694
          "500": {
695
            "description": "Internal Error",
696
            "content": {
697
              "application/json": {
698
                "schema": {
699
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
700
                }
701
              },
702
              "application/x-yaml": {
703
                "schema": {
704
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
705
                }
706
              }
707
            }
406
          }
708
          }
407
        },
709
        },
408
        "summary": "Get association info"
710
        "summary": "Get association info"
Lines 476-481 Link Here
476
          },
778
          },
477
          "default": {
779
          "default": {
478
            "description": "Association not found or unable to delete association"
780
            "description": "Association not found or unable to delete association"
781
          },
782
          "400": {
783
            "description": "Invalid Request",
784
            "content": {
785
              "application/json": {
786
                "schema": {
787
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
788
                }
789
              },
790
              "application/x-yaml": {
791
                "schema": {
792
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
793
                }
794
              }
795
            }
796
          },
797
          "500": {
798
            "description": "Internal Error",
799
            "content": {
800
              "application/json": {
801
                "schema": {
802
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
803
                }
804
              },
805
              "application/x-yaml": {
806
                "schema": {
807
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
808
                }
809
              }
810
            }
479
          }
811
          }
480
        },
812
        },
481
        "summary": "Delete association"
813
        "summary": "Delete association"
Lines 506-511 Link Here
506
          },
838
          },
507
          "default": {
839
          "default": {
508
            "description": "User not found or unable to delete user"
840
            "description": "User not found or unable to delete user"
841
          },
842
          "400": {
843
            "description": "Invalid Request",
844
            "content": {
845
              "application/json": {
846
                "schema": {
847
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
848
                }
849
              },
850
              "application/x-yaml": {
851
                "schema": {
852
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
853
                }
854
              }
855
            }
856
          },
857
          "500": {
858
            "description": "Internal Error",
859
            "content": {
860
              "application/json": {
861
                "schema": {
862
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
863
                }
864
              },
865
              "application/x-yaml": {
866
                "schema": {
867
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
868
                }
869
              }
870
            }
509
          }
871
          }
510
        },
872
        },
511
        "parameters": [
873
        "parameters": [
Lines 546-551 Link Here
546
          },
908
          },
547
          "default": {
909
          "default": {
548
            "description": "User not found"
910
            "description": "User not found"
911
          },
912
          "400": {
913
            "description": "Invalid Request",
914
            "content": {
915
              "application/json": {
916
                "schema": {
917
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
918
                }
919
              },
920
              "application/x-yaml": {
921
                "schema": {
922
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
923
                }
924
              }
925
            }
926
          },
927
          "500": {
928
            "description": "Internal Error",
929
            "content": {
930
              "application/json": {
931
                "schema": {
932
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
933
                }
934
              },
935
              "application/x-yaml": {
936
                "schema": {
937
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
938
                }
939
              }
940
            }
549
          }
941
          }
550
        },
942
        },
551
        "parameters": [
943
        "parameters": [
Lines 588-594 Link Here
588
          },
980
          },
589
          "default": {
981
          "default": {
590
            "description": "User not found or not able to update user"
982
            "description": "User not found or not able to update user"
983
          },
984
          "400": {
985
            "description": "Invalid Request",
986
            "content": {
987
              "application/json": {
988
                "schema": {
989
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
990
                }
991
              },
992
              "application/x-yaml": {
993
                "schema": {
994
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
995
                }
996
              }
997
            }
998
          },
999
          "500": {
1000
            "description": "Internal Error",
1001
            "content": {
1002
              "application/json": {
1003
                "schema": {
1004
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1005
                }
1006
              },
1007
              "application/x-yaml": {
1008
                "schema": {
1009
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1010
                }
1011
              }
1012
            }
591
          }
1013
          }
1014
        },
1015
        "requestBody": {
1016
          "description": "update user",
1017
          "content": {
1018
            "application/json": {
1019
              "schema": {
1020
                "$ref": "#/components/schemas/dbv0.0.36_update_users"
1021
              }
1022
            },
1023
            "application/x-yaml": {
1024
              "schema": {
1025
                "$ref": "#/components/schemas/dbv0.0.36_update_users"
1026
              }
1027
            }
1028
          },
1029
          "required": true
592
        }
1030
        }
593
      },
1031
      },
594
      "get": {
1032
      "get": {
Lines 615-620 Link Here
615
          },
1053
          },
616
          "default": {
1054
          "default": {
617
            "description": "User not found"
1055
            "description": "User not found"
1056
          },
1057
          "400": {
1058
            "description": "Invalid Request",
1059
            "content": {
1060
              "application/json": {
1061
                "schema": {
1062
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1063
                }
1064
              },
1065
              "application/x-yaml": {
1066
                "schema": {
1067
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1068
                }
1069
              }
1070
            }
1071
          },
1072
          "500": {
1073
            "description": "Internal Error",
1074
            "content": {
1075
              "application/json": {
1076
                "schema": {
1077
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1078
                }
1079
              },
1080
              "application/x-yaml": {
1081
                "schema": {
1082
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1083
                }
1084
              }
1085
            }
618
          }
1086
          }
619
        }
1087
        }
620
      }
1088
      }
Lines 644-649 Link Here
644
          },
1112
          },
645
          "default": {
1113
          "default": {
646
            "description": "Cluster not found or unable to delete cluster"
1114
            "description": "Cluster not found or unable to delete cluster"
1115
          },
1116
          "400": {
1117
            "description": "Invalid Request",
1118
            "content": {
1119
              "application/json": {
1120
                "schema": {
1121
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1122
                }
1123
              },
1124
              "application/x-yaml": {
1125
                "schema": {
1126
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1127
                }
1128
              }
1129
            }
1130
          },
1131
          "500": {
1132
            "description": "Internal Error",
1133
            "content": {
1134
              "application/json": {
1135
                "schema": {
1136
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1137
                }
1138
              },
1139
              "application/x-yaml": {
1140
                "schema": {
1141
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1142
                }
1143
              }
1144
            }
647
          }
1145
          }
648
        },
1146
        },
649
        "parameters": [
1147
        "parameters": [
Lines 684-689 Link Here
684
          },
1182
          },
685
          "default": {
1183
          "default": {
686
            "description": "Cluster not found"
1184
            "description": "Cluster not found"
1185
          },
1186
          "400": {
1187
            "description": "Invalid Request",
1188
            "content": {
1189
              "application/json": {
1190
                "schema": {
1191
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1192
                }
1193
              },
1194
              "application/x-yaml": {
1195
                "schema": {
1196
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1197
                }
1198
              }
1199
            }
1200
          },
1201
          "500": {
1202
            "description": "Internal Error",
1203
            "content": {
1204
              "application/json": {
1205
                "schema": {
1206
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1207
                }
1208
              },
1209
              "application/x-yaml": {
1210
                "schema": {
1211
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1212
                }
1213
              }
1214
            }
687
          }
1215
          }
688
        },
1216
        },
689
        "parameters": [
1217
        "parameters": [
Lines 725-730 Link Here
725
          },
1253
          },
726
          "default": {
1254
          "default": {
727
            "description": "Cluster not found"
1255
            "description": "Cluster not found"
1256
          },
1257
          "400": {
1258
            "description": "Invalid Request",
1259
            "content": {
1260
              "application/json": {
1261
                "schema": {
1262
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1263
                }
1264
              },
1265
              "application/x-yaml": {
1266
                "schema": {
1267
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1268
                }
1269
              }
1270
            }
1271
          },
1272
          "500": {
1273
            "description": "Internal Error",
1274
            "content": {
1275
              "application/json": {
1276
                "schema": {
1277
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1278
                }
1279
              },
1280
              "application/x-yaml": {
1281
                "schema": {
1282
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1283
                }
1284
              }
1285
            }
728
          }
1286
          }
729
        },
1287
        },
730
        "summary": "Get cluster list"
1288
        "summary": "Get cluster list"
Lines 752-757 Link Here
752
          },
1310
          },
753
          "default": {
1311
          "default": {
754
            "description": "Unable to add cluster"
1312
            "description": "Unable to add cluster"
1313
          },
1314
          "400": {
1315
            "description": "Invalid Request",
1316
            "content": {
1317
              "application/json": {
1318
                "schema": {
1319
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1320
                }
1321
              },
1322
              "application/x-yaml": {
1323
                "schema": {
1324
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1325
                }
1326
              }
1327
            }
1328
          },
1329
          "500": {
1330
            "description": "Internal Error",
1331
            "content": {
1332
              "application/json": {
1333
                "schema": {
1334
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1335
                }
1336
              },
1337
              "application/x-yaml": {
1338
                "schema": {
1339
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1340
                }
1341
              }
1342
            }
755
          }
1343
          }
756
        },
1344
        },
757
        "summary": "Add clusters"
1345
        "summary": "Add clusters"
Lines 782-787 Link Here
782
          },
1370
          },
783
          "default": {
1371
          "default": {
784
            "description": "wckey not found or unable to delete wckey"
1372
            "description": "wckey not found or unable to delete wckey"
1373
          },
1374
          "400": {
1375
            "description": "Invalid Request",
1376
            "content": {
1377
              "application/json": {
1378
                "schema": {
1379
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1380
                }
1381
              },
1382
              "application/x-yaml": {
1383
                "schema": {
1384
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1385
                }
1386
              }
1387
            }
1388
          },
1389
          "500": {
1390
            "description": "Internal Error",
1391
            "content": {
1392
              "application/json": {
1393
                "schema": {
1394
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1395
                }
1396
              },
1397
              "application/x-yaml": {
1398
                "schema": {
1399
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1400
                }
1401
              }
1402
            }
785
          }
1403
          }
786
        },
1404
        },
787
        "parameters": [
1405
        "parameters": [
Lines 822-827 Link Here
822
          },
1440
          },
823
          "default": {
1441
          "default": {
824
            "description": "wckey not found"
1442
            "description": "wckey not found"
1443
          },
1444
          "400": {
1445
            "description": "Invalid Request",
1446
            "content": {
1447
              "application/json": {
1448
                "schema": {
1449
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1450
                }
1451
              },
1452
              "application/x-yaml": {
1453
                "schema": {
1454
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1455
                }
1456
              }
1457
            }
1458
          },
1459
          "500": {
1460
            "description": "Internal Error",
1461
            "content": {
1462
              "application/json": {
1463
                "schema": {
1464
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1465
                }
1466
              },
1467
              "application/x-yaml": {
1468
                "schema": {
1469
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1470
                }
1471
              }
1472
            }
825
          }
1473
          }
826
        },
1474
        },
827
        "parameters": [
1475
        "parameters": [
Lines 835-852 Link Here
835
            "schema": {
1483
            "schema": {
836
              "type": "string"
1484
              "type": "string"
837
            }
1485
            }
838
          }
1486
          }
839
        ]
1487
        ]
840
      }
1488
      }
841
    },
1489
    },
842
    "/wckeys/": {
1490
    "/wckeys/": {
843
      "get": {
1491
      "get": {
844
        "tags": [
1492
        "tags": [
845
          "slurm"
1493
          "slurm"
846
        ],
1494
        ],
847
        "operationId": "slurmdbd_get_wckeys",
1495
        "operationId": "slurmdbd_get_wckeys",
848
        "responses": {
1496
        "responses": {
849
          "200": {
1497
          "200": {
1498
            "content": {
1499
              "application/json": {
1500
                "schema": {
1501
                  "$ref": "#/components/schemas/dbv0.0.36_wckey_info"
1502
                }
1503
              },
1504
              "application/x-yaml": {
1505
                "schema": {
1506
                  "$ref": "#/components/schemas/dbv0.0.36_wckey_info"
1507
                }
1508
              }
1509
            },
1510
            "description": "List of wckeys"
1511
          },
1512
          "default": {
1513
            "description": "wckey not found"
1514
          },
1515
          "400": {
1516
            "description": "Invalid Request",
1517
            "content": {
1518
              "application/json": {
1519
                "schema": {
1520
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1521
                }
1522
              },
1523
              "application/x-yaml": {
1524
                "schema": {
1525
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1526
                }
1527
              }
1528
            }
1529
          },
1530
          "500": {
1531
            "description": "List of wckeys",
850
            "content": {
1532
            "content": {
851
              "application/json": {
1533
              "application/json": {
852
                "schema": {
1534
                "schema": {
Lines 858-868 Link Here
858
                  "$ref": "#/components/schemas/dbv0.0.36_wckey_info"
1540
                  "$ref": "#/components/schemas/dbv0.0.36_wckey_info"
859
                }
1541
                }
860
              }
1542
              }
861
            },
1543
            }
862
            "description": "List of wckeys"
863
          },
864
          "default": {
865
            "description": "wckey not found"
866
          }
1544
          }
867
        },
1545
        },
868
        "summary": "Get wckey list"
1546
        "summary": "Get wckey list"
Lines 890-895 Link Here
890
          },
1568
          },
891
          "default": {
1569
          "default": {
892
            "description": "Unable to add wckey"
1570
            "description": "Unable to add wckey"
1571
          },
1572
          "400": {
1573
            "description": "Invalid Request",
1574
            "content": {
1575
              "application/json": {
1576
                "schema": {
1577
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1578
                }
1579
              },
1580
              "application/x-yaml": {
1581
                "schema": {
1582
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1583
                }
1584
              }
1585
            }
1586
          },
1587
          "500": {
1588
            "description": "Internal Error",
1589
            "content": {
1590
              "application/json": {
1591
                "schema": {
1592
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1593
                }
1594
              },
1595
              "application/x-yaml": {
1596
                "schema": {
1597
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1598
                }
1599
              }
1600
            }
893
          }
1601
          }
894
        },
1602
        },
895
        "summary": "Add wckeys"
1603
        "summary": "Add wckeys"
Lines 920-925 Link Here
920
          },
1628
          },
921
          "default": {
1629
          "default": {
922
            "description": "Unable to delete account"
1630
            "description": "Unable to delete account"
1631
          },
1632
          "400": {
1633
            "description": "Invalid Request",
1634
            "content": {
1635
              "application/json": {
1636
                "schema": {
1637
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1638
                }
1639
              },
1640
              "application/x-yaml": {
1641
                "schema": {
1642
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1643
                }
1644
              }
1645
            }
1646
          },
1647
          "500": {
1648
            "description": "Internal Error",
1649
            "content": {
1650
              "application/json": {
1651
                "schema": {
1652
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1653
                }
1654
              },
1655
              "application/x-yaml": {
1656
                "schema": {
1657
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1658
                }
1659
              }
1660
            }
923
          }
1661
          }
924
        },
1662
        },
925
        "parameters": [
1663
        "parameters": [
Lines 960-965 Link Here
960
          },
1698
          },
961
          "default": {
1699
          "default": {
962
            "description": "Account not found"
1700
            "description": "Account not found"
1701
          },
1702
          "400": {
1703
            "description": "Invalid Request",
1704
            "content": {
1705
              "application/json": {
1706
                "schema": {
1707
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1708
                }
1709
              },
1710
              "application/x-yaml": {
1711
                "schema": {
1712
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1713
                }
1714
              }
1715
            }
1716
          },
1717
          "500": {
1718
            "description": "Internal Error",
1719
            "content": {
1720
              "application/json": {
1721
                "schema": {
1722
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1723
                }
1724
              },
1725
              "application/x-yaml": {
1726
                "schema": {
1727
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1728
                }
1729
              }
1730
            }
963
          }
1731
          }
964
        },
1732
        },
965
        "parameters": [
1733
        "parameters": [
Lines 1001-1006 Link Here
1001
          },
1769
          },
1002
          "default": {
1770
          "default": {
1003
            "description": "Account not found"
1771
            "description": "Account not found"
1772
          },
1773
          "400": {
1774
            "description": "Invalid Request",
1775
            "content": {
1776
              "application/json": {
1777
                "schema": {
1778
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1779
                }
1780
              },
1781
              "application/x-yaml": {
1782
                "schema": {
1783
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1784
                }
1785
              }
1786
            }
1787
          },
1788
          "500": {
1789
            "description": "Internal Error",
1790
            "content": {
1791
              "application/json": {
1792
                "schema": {
1793
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1794
                }
1795
              },
1796
              "application/x-yaml": {
1797
                "schema": {
1798
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1799
                }
1800
              }
1801
            }
1004
          }
1802
          }
1005
        },
1803
        },
1006
        "summary": "Get account list"
1804
        "summary": "Get account list"
Lines 1028-1036 Link Here
1028
          },
1826
          },
1029
          "default": {
1827
          "default": {
1030
            "description": "Unable to add or update accounts"
1828
            "description": "Unable to add or update accounts"
1829
          },
1830
          "400": {
1831
            "description": "Invalid Request",
1832
            "content": {
1833
              "application/json": {
1834
                "schema": {
1835
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1836
                }
1837
              },
1838
              "application/x-yaml": {
1839
                "schema": {
1840
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1841
                }
1842
              }
1843
            }
1844
          },
1845
          "500": {
1846
            "description": "Internal Error",
1847
            "content": {
1848
              "application/json": {
1849
                "schema": {
1850
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1851
                }
1852
              },
1853
              "application/x-yaml": {
1854
                "schema": {
1855
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
1856
                }
1857
              }
1858
            }
1031
          }
1859
          }
1032
        },
1860
        },
1033
        "summary": "Update accounts"
1861
        "summary": "Update accounts",
1862
        "requestBody": {
1863
          "description": "update/create accounts",
1864
          "content": {
1865
            "application/json": {
1866
              "schema": {
1867
                "$ref": "#/components/schemas/dbv0.0.36_update_account"
1868
              }
1869
            },
1870
            "application/x-yaml": {
1871
              "schema": {
1872
                "$ref": "#/components/schemas/dbv0.0.36_update_account"
1873
              }
1874
            }
1875
          },
1876
          "required": true
1877
        }
1034
      }
1878
      }
1035
    },
1879
    },
1036
    "/jobs/": {
1880
    "/jobs/": {
Lines 1334-1339 Link Here
1334
          },
2178
          },
1335
          "default": {
2179
          "default": {
1336
            "description": "Unable to query jobs"
2180
            "description": "Unable to query jobs"
2181
          },
2182
          "400": {
2183
            "description": "Invalid Request",
2184
            "content": {
2185
              "application/json": {
2186
                "schema": {
2187
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
2188
                }
2189
              },
2190
              "application/x-yaml": {
2191
                "schema": {
2192
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
2193
                }
2194
              }
2195
            }
2196
          },
2197
          "500": {
2198
            "description": "Internal Error",
2199
            "content": {
2200
              "application/json": {
2201
                "schema": {
2202
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
2203
                }
2204
              },
2205
              "application/x-yaml": {
2206
                "schema": {
2207
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
2208
                }
2209
              }
2210
            }
1337
          }
2211
          }
1338
        },
2212
        },
1339
        "summary": "Get job list"
2213
        "summary": "Get job list"
Lines 1363-1368 Link Here
1363
          },
2237
          },
1364
          "default": {
2238
          "default": {
1365
            "description": "Unable to query diagnostics"
2239
            "description": "Unable to query diagnostics"
2240
          },
2241
          "400": {
2242
            "description": "Invalid Request",
2243
            "content": {
2244
              "application/json": {
2245
                "schema": {
2246
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
2247
                }
2248
              },
2249
              "application/x-yaml": {
2250
                "schema": {
2251
                  "$ref": "#/components/schemas/dbv0.0.36_errors"
2252
                }
2253
              }
2254
            }
2255
          },
2256
          "500": {
2257
            "description": "Dictionary of statistics",
2258
            "content": {
2259
              "application/json": {
2260
                "schema": {
2261
                  "$ref": "#/components/schemas/dbv0.0.36_diag"
2262
                }
2263
              },
2264
              "application/x-yaml": {
2265
                "schema": {
2266
                  "$ref": "#/components/schemas/dbv0.0.36_diag"
2267
                }
2268
              }
2269
            }
1366
          }
2270
          }
1367
        },
2271
        },
1368
        "summary": "Get slurmdb diagnostics"
2272
        "summary": "Get slurmdb diagnostics"
Lines 1466-1567 Link Here
1466
              "$ref": "#/components/schemas/dbv0.0.36_error"
2370
              "$ref": "#/components/schemas/dbv0.0.36_error"
1467
            }
2371
            }
1468
          },
2372
          },
1469
          "time_start": {
2373
          "meta": {
1470
            "type": "integer",
2374
            "$ref": "#/components/schemas/dbv0.0.36_meta"
1471
            "description": "Unix timestamp of start time"
1472
          },
2375
          },
1473
          "rollups": {
2376
          "statistics": {
1474
            "type": "array",
2377
            "type": "object",
1475
            "items": {
2378
            "properties": {
1476
              "type": "object",
2379
              "users": {
1477
              "description": "Rollup statistics",
2380
                "type": "array",
1478
              "properties": {
2381
                "items": {
1479
                "type": {
1480
                  "type": "string",
1481
                  "description": "Type of rollup"
1482
                },
1483
                "last_run": {
1484
                  "type": "integer",
1485
                  "description": "Timestamp of last rollup"
1486
                },
1487
                "last_cycle": {
1488
                  "type": "integer",
1489
                  "description": "Timestamp of last cycle"
1490
                },
1491
                "max_cycle": {
1492
                  "type": "integer",
1493
                  "description": "Max time of all cycles"
1494
                },
1495
                "total_time": {
1496
                  "type": "integer",
1497
                  "description": "Total time (s) spent doing rollup"
1498
                },
1499
                "mean_cycles": {
1500
                  "type": "integer",
1501
                  "description": "Average time (s) of cycle"
1502
                }
1503
              }
1504
            }
1505
          },
1506
          "RPCs": {
1507
            "type": "array",
1508
            "items": {
1509
              "type": "object",
1510
              "description": "Statistics by RPC type",
1511
              "properties": {
1512
                "rpc": {
1513
                  "type": "string",
1514
                  "description": "RPC type"
1515
                },
1516
                "count": {
1517
                  "type": "integer",
1518
                  "description": "Number of RPCs"
1519
                },
1520
                "time": {
1521
                  "type": "object",
2382
                  "type": "object",
1522
                  "description": "Time values",
2383
                  "description": "Statistics by user RPCs",
1523
                  "properties": {
2384
                  "properties": {
1524
                    "average": {
2385
                    "user": {
2386
                      "type": "string",
2387
                      "description": "User name"
2388
                    },
2389
                    "count": {
1525
                      "type": "integer",
2390
                      "type": "integer",
1526
                      "description": "Average time spent processing this RPC type"
2391
                      "description": "Number of RPCs"
2392
                    },
2393
                    "time": {
2394
                      "type": "object",
2395
                      "description": "Time values",
2396
                      "properties": {
2397
                        "average": {
2398
                          "type": "integer",
2399
                          "description": "Average time spent processing each user RPC"
2400
                        },
2401
                        "total": {
2402
                          "type": "integer",
2403
                          "description": "Total time spent processing each user RPC"
2404
                        }
2405
                      }
2406
                    }
2407
                  }
2408
                }
2409
              },
2410
              "RPCs": {
2411
                "type": "array",
2412
                "items": {
2413
                  "type": "object",
2414
                  "description": "Statistics by RPC type",
2415
                  "properties": {
2416
                    "rpc": {
2417
                      "type": "string",
2418
                      "description": "RPC type"
1527
                    },
2419
                    },
1528
                    "total": {
2420
                    "count": {
1529
                      "type": "integer",
2421
                      "type": "integer",
1530
                      "description": "Total time spent processing this RPC type"
2422
                      "description": "Number of RPCs"
2423
                    },
2424
                    "time": {
2425
                      "type": "object",
2426
                      "description": "Time values",
2427
                      "properties": {
2428
                        "average": {
2429
                          "type": "integer",
2430
                          "description": "Average time spent processing this RPC type"
2431
                        },
2432
                        "total": {
2433
                          "type": "integer",
2434
                          "description": "Total time spent processing this RPC type"
2435
                        }
2436
                      }
1531
                    }
2437
                    }
1532
                  }
2438
                  }
1533
                }
2439
                }
1534
              }
2440
              },
1535
            }
2441
              "rollups": {
1536
          },
2442
                "type": "array",
1537
          "users": {
2443
                "items": {
1538
            "type": "array",
1539
            "items": {
1540
              "type": "object",
1541
              "description": "Statistics by user RPCs",
1542
              "properties": {
1543
                "user": {
1544
                  "type": "string",
1545
                  "description": "User name"
1546
                },
1547
                "count": {
1548
                  "type": "integer",
1549
                  "description": "Number of RPCs"
1550
                },
1551
                "time": {
1552
                  "type": "object",
2444
                  "type": "object",
1553
                  "description": "Time values",
2445
                  "description": "Rollup statistics",
1554
                  "properties": {
2446
                  "properties": {
1555
                    "average": {
2447
                    "type": {
2448
                      "type": "string",
2449
                      "description": "Type of rollup"
2450
                    },
2451
                    "last_run": {
2452
                      "type": "integer",
2453
                      "description": "Timestamp of last rollup"
2454
                    },
2455
                    "last_cycle": {
1556
                      "type": "integer",
2456
                      "type": "integer",
1557
                      "description": "Average time spent processing each user RPC"
2457
                      "description": "Timestamp of last cycle"
1558
                    },
2458
                    },
1559
                    "total": {
2459
                    "max_cycle": {
1560
                      "type": "integer",
2460
                      "type": "integer",
1561
                      "description": "Total time spent processing each user RPC"
2461
                      "description": "Max time of all cycles"
2462
                    },
2463
                    "total_time": {
2464
                      "type": "integer",
2465
                      "description": "Total time (s) spent doing rollup"
2466
                    },
2467
                    "mean_cycles": {
2468
                      "type": "integer",
2469
                      "description": "Average time (s) of cycle"
2470
                    },
2471
                    "total_cycles": {
2472
                      "type": "integer",
2473
                      "description": "magic value"
1562
                    }
2474
                    }
1563
                  }
2475
                  }
1564
                }
2476
                }
2477
              },
2478
              "time_start": {
2479
                "type": "integer",
2480
                "description": "Unix timestamp of start time"
1565
              }
2481
              }
1566
            }
2482
            }
1567
          }
2483
          }
Lines 1623-1628 Link Here
1623
            "items": {
2539
            "items": {
1624
              "$ref": "#/components/schemas/dbv0.0.36_account"
2540
              "$ref": "#/components/schemas/dbv0.0.36_account"
1625
            }
2541
            }
2542
          },
2543
          "meta": {
2544
            "$ref": "#/components/schemas/dbv0.0.36_meta"
1626
          }
2545
          }
1627
        }
2546
        }
1628
      },
2547
      },
Lines 1669-1674 Link Here
1669
            "items": {
2588
            "items": {
1670
              "$ref": "#/components/schemas/dbv0.0.36_error"
2589
              "$ref": "#/components/schemas/dbv0.0.36_error"
1671
            }
2590
            }
2591
          },
2592
          "meta": {
2593
            "$ref": "#/components/schemas/dbv0.0.36_meta"
2594
          },
2595
          "removed_associations": {
2596
            "type": "array",
2597
            "description": "the associations",
2598
            "items": {
2599
              "type": "string"
2600
            }
1672
          }
2601
          }
1673
        }
2602
        }
1674
      },
2603
      },
Lines 1700-1705 Link Here
1700
            "items": {
2629
            "items": {
1701
              "$ref": "#/components/schemas/dbv0.0.36_wckey"
2630
              "$ref": "#/components/schemas/dbv0.0.36_wckey"
1702
            }
2631
            }
2632
          },
2633
          "meta": {
2634
            "$ref": "#/components/schemas/dbv0.0.36_meta"
1703
          }
2635
          }
1704
        }
2636
        }
1705
      },
2637
      },
Lines 1766-1825 Link Here
1766
      },
2698
      },
1767
      "dbv0.0.36_cluster_info": {
2699
      "dbv0.0.36_cluster_info": {
1768
        "type": "object",
2700
        "type": "object",
1769
        "properties": {
2701
        "properties": {
1770
          "controller": {
2702
          "errors": {
1771
            "type": "object",
1772
            "description": "Information about controller",
1773
            "properties": {
1774
              "host": {
1775
                "type": "string",
1776
                "description": "Hostname"
1777
              },
1778
              "port": {
1779
                "type": "integer",
1780
                "description": "Port number"
1781
              }
1782
            }
1783
          },
1784
          "flags": {
1785
            "type": "array",
2703
            "type": "array",
1786
            "description": "List of properties of cluster",
2704
            "description": "Slurm errors",
1787
            "items": {
2705
            "items": {
1788
              "type": "string",
2706
              "$ref": "#/components/schemas/dbv0.0.36_error"
1789
              "description": "String of property name"
1790
            }
1791
          },
1792
          "name": {
1793
            "type": "string",
1794
            "description": "Cluster name"
1795
          },
1796
          "nodes": {
1797
            "type": "string",
1798
            "description": "Assigned nodes"
1799
          },
1800
          "select_plugin": {
1801
            "type": "string",
1802
            "description": "Configured select plugin"
1803
          },
1804
          "associations": {
1805
            "type": "object",
1806
            "description": "Information about associations",
1807
            "properties": {
1808
              "root": {
1809
                "$ref": "#/components/schemas/dbv0.0.36_association_short_info"
1810
              }
1811
            }
2707
            }
1812
          },
2708
          },
1813
          "rpc_version": {
2709
          "clusters": {
1814
            "type": "integer",
1815
            "description": "Number rpc version"
1816
          },
1817
          "tres": {
1818
            "type": "array",
2710
            "type": "array",
1819
            "description": "List of TRES in cluster",
1820
            "items": {
2711
            "items": {
1821
              "$ref": "#/components/schemas/dbv0.0.36_response_tres"
2712
              "$ref": "#/components/schemas/dbv0.0.36_cluster"
1822
            }
2713
            }
2714
          },
2715
          "meta": {
2716
            "$ref": "#/components/schemas/dbv0.0.36_meta"
1823
          }
2717
          }
1824
        }
2718
        }
1825
      },
2719
      },
Lines 1844-1849 Link Here
1844
            "items": {
2738
            "items": {
1845
              "$ref": "#/components/schemas/dbv0.0.36_error"
2739
              "$ref": "#/components/schemas/dbv0.0.36_error"
1846
            }
2740
            }
2741
          },
2742
          "meta": {
2743
            "$ref": "#/components/schemas/dbv0.0.36_meta"
1847
          }
2744
          }
1848
        }
2745
        }
1849
      },
2746
      },
Lines 1856-1867 Link Here
1856
            "description": "Description of administrator level"
2753
            "description": "Description of administrator level"
1857
          },
2754
          },
1858
          "associations": {
2755
          "associations": {
1859
            "type": "object",
2756
            "type": "array",
1860
            "description": "Assigned associations",
2757
            "description": "the associations",
1861
            "properties": {
2758
            "items": {
1862
              "root": {
2759
              "$ref": "#/components/schemas/dbv0.0.36_association_short_info"
1863
                "$ref": "#/components/schemas/dbv0.0.36_association_short_info"
1864
              }
1865
            }
2760
            }
1866
          },
2761
          },
1867
          "coordinators": {
2762
          "coordinators": {
Lines 1907-1912 Link Here
1907
            "items": {
2802
            "items": {
1908
              "$ref": "#/components/schemas/dbv0.0.36_user"
2803
              "$ref": "#/components/schemas/dbv0.0.36_user"
1909
            }
2804
            }
2805
          },
2806
          "meta": {
2807
            "$ref": "#/components/schemas/dbv0.0.36_meta"
1910
          }
2808
          }
1911
        }
2809
        }
1912
      },
2810
      },
Lines 1979-1984 Link Here
1979
                      "wall_clock": {
2877
                      "wall_clock": {
1980
                        "type": "integer",
2878
                        "type": "integer",
1981
                        "description": "Max wallclock per job"
2879
                        "description": "Max wallclock per job"
2880
                      },
2881
                      "accruing": {
2882
                        "type": "string"
2883
                      },
2884
                      "count": {
2885
                        "type": "integer"
2886
                      },
2887
                      "submitted": {
2888
                        "type": "string"
1982
                      }
2889
                      }
1983
                    }
2890
                    }
1984
                  }
2891
                  }
Lines 2076-2125 Link Here
2076
            "description": "Raw fairshare shares"
2983
            "description": "Raw fairshare shares"
2077
          },
2984
          },
2078
          "usage": {
2985
          "usage": {
2079
            "type": "object",
2986
            "oneOf": [
2080
            "description": "Association usage",
2987
              {
2081
            "properties": {
2988
                "type": "object",
2082
              "accrue_job_count": {
2989
                "description": "Association usage",
2083
                "type": "integer",
2990
                "properties": {
2084
                "description": "Jobs accuring priority"
2991
                  "accrue_job_count": {
2085
              },
2992
                    "type": "integer",
2086
              "group_used_wallclock": {
2993
                    "description": "Jobs accuring priority"
2087
                "type": "number",
2994
                  },
2088
                "description": "Group used wallclock time (s)"
2995
                  "group_used_wallclock": {
2089
              },
2996
                    "type": "number",
2090
              "fairshare_factor": {
2997
                    "description": "Group used wallclock time (s)"
2091
                "type": "number",
2998
                  },
2092
                "description": "Fairshare factor"
2999
                  "fairshare_factor": {
2093
              },
3000
                    "type": "number",
2094
              "fairshare_shares": {
3001
                    "description": "Fairshare factor"
2095
                "type": "integer",
3002
                  },
2096
                "description": "Fairshare shares"
3003
                  "fairshare_shares": {
2097
              },
3004
                    "type": "integer",
2098
              "normalized_priority": {
3005
                    "description": "Fairshare shares"
2099
                "type": "integer",
3006
                  },
2100
                "description": "Currently active jobs"
3007
                  "normalized_priority": {
2101
              },
3008
                    "type": "integer",
2102
              "normalized_shares": {
3009
                    "description": "Currently active jobs"
2103
                "type": "number",
3010
                  },
2104
                "description": "Normalized shares"
3011
                  "normalized_shares": {
2105
              },
3012
                    "type": "number",
2106
              "effective_normalized_usage": {
3013
                    "description": "Normalized shares"
2107
                "type": "number",
3014
                  },
2108
                "description": "Effective normalized usage"
3015
                  "effective_normalized_usage": {
2109
              },
3016
                    "type": "number",
2110
              "raw_usage": {
3017
                    "description": "Effective normalized usage"
2111
                "type": "integer",
3018
                  },
2112
                "description": "Raw usage"
3019
                  "raw_usage": {
2113
              },
3020
                    "type": "integer",
2114
              "job_count": {
3021
                    "description": "Raw usage"
2115
                "type": "integer",
3022
                  },
2116
                "description": "Total jobs submitted"
3023
                  "job_count": {
3024
                    "type": "integer",
3025
                    "description": "Total jobs submitted"
3026
                  },
3027
                  "fairshare_level": {
3028
                    "type": "number",
3029
                    "description": "Fairshare level"
3030
                  }
3031
                }
2117
              },
3032
              },
2118
              "fairshare_level": {
3033
              {
2119
                "type": "number",
3034
                "type": "null"
2120
                "description": "Fairshare level"
2121
              }
3035
              }
2122
            }
3036
            ]
2123
          },
3037
          },
2124
          "user": {
3038
          "user": {
2125
            "type": "string",
3039
            "type": "string",
Lines 2143-2148 Link Here
2143
            "items": {
3057
            "items": {
2144
              "$ref": "#/components/schemas/dbv0.0.36_association"
3058
              "$ref": "#/components/schemas/dbv0.0.36_association"
2145
            }
3059
            }
3060
          },
3061
          "meta": {
3062
            "$ref": "#/components/schemas/dbv0.0.36_meta"
2146
          }
3063
          }
2147
        }
3064
        }
2148
      },
3065
      },
Lines 2254-2259 Link Here
2254
                              },
3171
                              },
2255
                              "user": {
3172
                              "user": {
2256
                                "$ref": "#/components/schemas/dbv0.0.36_tres_list"
3173
                                "$ref": "#/components/schemas/dbv0.0.36_tres_list"
3174
                              },
3175
                              "qos": {
3176
                                "$ref": "#/components/schemas/dbv0.0.36_tres_list"
2257
                              }
3177
                              }
2258
                            }
3178
                            }
2259
                          }
3179
                          }
Lines 2276-2283 Link Here
2276
                            "$ref": "#/components/schemas/dbv0.0.36_tres_list"
3196
                            "$ref": "#/components/schemas/dbv0.0.36_tres_list"
2277
                          }
3197
                          }
2278
                        }
3198
                        }
3199
                      },
3200
                      "total": {
3201
                        "type": "integer"
2279
                      }
3202
                      }
2280
                    }
3203
                    }
3204
                  },
3205
                  "active_jobs": {
3206
                    "type": "integer"
2281
                  }
3207
                  }
2282
                }
3208
                }
2283
              },
3209
              },
Lines 2305-2310 Link Here
2305
                    }
3231
                    }
2306
                  }
3232
                  }
2307
                }
3233
                }
3234
              },
3235
              "grace_time": {
3236
                "type": "integer"
2308
              }
3237
              }
2309
            }
3238
            }
2310
          },
3239
          },
Lines 2345-2350 Link Here
2345
          "usage_threshold": {
3274
          "usage_threshold": {
2346
            "type": "number",
3275
            "type": "number",
2347
            "description": "Usage threshold"
3276
            "description": "Usage threshold"
3277
          },
3278
          "name": {
3279
            "type": "string"
2348
          }
3280
          }
2349
        }
3281
        }
2350
      },
3282
      },
Lines 2358-2364 Link Here
2358
              "$ref": "#/components/schemas/dbv0.0.36_error"
3290
              "$ref": "#/components/schemas/dbv0.0.36_error"
2359
            }
3291
            }
2360
          },
3292
          },
2361
          "qos": {
3293
          "meta": {
3294
            "$ref": "#/components/schemas/dbv0.0.36_meta"
3295
          },
3296
          "QOS": {
2362
            "type": "array",
3297
            "type": "array",
2363
            "description": "Array of QOS",
3298
            "description": "Array of QOS",
2364
            "items": {
3299
            "items": {
Lines 2401-2412 Link Here
2401
              "$ref": "#/components/schemas/dbv0.0.36_error"
3336
              "$ref": "#/components/schemas/dbv0.0.36_error"
2402
            }
3337
            }
2403
          },
3338
          },
2404
          "tres": {
3339
          "meta": {
2405
            "type": "array",
3340
            "$ref": "#/components/schemas/dbv0.0.36_meta"
2406
            "description": "Array of tres",
3341
          },
2407
            "items": {
3342
          "TRES": {
2408
              "$ref": "#/components/schemas/dbv0.0.36_tres_list"
3343
            "$ref": "#/components/schemas/dbv0.0.36_tres_list"
2409
            }
2410
          }
3344
          }
2411
        }
3345
        }
2412
      },
3346
      },
Lines 2451-2456 Link Here
2451
            "items": {
3385
            "items": {
2452
              "$ref": "#/components/schemas/dbv0.0.36_job"
3386
              "$ref": "#/components/schemas/dbv0.0.36_job"
2453
            }
3387
            }
3388
          },
3389
          "meta": {
3390
            "$ref": "#/components/schemas/dbv0.0.36_meta"
2454
          }
3391
          }
2455
        }
3392
        }
2456
      },
3393
      },
Lines 2634-2644 Link Here
2634
            "description": "Heterogeneous Job details (optional)",
3571
            "description": "Heterogeneous Job details (optional)",
2635
            "properties": {
3572
            "properties": {
2636
              "job_id": {
3573
              "job_id": {
2637
                "type": "object",
3574
                "type": "integer",
2638
                "description": "Parent HetJob id"
3575
                "description": "Parent HetJob id"
2639
              },
3576
              },
2640
              "job_offset": {
3577
              "job_offset": {
2641
                "type": "object",
3578
                "type": "integer",
2642
                "description": "Offset of this job to parent"
3579
                "description": "Offset of this job to parent"
2643
              }
3580
              }
2644
            }
3581
            }
Lines 2986-2999 Link Here
2986
            }
3923
            }
2987
          },
3924
          },
2988
          "task": {
3925
          "task": {
2989
            "type": "object",
3926
            "type": "string"
2990
            "description": "Task properties",
2991
            "properties": {
2992
              "distribution": {
2993
                "type": "string",
2994
                "description": "Task distribution type"
2995
              }
2996
            }
2997
          },
3927
          },
2998
          "tres": {
3928
          "tres": {
2999
            "type": "object",
3929
            "type": "object",
Lines 3039-3044 Link Here
3039
                "$ref": "#/components/schemas/dbv0.0.36_tres_list"
3969
                "$ref": "#/components/schemas/dbv0.0.36_tres_list"
3040
              }
3970
              }
3041
            }
3971
            }
3972
          },
3973
          "distribution": {
3974
            "type": "string"
3042
          }
3975
          }
3043
        }
3976
        }
3044
      },
3977
      },
Lines 3052-3064 Link Here
3052
              "$ref": "#/components/schemas/dbv0.0.36_error"
3985
              "$ref": "#/components/schemas/dbv0.0.36_error"
3053
            }
3986
            }
3054
          },
3987
          },
3055
          "tres": {
3056
            "type": "array",
3057
            "description": "Array of TRES",
3058
            "items": {
3059
              "$ref": "#/components/schemas/dbv0.0.36_tres_list"
3060
            }
3061
          },
3062
          "accounts": {
3988
          "accounts": {
3063
            "type": "array",
3989
            "type": "array",
3064
            "description": "Array of accounts",
3990
            "description": "Array of accounts",
Lines 3080-3097 Link Here
3080
              "$ref": "#/components/schemas/dbv0.0.36_user"
4006
              "$ref": "#/components/schemas/dbv0.0.36_user"
3081
            }
4007
            }
3082
          },
4008
          },
3083
          "qos": {
4009
          "wckeys": {
3084
            "type": "array",
4010
            "type": "array",
3085
            "description": "Array of qos",
4011
            "description": "Array of wckeys",
3086
            "items": {
4012
            "items": {
3087
              "$ref": "#/components/schemas/dbv0.0.36_qos"
4013
              "$ref": "#/components/schemas/dbv0.0.36_wckey"
3088
            }
4014
            }
3089
          },
4015
          },
3090
          "wckeys": {
4016
          "meta": {
4017
            "$ref": "#/components/schemas/dbv0.0.36_meta"
4018
          },
4019
          "clusters": {
3091
            "type": "array",
4020
            "type": "array",
3092
            "description": "Array of wckeys",
3093
            "items": {
4021
            "items": {
3094
              "$ref": "#/components/schemas/dbv0.0.36_wckey"
4022
              "$ref": "#/components/schemas/dbv0.0.36_cluster"
4023
            }
4024
          },
4025
          "TRES": {
4026
            "oneOf": [
4027
              {
4028
                "type": "array",
4029
                "description": "Array of TRES",
4030
                "items": {
4031
                  "$ref": "#/components/schemas/dbv0.0.36_tres_list"
4032
                }
4033
              },
4034
              {
4035
                "type": "null"
4036
              }
4037
            ]
4038
          },
4039
          "QOS": {
4040
            "type": "array",
4041
            "description": "Array of qos",
4042
            "items": {
4043
              "$ref": "#/components/schemas/dbv0.0.36_qos"
3095
            }
4044
            }
3096
          }
4045
          }
3097
        }
4046
        }
Lines 3105-3110 Link Here
3105
            "items": {
4054
            "items": {
3106
              "$ref": "#/components/schemas/dbv0.0.36_error"
4055
              "$ref": "#/components/schemas/dbv0.0.36_error"
3107
            }
4056
            }
4057
          },
4058
          "meta": {
4059
            "$ref": "#/components/schemas/dbv0.0.36_meta"
3108
          }
4060
          }
3109
        }
4061
        }
3110
      },
4062
      },
Lines 3129-3138 Link Here
3129
          "error": {
4081
          "error": {
3130
            "description": "Error message",
4082
            "description": "Error message",
3131
            "type": "string"
4083
            "type": "string"
4084
          },
4085
          "error_number": {
4086
            "type": "integer"
4087
          },
4088
          "source": {
4089
            "type": "string"
4090
          },
4091
          "error_code": {
4092
            "type": "integer"
4093
          },
4094
          "description": {
4095
            "type": "string"
3132
          }
4096
          }
3133
        },
4097
        },
3134
        "type": "object"
4098
        "type": "object"
4099
      },
4100
      "dbv0.0.36_meta": {
4101
        "type": "object",
4102
        "properties": {
4103
          "plugin": {
4104
            "type": "object",
4105
            "properties": {
4106
              "type": {
4107
                "type": "string",
4108
                "description": ""
4109
              },
4110
              "name": {
4111
                "type": "string",
4112
                "description": ""
4113
              }
4114
            }
4115
          },
4116
          "Slurm": {
4117
            "type": "object",
4118
            "description": "Slurm information",
4119
            "properties": {
4120
              "version": {
4121
                "type": "object",
4122
                "properties": {
4123
                  "major": {
4124
                    "type": "string",
4125
                    "description": ""
4126
                  },
4127
                  "micro": {
4128
                    "type": "string",
4129
                    "description": ""
4130
                  },
4131
                  "minor": {
4132
                    "type": "string",
4133
                    "description": ""
4134
                  }
4135
                }
4136
              },
4137
              "release": {
4138
                "type": "string",
4139
                "description": "version specifier"
4140
              }
4141
            }
4142
          }
4143
        }
4144
      },
4145
      "dbv0.0.36_errors": {
4146
        "properties": {
4147
          "meta": {
4148
            "$ref": "#/components/schemas/dbv0.0.36_meta"
4149
          },
4150
          "errors": {
4151
            "type": "array",
4152
            "description": "Slurm errors",
4153
            "items": {
4154
              "$ref": "#/components/schemas/dbv0.0.36_error"
4155
            }
4156
          }
4157
        }
4158
      },
4159
      "dbv0.0.36_update_users": {
4160
        "properties": {
4161
          "users": {
4162
            "type": "array",
4163
            "items": {
4164
              "$ref": "#/components/schemas/dbv0.0.36_user"
4165
            }
4166
          }
4167
        }
4168
      },
4169
      "dbv0.0.36_update_account": {
4170
        "properties": {
4171
          "accounts": {
4172
            "type": "array",
4173
            "items": {
4174
              "$ref": "#/components/schemas/dbv0.0.36_account"
4175
            }
4176
          }
4177
        }
4178
      },
4179
      "dbv0.0.36_cluster": {
4180
        "type": "object",
4181
        "properties": {
4182
          "controller": {
4183
            "type": "object",
4184
            "description": "Information about controller",
4185
            "properties": {
4186
              "host": {
4187
                "type": "string",
4188
                "description": "Hostname"
4189
              },
4190
              "port": {
4191
                "type": "integer",
4192
                "description": "Port number"
4193
              }
4194
            }
4195
          },
4196
          "flags": {
4197
            "type": "array",
4198
            "description": "List of properties of cluster",
4199
            "items": {
4200
              "type": "string",
4201
              "description": "String of property name"
4202
            }
4203
          },
4204
          "name": {
4205
            "type": "string",
4206
            "description": "Cluster name"
4207
          },
4208
          "nodes": {
4209
            "type": "string",
4210
            "description": "Assigned nodes"
4211
          },
4212
          "select_plugin": {
4213
            "type": "string",
4214
            "description": "Configured select plugin"
4215
          },
4216
          "associations": {
4217
            "type": "object",
4218
            "description": "Information about associations",
4219
            "properties": {
4220
              "root": {
4221
                "oneOf": [
4222
                  {
4223
                    "$ref": "#/components/schemas/dbv0.0.36_association_short_info"
4224
                  },
4225
                  {
4226
                    "type": "null"
4227
                  }
4228
                ]
4229
              }
4230
            }
4231
          },
4232
          "rpc_version": {
4233
            "type": "integer",
4234
            "description": "Number rpc version"
4235
          },
4236
          "tres": {
4237
            "$ref": "#/components/schemas/dbv0.0.36_tres_list"
4238
          }
4239
        }
3135
      }
4240
      }
3136
    }
4241
    }
3137
  }
4242
  }
3138
}
4243
}
(-)a/src/plugins/openapi/dbv0.0.37/openapi.json (-237 / +1372 lines)
Lines 32-38 Link Here
32
  ],
32
  ],
33
  "security": [
33
  "security": [
34
    {
34
    {
35
      "user": [],
35
      "user": []
36
    },
37
    {
36
      "token": []
38
      "token": []
37
    }
39
    }
38
  ],
40
  ],
Lines 77-82 Link Here
77
          },
79
          },
78
          "default": {
80
          "default": {
79
            "description": "Unable to find job"
81
            "description": "Unable to find job"
82
          },
83
          "400": {
84
            "description": "Invalid Request",
85
            "content": {
86
              "application/json": {
87
                "schema": {
88
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
89
                }
90
              },
91
              "application/x-yaml": {
92
                "schema": {
93
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
94
                }
95
              }
96
            }
97
          },
98
          "500": {
99
            "description": "Internal Error",
100
            "content": {
101
              "application/json": {
102
                "schema": {
103
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
104
                }
105
              },
106
              "application/x-yaml": {
107
                "schema": {
108
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
109
                }
110
              }
111
            }
80
          }
112
          }
81
        }
113
        }
82
      }
114
      }
Lines 106-111 Link Here
106
          },
138
          },
107
          "default": {
139
          "default": {
108
            "description": "Unable to dump config"
140
            "description": "Unable to dump config"
141
          },
142
          "400": {
143
            "description": "Invalid Request",
144
            "content": {
145
              "application/json": {
146
                "schema": {
147
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
148
                }
149
              },
150
              "application/x-yaml": {
151
                "schema": {
152
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
153
                }
154
              }
155
            }
156
          },
157
          "500": {
158
            "description": "Internal Error",
159
            "content": {
160
              "application/json": {
161
                "schema": {
162
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
163
                }
164
              },
165
              "application/x-yaml": {
166
                "schema": {
167
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
168
                }
169
              }
170
            }
109
          }
171
          }
110
        }
172
        }
111
      },
173
      },
Lines 133-138 Link Here
133
          },
195
          },
134
          "default": {
196
          "default": {
135
            "description": "Unable to set config"
197
            "description": "Unable to set config"
198
          },
199
          "400": {
200
            "description": "Invalid Request",
201
            "content": {
202
              "application/json": {
203
                "schema": {
204
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
205
                }
206
              },
207
              "application/x-yaml": {
208
                "schema": {
209
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
210
                }
211
              }
212
            }
213
          },
214
          "500": {
215
            "description": "Internal Error",
216
            "content": {
217
              "application/json": {
218
                "schema": {
219
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
220
                }
221
              },
222
              "application/x-yaml": {
223
                "schema": {
224
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
225
                }
226
              }
227
            }
136
          }
228
          }
137
        }
229
        }
138
      }
230
      }
Lines 161-166 Link Here
161
          },
253
          },
162
          "default": {
254
          "default": {
163
            "description": "Unable to update TRES"
255
            "description": "Unable to update TRES"
256
          },
257
          "400": {
258
            "description": "Invalid Request",
259
            "content": {
260
              "application/json": {
261
                "schema": {
262
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
263
                }
264
              },
265
              "application/x-yaml": {
266
                "schema": {
267
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
268
                }
269
              }
270
            }
271
          },
272
          "500": {
273
            "description": "Internal Error",
274
            "content": {
275
              "application/json": {
276
                "schema": {
277
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
278
                }
279
              },
280
              "application/x-yaml": {
281
                "schema": {
282
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
283
                }
284
              }
285
            }
164
          }
286
          }
165
        },
287
        },
166
        "summary": "Set TRES info"
288
        "summary": "Set TRES info"
Lines 188-193 Link Here
188
          },
310
          },
189
          "default": {
311
          "default": {
190
            "description": "Unable to retrieve TRES"
312
            "description": "Unable to retrieve TRES"
313
          },
314
          "400": {
315
            "description": "Invalid Request",
316
            "content": {
317
              "application/json": {
318
                "schema": {
319
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
320
                }
321
              },
322
              "application/x-yaml": {
323
                "schema": {
324
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
325
                }
326
              }
327
            }
328
          },
329
          "500": {
330
            "description": "Internal Error",
331
            "content": {
332
              "application/json": {
333
                "schema": {
334
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
335
                }
336
              },
337
              "application/x-yaml": {
338
                "schema": {
339
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
340
                }
341
              }
342
            }
191
          }
343
          }
192
        },
344
        },
193
        "summary": "Get TRES info"
345
        "summary": "Get TRES info"
Lines 218-223 Link Here
218
          },
370
          },
219
          "default": {
371
          "default": {
220
            "description": "Unable to delete QOS"
372
            "description": "Unable to delete QOS"
373
          },
374
          "400": {
375
            "description": "Invalid Request",
376
            "content": {
377
              "application/json": {
378
                "schema": {
379
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
380
                }
381
              },
382
              "application/x-yaml": {
383
                "schema": {
384
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
385
                }
386
              }
387
            }
388
          },
389
          "500": {
390
            "description": "Internal Error",
391
            "content": {
392
              "application/json": {
393
                "schema": {
394
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
395
                }
396
              },
397
              "application/x-yaml": {
398
                "schema": {
399
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
400
                }
401
              }
402
            }
221
          }
403
          }
222
        },
404
        },
223
        "parameters": [
405
        "parameters": [
Lines 258-263 Link Here
258
          },
440
          },
259
          "default": {
441
          "default": {
260
            "description": "QOS not found"
442
            "description": "QOS not found"
443
          },
444
          "400": {
445
            "description": "Invalid Request",
446
            "content": {
447
              "application/json": {
448
                "schema": {
449
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
450
                }
451
              },
452
              "application/x-yaml": {
453
                "schema": {
454
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
455
                }
456
              }
457
            }
458
          },
459
          "500": {
460
            "description": "Internal Error",
461
            "content": {
462
              "application/json": {
463
                "schema": {
464
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
465
                }
466
              },
467
              "application/x-yaml": {
468
                "schema": {
469
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
470
                }
471
              }
472
            }
261
          }
473
          }
262
        },
474
        },
263
        "parameters": [
475
        "parameters": [
Lines 299-304 Link Here
299
          },
511
          },
300
          "default": {
512
          "default": {
301
            "description": "QOS not found"
513
            "description": "QOS not found"
514
          },
515
          "400": {
516
            "description": "Invalid Request",
517
            "content": {
518
              "application/json": {
519
                "schema": {
520
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
521
                }
522
              },
523
              "application/x-yaml": {
524
                "schema": {
525
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
526
                }
527
              }
528
            }
529
          },
530
          "500": {
531
            "description": "Internal Error",
532
            "content": {
533
              "application/json": {
534
                "schema": {
535
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
536
                }
537
              },
538
              "application/x-yaml": {
539
                "schema": {
540
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
541
                }
542
              }
543
            }
302
          }
544
          }
303
        },
545
        },
304
        "summary": "Get QOS list"
546
        "summary": "Get QOS list"
Lines 328-333 Link Here
328
          },
570
          },
329
          "default": {
571
          "default": {
330
            "description": "Unable to update associations"
572
            "description": "Unable to update associations"
573
          },
574
          "400": {
575
            "description": "Invalid Request",
576
            "content": {
577
              "application/json": {
578
                "schema": {
579
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
580
                }
581
              },
582
              "application/x-yaml": {
583
                "schema": {
584
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
585
                }
586
              }
587
            }
588
          },
589
          "500": {
590
            "description": "Internal Error",
591
            "content": {
592
              "application/json": {
593
                "schema": {
594
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
595
                }
596
              },
597
              "application/x-yaml": {
598
                "schema": {
599
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
600
                }
601
              }
602
            }
331
          }
603
          }
332
        },
604
        },
333
        "summary": "Set associations info"
605
        "summary": "Set associations info"
Lines 355-360 Link Here
355
          },
627
          },
356
          "default": {
628
          "default": {
357
            "description": "Association not found"
629
            "description": "Association not found"
630
          },
631
          "400": {
632
            "description": "Invalid Request",
633
            "content": {
634
              "application/json": {
635
                "schema": {
636
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
637
                }
638
              },
639
              "application/x-yaml": {
640
                "schema": {
641
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
642
                }
643
              }
644
            }
645
          },
646
          "500": {
647
            "description": "Internal Error",
648
            "content": {
649
              "application/json": {
650
                "schema": {
651
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
652
                }
653
              },
654
              "application/x-yaml": {
655
                "schema": {
656
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
657
                }
658
              }
659
            }
358
          }
660
          }
359
        },
661
        },
360
        "summary": "Get association list"
662
        "summary": "Get association list"
Lines 430-435 Link Here
430
          },
732
          },
431
          "default": {
733
          "default": {
432
            "description": "Association not found"
734
            "description": "Association not found"
735
          },
736
          "400": {
737
            "description": "Invalid Request",
738
            "content": {
739
              "application/json": {
740
                "schema": {
741
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
742
                }
743
              },
744
              "application/x-yaml": {
745
                "schema": {
746
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
747
                }
748
              }
749
            }
750
          },
751
          "500": {
752
            "description": "Internal Error",
753
            "content": {
754
              "application/json": {
755
                "schema": {
756
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
757
                }
758
              },
759
              "application/x-yaml": {
760
                "schema": {
761
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
762
                }
763
              }
764
            }
433
          }
765
          }
434
        },
766
        },
435
        "summary": "Get association info"
767
        "summary": "Get association info"
Lines 503-520 Link Here
503
          },
835
          },
504
          "default": {
836
          "default": {
505
            "description": "Association not found or unable to delete association"
837
            "description": "Association not found or unable to delete association"
506
          }
838
          },
507
        },
839
          "400": {
508
        "summary": "Delete association"
840
            "description": "Invalid Request",
509
      }
841
            "content": {
510
    },
842
              "application/json": {
511
    "/user/{user_name}": {
843
                "schema": {
512
      "delete": {
844
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
513
        "tags": [
845
                }
514
          "slurm"
846
              },
515
        ],
847
              "application/x-yaml": {
516
        "summary": "Delete user",
848
                "schema": {
517
        "operationId": "slurmdbd_delete_user",
849
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
850
                }
851
              }
852
            }
853
          },
854
          "500": {
855
            "description": "Internal Error",
856
            "content": {
857
              "application/json": {
858
                "schema": {
859
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
860
                }
861
              },
862
              "application/x-yaml": {
863
                "schema": {
864
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
865
                }
866
              }
867
            }
868
          }
869
        },
870
        "summary": "Delete association"
871
      }
872
    },
873
    "/user/{user_name}": {
874
      "delete": {
875
        "tags": [
876
          "slurm"
877
        ],
878
        "summary": "Delete user",
879
        "operationId": "slurmdbd_delete_user",
518
        "responses": {
880
        "responses": {
519
          "200": {
881
          "200": {
520
            "content": {
882
            "content": {
Lines 533-538 Link Here
533
          },
895
          },
534
          "default": {
896
          "default": {
535
            "description": "User not found or unable to delete user"
897
            "description": "User not found or unable to delete user"
898
          },
899
          "400": {
900
            "description": "Invalid Request",
901
            "content": {
902
              "application/json": {
903
                "schema": {
904
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
905
                }
906
              },
907
              "application/x-yaml": {
908
                "schema": {
909
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
910
                }
911
              }
912
            }
913
          },
914
          "500": {
915
            "description": "Internal Error",
916
            "content": {
917
              "application/json": {
918
                "schema": {
919
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
920
                }
921
              },
922
              "application/x-yaml": {
923
                "schema": {
924
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
925
                }
926
              }
927
            }
536
          }
928
          }
537
        },
929
        },
538
        "parameters": [
930
        "parameters": [
Lines 573-578 Link Here
573
          },
965
          },
574
          "default": {
966
          "default": {
575
            "description": "User not found"
967
            "description": "User not found"
968
          },
969
          "400": {
970
            "description": "Invalid Request",
971
            "content": {
972
              "application/json": {
973
                "schema": {
974
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
975
                }
976
              },
977
              "application/x-yaml": {
978
                "schema": {
979
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
980
                }
981
              }
982
            }
983
          },
984
          "500": {
985
            "description": "Internal Error",
986
            "content": {
987
              "application/json": {
988
                "schema": {
989
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
990
                }
991
              },
992
              "application/x-yaml": {
993
                "schema": {
994
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
995
                }
996
              }
997
            }
576
          }
998
          }
577
        },
999
        },
578
        "parameters": [
1000
        "parameters": [
Lines 615-621 Link Here
615
          },
1037
          },
616
          "default": {
1038
          "default": {
617
            "description": "User not found or not able to update user"
1039
            "description": "User not found or not able to update user"
1040
          },
1041
          "400": {
1042
            "description": "Invalid Request",
1043
            "content": {
1044
              "application/json": {
1045
                "schema": {
1046
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1047
                }
1048
              },
1049
              "application/x-yaml": {
1050
                "schema": {
1051
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1052
                }
1053
              }
1054
            }
1055
          },
1056
          "500": {
1057
            "description": "Internal Error",
1058
            "content": {
1059
              "application/json": {
1060
                "schema": {
1061
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1062
                }
1063
              },
1064
              "application/x-yaml": {
1065
                "schema": {
1066
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1067
                }
1068
              }
1069
            }
618
          }
1070
          }
1071
        },
1072
        "requestBody": {
1073
          "description": "update user",
1074
          "content": {
1075
            "application/json": {
1076
              "schema": {
1077
                "$ref": "#/components/schemas/dbv0.0.37_update_users"
1078
              }
1079
            },
1080
            "application/x-yaml": {
1081
              "schema": {
1082
                "$ref": "#/components/schemas/dbv0.0.37_update_users"
1083
              }
1084
            }
1085
          },
1086
          "required": true
619
        }
1087
        }
620
      },
1088
      },
621
      "get": {
1089
      "get": {
Lines 642-647 Link Here
642
          },
1110
          },
643
          "default": {
1111
          "default": {
644
            "description": "User not found"
1112
            "description": "User not found"
1113
          },
1114
          "400": {
1115
            "description": "Invalid Request",
1116
            "content": {
1117
              "application/json": {
1118
                "schema": {
1119
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1120
                }
1121
              },
1122
              "application/x-yaml": {
1123
                "schema": {
1124
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1125
                }
1126
              }
1127
            }
1128
          },
1129
          "500": {
1130
            "description": "Internal Error",
1131
            "content": {
1132
              "application/json": {
1133
                "schema": {
1134
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1135
                }
1136
              },
1137
              "application/x-yaml": {
1138
                "schema": {
1139
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1140
                }
1141
              }
1142
            }
645
          }
1143
          }
646
        }
1144
        }
647
      }
1145
      }
Lines 671-676 Link Here
671
          },
1169
          },
672
          "default": {
1170
          "default": {
673
            "description": "Cluster not found or unable to delete cluster"
1171
            "description": "Cluster not found or unable to delete cluster"
1172
          },
1173
          "400": {
1174
            "description": "Invalid Request",
1175
            "content": {
1176
              "application/json": {
1177
                "schema": {
1178
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1179
                }
1180
              },
1181
              "application/x-yaml": {
1182
                "schema": {
1183
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1184
                }
1185
              }
1186
            }
1187
          },
1188
          "500": {
1189
            "description": "Internal Error",
1190
            "content": {
1191
              "application/json": {
1192
                "schema": {
1193
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1194
                }
1195
              },
1196
              "application/x-yaml": {
1197
                "schema": {
1198
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1199
                }
1200
              }
1201
            }
674
          }
1202
          }
675
        },
1203
        },
676
        "parameters": [
1204
        "parameters": [
Lines 711-716 Link Here
711
          },
1239
          },
712
          "default": {
1240
          "default": {
713
            "description": "Cluster not found"
1241
            "description": "Cluster not found"
1242
          },
1243
          "400": {
1244
            "description": "Invalid Request",
1245
            "content": {
1246
              "application/json": {
1247
                "schema": {
1248
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1249
                }
1250
              },
1251
              "application/x-yaml": {
1252
                "schema": {
1253
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1254
                }
1255
              }
1256
            }
1257
          },
1258
          "500": {
1259
            "description": "Internal Error",
1260
            "content": {
1261
              "application/json": {
1262
                "schema": {
1263
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1264
                }
1265
              },
1266
              "application/x-yaml": {
1267
                "schema": {
1268
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1269
                }
1270
              }
1271
            }
714
          }
1272
          }
715
        },
1273
        },
716
        "parameters": [
1274
        "parameters": [
Lines 752-757 Link Here
752
          },
1310
          },
753
          "default": {
1311
          "default": {
754
            "description": "Cluster not found"
1312
            "description": "Cluster not found"
1313
          },
1314
          "400": {
1315
            "description": "Invalid Request",
1316
            "content": {
1317
              "application/json": {
1318
                "schema": {
1319
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1320
                }
1321
              },
1322
              "application/x-yaml": {
1323
                "schema": {
1324
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1325
                }
1326
              }
1327
            }
1328
          },
1329
          "500": {
1330
            "description": "Internal Error",
1331
            "content": {
1332
              "application/json": {
1333
                "schema": {
1334
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1335
                }
1336
              },
1337
              "application/x-yaml": {
1338
                "schema": {
1339
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1340
                }
1341
              }
1342
            }
755
          }
1343
          }
756
        },
1344
        },
757
        "summary": "Get cluster list"
1345
        "summary": "Get cluster list"
Lines 779-784 Link Here
779
          },
1367
          },
780
          "default": {
1368
          "default": {
781
            "description": "Unable to add cluster"
1369
            "description": "Unable to add cluster"
1370
          },
1371
          "400": {
1372
            "description": "Invalid Request",
1373
            "content": {
1374
              "application/json": {
1375
                "schema": {
1376
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1377
                }
1378
              },
1379
              "application/x-yaml": {
1380
                "schema": {
1381
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1382
                }
1383
              }
1384
            }
1385
          },
1386
          "500": {
1387
            "description": "Internal Error",
1388
            "content": {
1389
              "application/json": {
1390
                "schema": {
1391
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1392
                }
1393
              },
1394
              "application/x-yaml": {
1395
                "schema": {
1396
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1397
                }
1398
              }
1399
            }
782
          }
1400
          }
783
        },
1401
        },
784
        "summary": "Add clusters"
1402
        "summary": "Add clusters"
Lines 809-814 Link Here
809
          },
1427
          },
810
          "default": {
1428
          "default": {
811
            "description": "wckey not found or unable to delete wckey"
1429
            "description": "wckey not found or unable to delete wckey"
1430
          },
1431
          "400": {
1432
            "description": "Invalid Request",
1433
            "content": {
1434
              "application/json": {
1435
                "schema": {
1436
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1437
                }
1438
              },
1439
              "application/x-yaml": {
1440
                "schema": {
1441
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1442
                }
1443
              }
1444
            }
1445
          },
1446
          "500": {
1447
            "description": "Internal Error",
1448
            "content": {
1449
              "application/json": {
1450
                "schema": {
1451
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1452
                }
1453
              },
1454
              "application/x-yaml": {
1455
                "schema": {
1456
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1457
                }
1458
              }
1459
            }
812
          }
1460
          }
813
        },
1461
        },
814
        "parameters": [
1462
        "parameters": [
Lines 849-854 Link Here
849
          },
1497
          },
850
          "default": {
1498
          "default": {
851
            "description": "wckey not found"
1499
            "description": "wckey not found"
1500
          },
1501
          "400": {
1502
            "description": "Invalid Request",
1503
            "content": {
1504
              "application/json": {
1505
                "schema": {
1506
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1507
                }
1508
              },
1509
              "application/x-yaml": {
1510
                "schema": {
1511
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1512
                }
1513
              }
1514
            }
1515
          },
1516
          "500": {
1517
            "description": "Internal Error",
1518
            "content": {
1519
              "application/json": {
1520
                "schema": {
1521
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1522
                }
1523
              },
1524
              "application/x-yaml": {
1525
                "schema": {
1526
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1527
                }
1528
              }
1529
            }
852
          }
1530
          }
853
        },
1531
        },
854
        "parameters": [
1532
        "parameters": [
Lines 862-879 Link Here
862
            "schema": {
1540
            "schema": {
863
              "type": "string"
1541
              "type": "string"
864
            }
1542
            }
865
          }
1543
          }
866
        ]
1544
        ]
867
      }
1545
      }
868
    },
1546
    },
869
    "/wckeys/": {
1547
    "/wckeys/": {
870
      "get": {
1548
      "get": {
871
        "tags": [
1549
        "tags": [
872
          "slurm"
1550
          "slurm"
873
        ],
1551
        ],
874
        "operationId": "slurmdbd_get_wckeys",
1552
        "operationId": "slurmdbd_get_wckeys",
875
        "responses": {
1553
        "responses": {
876
          "200": {
1554
          "200": {
1555
            "content": {
1556
              "application/json": {
1557
                "schema": {
1558
                  "$ref": "#/components/schemas/dbv0.0.37_wckey_info"
1559
                }
1560
              },
1561
              "application/x-yaml": {
1562
                "schema": {
1563
                  "$ref": "#/components/schemas/dbv0.0.37_wckey_info"
1564
                }
1565
              }
1566
            },
1567
            "description": "List of wckeys"
1568
          },
1569
          "default": {
1570
            "description": "wckey not found"
1571
          },
1572
          "400": {
1573
            "description": "Invalid Request",
1574
            "content": {
1575
              "application/json": {
1576
                "schema": {
1577
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1578
                }
1579
              },
1580
              "application/x-yaml": {
1581
                "schema": {
1582
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1583
                }
1584
              }
1585
            }
1586
          },
1587
          "500": {
1588
            "description": "List of wckeys",
877
            "content": {
1589
            "content": {
878
              "application/json": {
1590
              "application/json": {
879
                "schema": {
1591
                "schema": {
Lines 885-895 Link Here
885
                  "$ref": "#/components/schemas/dbv0.0.37_wckey_info"
1597
                  "$ref": "#/components/schemas/dbv0.0.37_wckey_info"
886
                }
1598
                }
887
              }
1599
              }
888
            },
1600
            }
889
            "description": "List of wckeys"
890
          },
891
          "default": {
892
            "description": "wckey not found"
893
          }
1601
          }
894
        },
1602
        },
895
        "summary": "Get wckey list"
1603
        "summary": "Get wckey list"
Lines 917-922 Link Here
917
          },
1625
          },
918
          "default": {
1626
          "default": {
919
            "description": "Unable to add wckey"
1627
            "description": "Unable to add wckey"
1628
          },
1629
          "400": {
1630
            "description": "Invalid Request",
1631
            "content": {
1632
              "application/json": {
1633
                "schema": {
1634
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1635
                }
1636
              },
1637
              "application/x-yaml": {
1638
                "schema": {
1639
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1640
                }
1641
              }
1642
            }
1643
          },
1644
          "500": {
1645
            "description": "Internal Error",
1646
            "content": {
1647
              "application/json": {
1648
                "schema": {
1649
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1650
                }
1651
              },
1652
              "application/x-yaml": {
1653
                "schema": {
1654
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1655
                }
1656
              }
1657
            }
920
          }
1658
          }
921
        },
1659
        },
922
        "summary": "Add wckeys"
1660
        "summary": "Add wckeys"
Lines 947-952 Link Here
947
          },
1685
          },
948
          "default": {
1686
          "default": {
949
            "description": "Unable to delete account"
1687
            "description": "Unable to delete account"
1688
          },
1689
          "400": {
1690
            "description": "Invalid Request",
1691
            "content": {
1692
              "application/json": {
1693
                "schema": {
1694
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1695
                }
1696
              },
1697
              "application/x-yaml": {
1698
                "schema": {
1699
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1700
                }
1701
              }
1702
            }
1703
          },
1704
          "500": {
1705
            "description": "Internal Error",
1706
            "content": {
1707
              "application/json": {
1708
                "schema": {
1709
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1710
                }
1711
              },
1712
              "application/x-yaml": {
1713
                "schema": {
1714
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1715
                }
1716
              }
1717
            }
950
          }
1718
          }
951
        },
1719
        },
952
        "parameters": [
1720
        "parameters": [
Lines 987-992 Link Here
987
          },
1755
          },
988
          "default": {
1756
          "default": {
989
            "description": "Account not found"
1757
            "description": "Account not found"
1758
          },
1759
          "400": {
1760
            "description": "Invalid Request",
1761
            "content": {
1762
              "application/json": {
1763
                "schema": {
1764
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1765
                }
1766
              },
1767
              "application/x-yaml": {
1768
                "schema": {
1769
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1770
                }
1771
              }
1772
            }
1773
          },
1774
          "500": {
1775
            "description": "Internal Error",
1776
            "content": {
1777
              "application/json": {
1778
                "schema": {
1779
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1780
                }
1781
              },
1782
              "application/x-yaml": {
1783
                "schema": {
1784
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1785
                }
1786
              }
1787
            }
990
          }
1788
          }
991
        },
1789
        },
992
        "parameters": [
1790
        "parameters": [
Lines 1028-1033 Link Here
1028
          },
1826
          },
1029
          "default": {
1827
          "default": {
1030
            "description": "Account not found"
1828
            "description": "Account not found"
1829
          },
1830
          "400": {
1831
            "description": "Invalid Request",
1832
            "content": {
1833
              "application/json": {
1834
                "schema": {
1835
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1836
                }
1837
              },
1838
              "application/x-yaml": {
1839
                "schema": {
1840
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1841
                }
1842
              }
1843
            }
1844
          },
1845
          "500": {
1846
            "description": "Internal Error",
1847
            "content": {
1848
              "application/json": {
1849
                "schema": {
1850
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1851
                }
1852
              },
1853
              "application/x-yaml": {
1854
                "schema": {
1855
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1856
                }
1857
              }
1858
            }
1031
          }
1859
          }
1032
        },
1860
        },
1033
        "summary": "Get account list"
1861
        "summary": "Get account list"
Lines 1055-1063 Link Here
1055
          },
1883
          },
1056
          "default": {
1884
          "default": {
1057
            "description": "Unable to add or update accounts"
1885
            "description": "Unable to add or update accounts"
1886
          },
1887
          "400": {
1888
            "description": "Invalid Request",
1889
            "content": {
1890
              "application/json": {
1891
                "schema": {
1892
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1893
                }
1894
              },
1895
              "application/x-yaml": {
1896
                "schema": {
1897
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1898
                }
1899
              }
1900
            }
1901
          },
1902
          "500": {
1903
            "description": "Internal Error",
1904
            "content": {
1905
              "application/json": {
1906
                "schema": {
1907
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1908
                }
1909
              },
1910
              "application/x-yaml": {
1911
                "schema": {
1912
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
1913
                }
1914
              }
1915
            }
1058
          }
1916
          }
1059
        },
1917
        },
1060
        "summary": "Update accounts"
1918
        "summary": "Update accounts",
1919
        "requestBody": {
1920
          "description": "update/create accounts",
1921
          "content": {
1922
            "application/json": {
1923
              "schema": {
1924
                "$ref": "#/components/schemas/dbv0.0.37_update_account"
1925
              }
1926
            },
1927
            "application/x-yaml": {
1928
              "schema": {
1929
                "$ref": "#/components/schemas/dbv0.0.37_update_account"
1930
              }
1931
            }
1932
          },
1933
          "required": true
1934
        }
1061
      }
1935
      }
1062
    },
1936
    },
1063
    "/jobs/": {
1937
    "/jobs/": {
Lines 1361-1366 Link Here
1361
          },
2235
          },
1362
          "default": {
2236
          "default": {
1363
            "description": "Unable to query jobs"
2237
            "description": "Unable to query jobs"
2238
          },
2239
          "400": {
2240
            "description": "Invalid Request",
2241
            "content": {
2242
              "application/json": {
2243
                "schema": {
2244
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
2245
                }
2246
              },
2247
              "application/x-yaml": {
2248
                "schema": {
2249
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
2250
                }
2251
              }
2252
            }
2253
          },
2254
          "500": {
2255
            "description": "Internal Error",
2256
            "content": {
2257
              "application/json": {
2258
                "schema": {
2259
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
2260
                }
2261
              },
2262
              "application/x-yaml": {
2263
                "schema": {
2264
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
2265
                }
2266
              }
2267
            }
1364
          }
2268
          }
1365
        },
2269
        },
1366
        "summary": "Get job list"
2270
        "summary": "Get job list"
Lines 1390-1395 Link Here
1390
          },
2294
          },
1391
          "default": {
2295
          "default": {
1392
            "description": "Unable to query diagnostics"
2296
            "description": "Unable to query diagnostics"
2297
          },
2298
          "400": {
2299
            "description": "Invalid Request",
2300
            "content": {
2301
              "application/json": {
2302
                "schema": {
2303
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
2304
                }
2305
              },
2306
              "application/x-yaml": {
2307
                "schema": {
2308
                  "$ref": "#/components/schemas/dbv0.0.37_errors"
2309
                }
2310
              }
2311
            }
2312
          },
2313
          "500": {
2314
            "description": "Dictionary of statistics",
2315
            "content": {
2316
              "application/json": {
2317
                "schema": {
2318
                  "$ref": "#/components/schemas/dbv0.0.37_diag"
2319
                }
2320
              },
2321
              "application/x-yaml": {
2322
                "schema": {
2323
                  "$ref": "#/components/schemas/dbv0.0.37_diag"
2324
                }
2325
              }
2326
            }
1393
          }
2327
          }
1394
        },
2328
        },
1395
        "summary": "Get slurmdb diagnostics"
2329
        "summary": "Get slurmdb diagnostics"
Lines 1493-1594 Link Here
1493
              "$ref": "#/components/schemas/dbv0.0.37_error"
2427
              "$ref": "#/components/schemas/dbv0.0.37_error"
1494
            }
2428
            }
1495
          },
2429
          },
1496
          "time_start": {
2430
          "meta": {
1497
            "type": "integer",
2431
            "$ref": "#/components/schemas/dbv0.0.37_meta"
1498
            "description": "Unix timestamp of start time"
1499
          },
2432
          },
1500
          "rollups": {
2433
          "statistics": {
1501
            "type": "array",
2434
            "type": "object",
1502
            "items": {
2435
            "properties": {
1503
              "type": "object",
2436
              "users": {
1504
              "description": "Rollup statistics",
2437
                "type": "array",
1505
              "properties": {
2438
                "items": {
1506
                "type": {
1507
                  "type": "string",
1508
                  "description": "Type of rollup"
1509
                },
1510
                "last_run": {
1511
                  "type": "integer",
1512
                  "description": "Timestamp of last rollup"
1513
                },
1514
                "last_cycle": {
1515
                  "type": "integer",
1516
                  "description": "Timestamp of last cycle"
1517
                },
1518
                "max_cycle": {
1519
                  "type": "integer",
1520
                  "description": "Max time of all cycles"
1521
                },
1522
                "total_time": {
1523
                  "type": "integer",
1524
                  "description": "Total time (s) spent doing rollup"
1525
                },
1526
                "mean_cycles": {
1527
                  "type": "integer",
1528
                  "description": "Average time (s) of cycle"
1529
                }
1530
              }
1531
            }
1532
          },
1533
          "RPCs": {
1534
            "type": "array",
1535
            "items": {
1536
              "type": "object",
1537
              "description": "Statistics by RPC type",
1538
              "properties": {
1539
                "rpc": {
1540
                  "type": "string",
1541
                  "description": "RPC type"
1542
                },
1543
                "count": {
1544
                  "type": "integer",
1545
                  "description": "Number of RPCs"
1546
                },
1547
                "time": {
1548
                  "type": "object",
2439
                  "type": "object",
1549
                  "description": "Time values",
2440
                  "description": "Statistics by user RPCs",
1550
                  "properties": {
2441
                  "properties": {
1551
                    "average": {
2442
                    "user": {
2443
                      "type": "string",
2444
                      "description": "User name"
2445
                    },
2446
                    "count": {
1552
                      "type": "integer",
2447
                      "type": "integer",
1553
                      "description": "Average time spent processing this RPC type"
2448
                      "description": "Number of RPCs"
2449
                    },
2450
                    "time": {
2451
                      "type": "object",
2452
                      "description": "Time values",
2453
                      "properties": {
2454
                        "average": {
2455
                          "type": "integer",
2456
                          "description": "Average time spent processing each user RPC"
2457
                        },
2458
                        "total": {
2459
                          "type": "integer",
2460
                          "description": "Total time spent processing each user RPC"
2461
                        }
2462
                      }
2463
                    }
2464
                  }
2465
                }
2466
              },
2467
              "RPCs": {
2468
                "type": "array",
2469
                "items": {
2470
                  "type": "object",
2471
                  "description": "Statistics by RPC type",
2472
                  "properties": {
2473
                    "rpc": {
2474
                      "type": "string",
2475
                      "description": "RPC type"
1554
                    },
2476
                    },
1555
                    "total": {
2477
                    "count": {
1556
                      "type": "integer",
2478
                      "type": "integer",
1557
                      "description": "Total time spent processing this RPC type"
2479
                      "description": "Number of RPCs"
2480
                    },
2481
                    "time": {
2482
                      "type": "object",
2483
                      "description": "Time values",
2484
                      "properties": {
2485
                        "average": {
2486
                          "type": "integer",
2487
                          "description": "Average time spent processing this RPC type"
2488
                        },
2489
                        "total": {
2490
                          "type": "integer",
2491
                          "description": "Total time spent processing this RPC type"
2492
                        }
2493
                      }
1558
                    }
2494
                    }
1559
                  }
2495
                  }
1560
                }
2496
                }
1561
              }
2497
              },
1562
            }
2498
              "rollups": {
1563
          },
2499
                "type": "array",
1564
          "users": {
2500
                "items": {
1565
            "type": "array",
1566
            "items": {
1567
              "type": "object",
1568
              "description": "Statistics by user RPCs",
1569
              "properties": {
1570
                "user": {
1571
                  "type": "string",
1572
                  "description": "User name"
1573
                },
1574
                "count": {
1575
                  "type": "integer",
1576
                  "description": "Number of RPCs"
1577
                },
1578
                "time": {
1579
                  "type": "object",
2501
                  "type": "object",
1580
                  "description": "Time values",
2502
                  "description": "Rollup statistics",
1581
                  "properties": {
2503
                  "properties": {
1582
                    "average": {
2504
                    "type": {
2505
                      "type": "string",
2506
                      "description": "Type of rollup"
2507
                    },
2508
                    "last_run": {
2509
                      "type": "integer",
2510
                      "description": "Timestamp of last rollup"
2511
                    },
2512
                    "last_cycle": {
2513
                      "type": "integer",
2514
                      "description": "Timestamp of last cycle"
2515
                    },
2516
                    "max_cycle": {
2517
                      "type": "integer",
2518
                      "description": "Max time of all cycles"
2519
                    },
2520
                    "total_time": {
2521
                      "type": "integer",
2522
                      "description": "Total time (s) spent doing rollup"
2523
                    },
2524
                    "mean_cycles": {
1583
                      "type": "integer",
2525
                      "type": "integer",
1584
                      "description": "Average time spent processing each user RPC"
2526
                      "description": "Average time (s) of cycle"
1585
                    },
2527
                    },
1586
                    "total": {
2528
                    "total_cycles": {
1587
                      "type": "integer",
2529
                      "type": "integer",
1588
                      "description": "Total time spent processing each user RPC"
2530
                      "description": "magic value"
1589
                    }
2531
                    }
1590
                  }
2532
                  }
1591
                }
2533
                }
2534
              },
2535
              "time_start": {
2536
                "type": "integer",
2537
                "description": "Unix timestamp of start time"
1592
              }
2538
              }
1593
            }
2539
            }
1594
          }
2540
          }
Lines 1650-1655 Link Here
1650
            "items": {
2596
            "items": {
1651
              "$ref": "#/components/schemas/dbv0.0.37_account"
2597
              "$ref": "#/components/schemas/dbv0.0.37_account"
1652
            }
2598
            }
2599
          },
2600
          "meta": {
2601
            "$ref": "#/components/schemas/dbv0.0.37_meta"
1653
          }
2602
          }
1654
        }
2603
        }
1655
      },
2604
      },
Lines 1696-1701 Link Here
1696
            "items": {
2645
            "items": {
1697
              "$ref": "#/components/schemas/dbv0.0.37_error"
2646
              "$ref": "#/components/schemas/dbv0.0.37_error"
1698
            }
2647
            }
2648
          },
2649
          "meta": {
2650
            "$ref": "#/components/schemas/dbv0.0.37_meta"
2651
          },
2652
          "removed_associations": {
2653
            "type": "array",
2654
            "description": "the associations",
2655
            "items": {
2656
              "type": "string"
2657
            }
1699
          }
2658
          }
1700
        }
2659
        }
1701
      },
2660
      },
Lines 1727-1732 Link Here
1727
            "items": {
2686
            "items": {
1728
              "$ref": "#/components/schemas/dbv0.0.37_wckey"
2687
              "$ref": "#/components/schemas/dbv0.0.37_wckey"
1729
            }
2688
            }
2689
          },
2690
          "meta": {
2691
            "$ref": "#/components/schemas/dbv0.0.37_meta"
1730
          }
2692
          }
1731
        }
2693
        }
1732
      },
2694
      },
Lines 1792-1852 Link Here
1792
        }
2754
        }
1793
      },
2755
      },
1794
      "dbv0.0.37_cluster_info": {
2756
      "dbv0.0.37_cluster_info": {
1795
        "type": "object",
2757
        "type": "object",
1796
        "properties": {
2758
        "properties": {
1797
          "controller": {
2759
          "errors": {
1798
            "type": "object",
1799
            "description": "Information about controller",
1800
            "properties": {
1801
              "host": {
1802
                "type": "string",
1803
                "description": "Hostname"
1804
              },
1805
              "port": {
1806
                "type": "integer",
1807
                "description": "Port number"
1808
              }
1809
            }
1810
          },
1811
          "flags": {
1812
            "type": "array",
2760
            "type": "array",
1813
            "description": "List of properties of cluster",
2761
            "description": "Slurm errors",
1814
            "items": {
2762
            "items": {
1815
              "type": "string",
2763
              "$ref": "#/components/schemas/dbv0.0.37_error"
1816
              "description": "String of property name"
1817
            }
1818
          },
1819
          "name": {
1820
            "type": "string",
1821
            "description": "Cluster name"
1822
          },
1823
          "nodes": {
1824
            "type": "string",
1825
            "description": "Assigned nodes"
1826
          },
1827
          "select_plugin": {
1828
            "type": "string",
1829
            "description": "Configured select plugin"
1830
          },
1831
          "associations": {
1832
            "type": "object",
1833
            "description": "Information about associations",
1834
            "properties": {
1835
              "root": {
1836
                "$ref": "#/components/schemas/dbv0.0.37_association_short_info"
1837
              }
1838
            }
2764
            }
1839
          },
2765
          },
1840
          "rpc_version": {
2766
          "clusters": {
1841
            "type": "integer",
1842
            "description": "Number rpc version"
1843
          },
1844
          "tres": {
1845
            "type": "array",
2767
            "type": "array",
1846
            "description": "List of TRES in cluster",
1847
            "items": {
2768
            "items": {
1848
              "$ref": "#/components/schemas/dbv0.0.37_response_tres"
2769
              "$ref": "#/components/schemas/dbv0.0.37_cluster"
1849
            }
2770
            }
2771
          },
2772
          "meta": {
2773
            "$ref": "#/components/schemas/dbv0.0.37_meta"
1850
          }
2774
          }
1851
        }
2775
        }
1852
      },
2776
      },
Lines 1871-1876 Link Here
1871
            "items": {
2795
            "items": {
1872
              "$ref": "#/components/schemas/dbv0.0.37_error"
2796
              "$ref": "#/components/schemas/dbv0.0.37_error"
1873
            }
2797
            }
2798
          },
2799
          "meta": {
2800
            "$ref": "#/components/schemas/dbv0.0.37_meta"
1874
          }
2801
          }
1875
        }
2802
        }
1876
      },
2803
      },
Lines 1883-1894 Link Here
1883
            "description": "Description of administrator level"
2810
            "description": "Description of administrator level"
1884
          },
2811
          },
1885
          "associations": {
2812
          "associations": {
1886
            "type": "object",
2813
            "type": "array",
1887
            "description": "Assigned associations",
2814
            "description": "the associations",
1888
            "properties": {
2815
            "items": {
1889
              "root": {
2816
              "$ref": "#/components/schemas/dbv0.0.37_association_short_info"
1890
                "$ref": "#/components/schemas/dbv0.0.37_association_short_info"
1891
              }
1892
            }
2817
            }
1893
          },
2818
          },
1894
          "coordinators": {
2819
          "coordinators": {
Lines 1934-1939 Link Here
1934
            "items": {
2859
            "items": {
1935
              "$ref": "#/components/schemas/dbv0.0.37_user"
2860
              "$ref": "#/components/schemas/dbv0.0.37_user"
1936
            }
2861
            }
2862
          },
2863
          "meta": {
2864
            "$ref": "#/components/schemas/dbv0.0.37_meta"
1937
          }
2865
          }
1938
        }
2866
        }
1939
      },
2867
      },
Lines 2006-2011 Link Here
2006
                      "wall_clock": {
2934
                      "wall_clock": {
2007
                        "type": "integer",
2935
                        "type": "integer",
2008
                        "description": "Max wallclock per job"
2936
                        "description": "Max wallclock per job"
2937
                      },
2938
                      "accruing": {
2939
                        "type": "string"
2940
                      },
2941
                      "count": {
2942
                        "type": "integer"
2943
                      },
2944
                      "submitted": {
2945
                        "type": "string"
2009
                      }
2946
                      }
2010
                    }
2947
                    }
2011
                  }
2948
                  }
Lines 2103-2152 Link Here
2103
            "description": "Raw fairshare shares"
3040
            "description": "Raw fairshare shares"
2104
          },
3041
          },
2105
          "usage": {
3042
          "usage": {
2106
            "type": "object",
3043
            "oneOf": [
2107
            "description": "Association usage",
3044
              {
2108
            "properties": {
3045
                "type": "object",
2109
              "accrue_job_count": {
3046
                "description": "Association usage",
2110
                "type": "integer",
3047
                "properties": {
2111
                "description": "Jobs accuring priority"
3048
                  "accrue_job_count": {
2112
              },
3049
                    "type": "integer",
2113
              "group_used_wallclock": {
3050
                    "description": "Jobs accuring priority"
2114
                "type": "number",
3051
                  },
2115
                "description": "Group used wallclock time (s)"
3052
                  "group_used_wallclock": {
2116
              },
3053
                    "type": "number",
2117
              "fairshare_factor": {
3054
                    "description": "Group used wallclock time (s)"
2118
                "type": "number",
3055
                  },
2119
                "description": "Fairshare factor"
3056
                  "fairshare_factor": {
2120
              },
3057
                    "type": "number",
2121
              "fairshare_shares": {
3058
                    "description": "Fairshare factor"
2122
                "type": "integer",
3059
                  },
2123
                "description": "Fairshare shares"
3060
                  "fairshare_shares": {
2124
              },
3061
                    "type": "integer",
2125
              "normalized_priority": {
3062
                    "description": "Fairshare shares"
2126
                "type": "integer",
3063
                  },
2127
                "description": "Currently active jobs"
3064
                  "normalized_priority": {
2128
              },
3065
                    "type": "integer",
2129
              "normalized_shares": {
3066
                    "description": "Currently active jobs"
2130
                "type": "number",
3067
                  },
2131
                "description": "Normalized shares"
3068
                  "normalized_shares": {
2132
              },
3069
                    "type": "number",
2133
              "effective_normalized_usage": {
3070
                    "description": "Normalized shares"
2134
                "type": "number",
3071
                  },
2135
                "description": "Effective normalized usage"
3072
                  "effective_normalized_usage": {
2136
              },
3073
                    "type": "number",
2137
              "raw_usage": {
3074
                    "description": "Effective normalized usage"
2138
                "type": "integer",
3075
                  },
2139
                "description": "Raw usage"
3076
                  "raw_usage": {
2140
              },
3077
                    "type": "integer",
2141
              "job_count": {
3078
                    "description": "Raw usage"
2142
                "type": "integer",
3079
                  },
2143
                "description": "Total jobs submitted"
3080
                  "job_count": {
3081
                    "type": "integer",
3082
                    "description": "Total jobs submitted"
3083
                  },
3084
                  "fairshare_level": {
3085
                    "type": "number",
3086
                    "description": "Fairshare level"
3087
                  }
3088
                }
2144
              },
3089
              },
2145
              "fairshare_level": {
3090
              {
2146
                "type": "number",
3091
                "type": "null"
2147
                "description": "Fairshare level"
2148
              }
3092
              }
2149
            }
3093
            ]
2150
          },
3094
          },
2151
          "user": {
3095
          "user": {
2152
            "type": "string",
3096
            "type": "string",
Lines 2170-2175 Link Here
2170
            "items": {
3114
            "items": {
2171
              "$ref": "#/components/schemas/dbv0.0.37_association"
3115
              "$ref": "#/components/schemas/dbv0.0.37_association"
2172
            }
3116
            }
3117
          },
3118
          "meta": {
3119
            "$ref": "#/components/schemas/dbv0.0.37_meta"
2173
          }
3120
          }
2174
        }
3121
        }
2175
      },
3122
      },
Lines 2281-2286 Link Here
2281
                              },
3228
                              },
2282
                              "user": {
3229
                              "user": {
2283
                                "$ref": "#/components/schemas/dbv0.0.37_tres_list"
3230
                                "$ref": "#/components/schemas/dbv0.0.37_tres_list"
3231
                              },
3232
                              "qos": {
3233
                                "$ref": "#/components/schemas/dbv0.0.36_tres_list"
2284
                              }
3234
                              }
2285
                            }
3235
                            }
2286
                          }
3236
                          }
Lines 2303-2310 Link Here
2303
                            "$ref": "#/components/schemas/dbv0.0.37_tres_list"
3253
                            "$ref": "#/components/schemas/dbv0.0.37_tres_list"
2304
                          }
3254
                          }
2305
                        }
3255
                        }
3256
                      },
3257
                      "total": {
3258
                        "type": "integer"
2306
                      }
3259
                      }
2307
                    }
3260
                    }
3261
                  },
3262
                  "active_jobs": {
3263
                    "type": "integer"
2308
                  }
3264
                  }
2309
                }
3265
                }
2310
              },
3266
              },
Lines 2332-2337 Link Here
2332
                    }
3288
                    }
2333
                  }
3289
                  }
2334
                }
3290
                }
3291
              },
3292
              "grace_time": {
3293
                "type": "integer"
2335
              }
3294
              }
2336
            }
3295
            }
2337
          },
3296
          },
Lines 2372-2377 Link Here
2372
          "usage_threshold": {
3331
          "usage_threshold": {
2373
            "type": "number",
3332
            "type": "number",
2374
            "description": "Usage threshold"
3333
            "description": "Usage threshold"
3334
          },
3335
          "name": {
3336
            "type": "string"
2375
          }
3337
          }
2376
        }
3338
        }
2377
      },
3339
      },
Lines 2385-2391 Link Here
2385
              "$ref": "#/components/schemas/dbv0.0.37_error"
3347
              "$ref": "#/components/schemas/dbv0.0.37_error"
2386
            }
3348
            }
2387
          },
3349
          },
2388
          "qos": {
3350
          "meta": {
3351
            "$ref": "#/components/schemas/dbv0.0.37_meta"
3352
          },
3353
          "QOS": {
2389
            "type": "array",
3354
            "type": "array",
2390
            "description": "Array of QOS",
3355
            "description": "Array of QOS",
2391
            "items": {
3356
            "items": {
Lines 2440-2451 Link Here
2440
              "$ref": "#/components/schemas/dbv0.0.37_error"
3405
              "$ref": "#/components/schemas/dbv0.0.37_error"
2441
            }
3406
            }
2442
          },
3407
          },
2443
          "tres": {
3408
          "meta": {
2444
            "type": "array",
3409
            "$ref": "#/components/schemas/dbv0.0.37_meta"
2445
            "description": "Array of tres",
3410
          },
2446
            "items": {
3411
          "TRES": {
2447
              "$ref": "#/components/schemas/dbv0.0.37_tres_list"
3412
            "$ref": "#/components/schemas/dbv0.0.36_tres_list"
2448
            }
2449
          }
3413
          }
2450
        }
3414
        }
2451
      },
3415
      },
Lines 2490-2495 Link Here
2490
            "items": {
3454
            "items": {
2491
              "$ref": "#/components/schemas/dbv0.0.37_job"
3455
              "$ref": "#/components/schemas/dbv0.0.37_job"
2492
            }
3456
            }
3457
          },
3458
          "meta": {
3459
            "$ref": "#/components/schemas/dbv0.0.37_meta"
2493
          }
3460
          }
2494
        }
3461
        }
2495
      },
3462
      },
Lines 2673-2683 Link Here
2673
            "description": "Heterogeneous Job details (optional)",
3640
            "description": "Heterogeneous Job details (optional)",
2674
            "properties": {
3641
            "properties": {
2675
              "job_id": {
3642
              "job_id": {
2676
                "type": "object",
3643
                "type": "integer",
2677
                "description": "Parent HetJob id"
3644
                "description": "Parent HetJob id"
2678
              },
3645
              },
2679
              "job_offset": {
3646
              "job_offset": {
2680
                "type": "object",
3647
                "type": "integer",
2681
                "description": "Offset of this job to parent"
3648
                "description": "Offset of this job to parent"
2682
              }
3649
              }
2683
            }
3650
            }
Lines 3025-3038 Link Here
3025
            }
3992
            }
3026
          },
3993
          },
3027
          "task": {
3994
          "task": {
3028
            "type": "object",
3995
            "type": "string"
3029
            "description": "Task properties",
3030
            "properties": {
3031
              "distribution": {
3032
                "type": "string",
3033
                "description": "Task distribution type"
3034
              }
3035
            }
3036
          },
3996
          },
3037
          "tres": {
3997
          "tres": {
3038
            "type": "object",
3998
            "type": "object",
Lines 3078-3083 Link Here
3078
                "$ref": "#/components/schemas/dbv0.0.37_tres_list"
4038
                "$ref": "#/components/schemas/dbv0.0.37_tres_list"
3079
              }
4039
              }
3080
            }
4040
            }
4041
          },
4042
          "distribution": {
4043
            "type": "string"
3081
          }
4044
          }
3082
        }
4045
        }
3083
      },
4046
      },
Lines 3091-3103 Link Here
3091
              "$ref": "#/components/schemas/dbv0.0.37_error"
4054
              "$ref": "#/components/schemas/dbv0.0.37_error"
3092
            }
4055
            }
3093
          },
4056
          },
3094
          "tres": {
3095
            "type": "array",
3096
            "description": "Array of TRES",
3097
            "items": {
3098
              "$ref": "#/components/schemas/dbv0.0.37_tres_list"
3099
            }
3100
          },
3101
          "accounts": {
4057
          "accounts": {
3102
            "type": "array",
4058
            "type": "array",
3103
            "description": "Array of accounts",
4059
            "description": "Array of accounts",
Lines 3119-3136 Link Here
3119
              "$ref": "#/components/schemas/dbv0.0.37_user"
4075
              "$ref": "#/components/schemas/dbv0.0.37_user"
3120
            }
4076
            }
3121
          },
4077
          },
3122
          "qos": {
4078
          "wckeys": {
3123
            "type": "array",
4079
            "type": "array",
3124
            "description": "Array of qos",
4080
            "description": "Array of wckeys",
3125
            "items": {
4081
            "items": {
3126
              "$ref": "#/components/schemas/dbv0.0.37_qos"
4082
              "$ref": "#/components/schemas/dbv0.0.37_wckey"
3127
            }
4083
            }
3128
          },
4084
          },
3129
          "wckeys": {
4085
          "meta": {
4086
            "$ref": "#/components/schemas/dbv0.0.37_meta"
4087
          },
4088
          "clusters": {
3130
            "type": "array",
4089
            "type": "array",
3131
            "description": "Array of wckeys",
3132
            "items": {
4090
            "items": {
3133
              "$ref": "#/components/schemas/dbv0.0.37_wckey"
4091
              "$ref": "#/components/schemas/dbv0.0.37_cluster"
4092
            }
4093
          },
4094
          "TRES": {
4095
            "oneOf": [
4096
              {
4097
                "type": "array",
4098
                "description": "Array of TRES",
4099
                "items": {
4100
                  "$ref": "#/components/schemas/dbv0.0.37_tres_list"
4101
                }
4102
              },
4103
              {
4104
                "type": "null"
4105
              }
4106
            ]
4107
          },
4108
          "QOS": {
4109
            "type": "array",
4110
            "description": "Array of qos",
4111
            "items": {
4112
              "$ref": "#/components/schemas/dbv0.0.37_qos"
3134
            }
4113
            }
3135
          }
4114
          }
3136
        }
4115
        }
Lines 3144-3149 Link Here
3144
            "items": {
4123
            "items": {
3145
              "$ref": "#/components/schemas/dbv0.0.37_error"
4124
              "$ref": "#/components/schemas/dbv0.0.37_error"
3146
            }
4125
            }
4126
          },
4127
          "meta": {
4128
            "$ref": "#/components/schemas/dbv0.0.37_meta"
3147
          }
4129
          }
3148
        }
4130
        }
3149
      },
4131
      },
Lines 3168-3177 Link Here
3168
          "error": {
4150
          "error": {
3169
            "description": "Error message",
4151
            "description": "Error message",
3170
            "type": "string"
4152
            "type": "string"
4153
          },
4154
          "error_number": {
4155
            "type": "integer"
4156
          },
4157
          "source": {
4158
            "type": "string"
4159
          },
4160
          "error_code": {
4161
            "type": "integer"
4162
          },
4163
          "description": {
4164
            "type": "string"
3171
          }
4165
          }
3172
        },
4166
        },
3173
        "type": "object"
4167
        "type": "object"
4168
      },
4169
      "dbv0.0.37_meta": {
4170
        "type": "object",
4171
        "properties": {
4172
          "plugin": {
4173
            "type": "object",
4174
            "properties": {
4175
              "type": {
4176
                "type": "string",
4177
                "description": ""
4178
              },
4179
              "name": {
4180
                "type": "string",
4181
                "description": ""
4182
              }
4183
            }
4184
          },
4185
          "Slurm": {
4186
            "type": "object",
4187
            "description": "Slurm information",
4188
            "properties": {
4189
              "version": {
4190
                "type": "object",
4191
                "properties": {
4192
                  "major": {
4193
                    "type": "string",
4194
                    "description": ""
4195
                  },
4196
                  "micro": {
4197
                    "type": "string",
4198
                    "description": ""
4199
                  },
4200
                  "minor": {
4201
                    "type": "string",
4202
                    "description": ""
4203
                  }
4204
                }
4205
              },
4206
              "release": {
4207
                "type": "string",
4208
                "description": "version specifier"
4209
              }
4210
            }
4211
          }
4212
        }
4213
      },
4214
      "dbv0.0.37_errors": {
4215
        "properties": {
4216
          "meta": {
4217
            "$ref": "#/components/schemas/dbv0.0.37_meta"
4218
          },
4219
          "errors": {
4220
            "type": "array",
4221
            "description": "Slurm errors",
4222
            "items": {
4223
              "$ref": "#/components/schemas/dbv0.0.37_error"
4224
            }
4225
          }
4226
        }
4227
      },
4228
      "dbv0.0.37_update_users": {
4229
        "properties": {
4230
          "users": {
4231
            "type": "array",
4232
            "items": {
4233
              "$ref": "#/components/schemas/dbv0.0.37_user"
4234
            }
4235
          }
4236
        }
4237
      },
4238
      "dbv0.0.37_update_account": {
4239
        "properties": {
4240
          "accounts": {
4241
            "type": "array",
4242
            "items": {
4243
              "$ref": "#/components/schemas/dbv0.0.37_account"
4244
            }
4245
          }
4246
        }
4247
      },
4248
      "dbv0.0.37_cluster": {
4249
        "type": "object",
4250
        "properties": {
4251
          "controller": {
4252
            "type": "object",
4253
            "description": "Information about controller",
4254
            "properties": {
4255
              "host": {
4256
                "type": "string",
4257
                "description": "Hostname"
4258
              },
4259
              "port": {
4260
                "type": "integer",
4261
                "description": "Port number"
4262
              }
4263
            }
4264
          },
4265
          "flags": {
4266
            "type": "array",
4267
            "description": "List of properties of cluster",
4268
            "items": {
4269
              "type": "string",
4270
              "description": "String of property name"
4271
            }
4272
          },
4273
          "name": {
4274
            "type": "string",
4275
            "description": "Cluster name"
4276
          },
4277
          "nodes": {
4278
            "type": "string",
4279
            "description": "Assigned nodes"
4280
          },
4281
          "select_plugin": {
4282
            "type": "string",
4283
            "description": "Configured select plugin"
4284
          },
4285
          "associations": {
4286
            "type": "object",
4287
            "description": "Information about associations",
4288
            "properties": {
4289
              "root": {
4290
                "oneOf": [
4291
                  {
4292
                    "$ref": "#/components/schemas/dbv0.0.37_association_short_info"
4293
                  },
4294
                  {
4295
                    "type": "null"
4296
                  }
4297
                ]
4298
              }
4299
            }
4300
          },
4301
          "rpc_version": {
4302
            "type": "integer",
4303
            "description": "Number rpc version"
4304
          },
4305
          "tres": {
4306
            "$ref": "#/components/schemas/dbv0.0.36_tres_list"
4307
          }
4308
        }
3174
      }
4309
      }
3175
    }
4310
    }
3176
  }
4311
  }
3177
}
4312
}
(-)a/src/plugins/openapi/dbv0.0.38/openapi.json (-237 / +1372 lines)
Lines 32-38 Link Here
32
  ],
32
  ],
33
  "security": [
33
  "security": [
34
    {
34
    {
35
      "user": [],
35
      "user": []
36
    },
37
    {
36
      "token": []
38
      "token": []
37
    }
39
    }
38
  ],
40
  ],
Lines 77-82 Link Here
77
          },
79
          },
78
          "default": {
80
          "default": {
79
            "description": "Unable to find job"
81
            "description": "Unable to find job"
82
          },
83
          "400": {
84
            "description": "Invalid Request",
85
            "content": {
86
              "application/json": {
87
                "schema": {
88
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
89
                }
90
              },
91
              "application/x-yaml": {
92
                "schema": {
93
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
94
                }
95
              }
96
            }
97
          },
98
          "500": {
99
            "description": "Internal Error",
100
            "content": {
101
              "application/json": {
102
                "schema": {
103
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
104
                }
105
              },
106
              "application/x-yaml": {
107
                "schema": {
108
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
109
                }
110
              }
111
            }
80
          }
112
          }
81
        }
113
        }
82
      }
114
      }
Lines 106-111 Link Here
106
          },
138
          },
107
          "default": {
139
          "default": {
108
            "description": "Unable to dump config"
140
            "description": "Unable to dump config"
141
          },
142
          "400": {
143
            "description": "Invalid Request",
144
            "content": {
145
              "application/json": {
146
                "schema": {
147
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
148
                }
149
              },
150
              "application/x-yaml": {
151
                "schema": {
152
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
153
                }
154
              }
155
            }
156
          },
157
          "500": {
158
            "description": "Internal Error",
159
            "content": {
160
              "application/json": {
161
                "schema": {
162
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
163
                }
164
              },
165
              "application/x-yaml": {
166
                "schema": {
167
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
168
                }
169
              }
170
            }
109
          }
171
          }
110
        }
172
        }
111
      },
173
      },
Lines 133-138 Link Here
133
          },
195
          },
134
          "default": {
196
          "default": {
135
            "description": "Unable to set config"
197
            "description": "Unable to set config"
198
          },
199
          "400": {
200
            "description": "Invalid Request",
201
            "content": {
202
              "application/json": {
203
                "schema": {
204
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
205
                }
206
              },
207
              "application/x-yaml": {
208
                "schema": {
209
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
210
                }
211
              }
212
            }
213
          },
214
          "500": {
215
            "description": "Internal Error",
216
            "content": {
217
              "application/json": {
218
                "schema": {
219
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
220
                }
221
              },
222
              "application/x-yaml": {
223
                "schema": {
224
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
225
                }
226
              }
227
            }
136
          }
228
          }
137
        }
229
        }
138
      }
230
      }
Lines 161-166 Link Here
161
          },
253
          },
162
          "default": {
254
          "default": {
163
            "description": "Unable to update TRES"
255
            "description": "Unable to update TRES"
256
          },
257
          "400": {
258
            "description": "Invalid Request",
259
            "content": {
260
              "application/json": {
261
                "schema": {
262
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
263
                }
264
              },
265
              "application/x-yaml": {
266
                "schema": {
267
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
268
                }
269
              }
270
            }
271
          },
272
          "500": {
273
            "description": "Internal Error",
274
            "content": {
275
              "application/json": {
276
                "schema": {
277
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
278
                }
279
              },
280
              "application/x-yaml": {
281
                "schema": {
282
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
283
                }
284
              }
285
            }
164
          }
286
          }
165
        },
287
        },
166
        "summary": "Set TRES info"
288
        "summary": "Set TRES info"
Lines 188-193 Link Here
188
          },
310
          },
189
          "default": {
311
          "default": {
190
            "description": "Unable to retrieve TRES"
312
            "description": "Unable to retrieve TRES"
313
          },
314
          "400": {
315
            "description": "Invalid Request",
316
            "content": {
317
              "application/json": {
318
                "schema": {
319
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
320
                }
321
              },
322
              "application/x-yaml": {
323
                "schema": {
324
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
325
                }
326
              }
327
            }
328
          },
329
          "500": {
330
            "description": "Internal Error",
331
            "content": {
332
              "application/json": {
333
                "schema": {
334
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
335
                }
336
              },
337
              "application/x-yaml": {
338
                "schema": {
339
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
340
                }
341
              }
342
            }
191
          }
343
          }
192
        },
344
        },
193
        "summary": "Get TRES info"
345
        "summary": "Get TRES info"
Lines 218-223 Link Here
218
          },
370
          },
219
          "default": {
371
          "default": {
220
            "description": "Unable to delete QOS"
372
            "description": "Unable to delete QOS"
373
          },
374
          "400": {
375
            "description": "Invalid Request",
376
            "content": {
377
              "application/json": {
378
                "schema": {
379
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
380
                }
381
              },
382
              "application/x-yaml": {
383
                "schema": {
384
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
385
                }
386
              }
387
            }
388
          },
389
          "500": {
390
            "description": "Internal Error",
391
            "content": {
392
              "application/json": {
393
                "schema": {
394
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
395
                }
396
              },
397
              "application/x-yaml": {
398
                "schema": {
399
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
400
                }
401
              }
402
            }
221
          }
403
          }
222
        },
404
        },
223
        "parameters": [
405
        "parameters": [
Lines 258-263 Link Here
258
          },
440
          },
259
          "default": {
441
          "default": {
260
            "description": "QOS not found"
442
            "description": "QOS not found"
443
          },
444
          "400": {
445
            "description": "Invalid Request",
446
            "content": {
447
              "application/json": {
448
                "schema": {
449
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
450
                }
451
              },
452
              "application/x-yaml": {
453
                "schema": {
454
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
455
                }
456
              }
457
            }
458
          },
459
          "500": {
460
            "description": "Internal Error",
461
            "content": {
462
              "application/json": {
463
                "schema": {
464
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
465
                }
466
              },
467
              "application/x-yaml": {
468
                "schema": {
469
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
470
                }
471
              }
472
            }
261
          }
473
          }
262
        },
474
        },
263
        "parameters": [
475
        "parameters": [
Lines 299-304 Link Here
299
          },
511
          },
300
          "default": {
512
          "default": {
301
            "description": "QOS not found"
513
            "description": "QOS not found"
514
          },
515
          "400": {
516
            "description": "Invalid Request",
517
            "content": {
518
              "application/json": {
519
                "schema": {
520
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
521
                }
522
              },
523
              "application/x-yaml": {
524
                "schema": {
525
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
526
                }
527
              }
528
            }
529
          },
530
          "500": {
531
            "description": "Internal Error",
532
            "content": {
533
              "application/json": {
534
                "schema": {
535
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
536
                }
537
              },
538
              "application/x-yaml": {
539
                "schema": {
540
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
541
                }
542
              }
543
            }
302
          }
544
          }
303
        },
545
        },
304
        "summary": "Get QOS list"
546
        "summary": "Get QOS list"
Lines 328-333 Link Here
328
          },
570
          },
329
          "default": {
571
          "default": {
330
            "description": "Unable to update associations"
572
            "description": "Unable to update associations"
573
          },
574
          "400": {
575
            "description": "Invalid Request",
576
            "content": {
577
              "application/json": {
578
                "schema": {
579
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
580
                }
581
              },
582
              "application/x-yaml": {
583
                "schema": {
584
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
585
                }
586
              }
587
            }
588
          },
589
          "500": {
590
            "description": "Internal Error",
591
            "content": {
592
              "application/json": {
593
                "schema": {
594
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
595
                }
596
              },
597
              "application/x-yaml": {
598
                "schema": {
599
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
600
                }
601
              }
602
            }
331
          }
603
          }
332
        },
604
        },
333
        "summary": "Set associations info"
605
        "summary": "Set associations info"
Lines 355-360 Link Here
355
          },
627
          },
356
          "default": {
628
          "default": {
357
            "description": "Association not found"
629
            "description": "Association not found"
630
          },
631
          "400": {
632
            "description": "Invalid Request",
633
            "content": {
634
              "application/json": {
635
                "schema": {
636
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
637
                }
638
              },
639
              "application/x-yaml": {
640
                "schema": {
641
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
642
                }
643
              }
644
            }
645
          },
646
          "500": {
647
            "description": "Internal Error",
648
            "content": {
649
              "application/json": {
650
                "schema": {
651
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
652
                }
653
              },
654
              "application/x-yaml": {
655
                "schema": {
656
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
657
                }
658
              }
659
            }
358
          }
660
          }
359
        },
661
        },
360
        "summary": "Get association list"
662
        "summary": "Get association list"
Lines 430-435 Link Here
430
          },
732
          },
431
          "default": {
733
          "default": {
432
            "description": "Association not found"
734
            "description": "Association not found"
735
          },
736
          "400": {
737
            "description": "Invalid Request",
738
            "content": {
739
              "application/json": {
740
                "schema": {
741
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
742
                }
743
              },
744
              "application/x-yaml": {
745
                "schema": {
746
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
747
                }
748
              }
749
            }
750
          },
751
          "500": {
752
            "description": "Internal Error",
753
            "content": {
754
              "application/json": {
755
                "schema": {
756
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
757
                }
758
              },
759
              "application/x-yaml": {
760
                "schema": {
761
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
762
                }
763
              }
764
            }
433
          }
765
          }
434
        },
766
        },
435
        "summary": "Get association info"
767
        "summary": "Get association info"
Lines 503-520 Link Here
503
          },
835
          },
504
          "default": {
836
          "default": {
505
            "description": "Association not found or unable to delete association"
837
            "description": "Association not found or unable to delete association"
506
          }
838
          },
507
        },
839
          "400": {
508
        "summary": "Delete association"
840
            "description": "Invalid Request",
509
      }
841
            "content": {
510
    },
842
              "application/json": {
511
    "/user/{user_name}": {
843
                "schema": {
512
      "delete": {
844
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
513
        "tags": [
845
                }
514
          "slurm"
846
              },
515
        ],
847
              "application/x-yaml": {
516
        "summary": "Delete user",
848
                "schema": {
517
        "operationId": "slurmdbd_delete_user",
849
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
850
                }
851
              }
852
            }
853
          },
854
          "500": {
855
            "description": "Internal Error",
856
            "content": {
857
              "application/json": {
858
                "schema": {
859
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
860
                }
861
              },
862
              "application/x-yaml": {
863
                "schema": {
864
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
865
                }
866
              }
867
            }
868
          }
869
        },
870
        "summary": "Delete association"
871
      }
872
    },
873
    "/user/{user_name}": {
874
      "delete": {
875
        "tags": [
876
          "slurm"
877
        ],
878
        "summary": "Delete user",
879
        "operationId": "slurmdbd_delete_user",
518
        "responses": {
880
        "responses": {
519
          "200": {
881
          "200": {
520
            "content": {
882
            "content": {
Lines 533-538 Link Here
533
          },
895
          },
534
          "default": {
896
          "default": {
535
            "description": "User not found or unable to delete user"
897
            "description": "User not found or unable to delete user"
898
          },
899
          "400": {
900
            "description": "Invalid Request",
901
            "content": {
902
              "application/json": {
903
                "schema": {
904
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
905
                }
906
              },
907
              "application/x-yaml": {
908
                "schema": {
909
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
910
                }
911
              }
912
            }
913
          },
914
          "500": {
915
            "description": "Internal Error",
916
            "content": {
917
              "application/json": {
918
                "schema": {
919
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
920
                }
921
              },
922
              "application/x-yaml": {
923
                "schema": {
924
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
925
                }
926
              }
927
            }
536
          }
928
          }
537
        },
929
        },
538
        "parameters": [
930
        "parameters": [
Lines 573-578 Link Here
573
          },
965
          },
574
          "default": {
966
          "default": {
575
            "description": "User not found"
967
            "description": "User not found"
968
          },
969
          "400": {
970
            "description": "Invalid Request",
971
            "content": {
972
              "application/json": {
973
                "schema": {
974
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
975
                }
976
              },
977
              "application/x-yaml": {
978
                "schema": {
979
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
980
                }
981
              }
982
            }
983
          },
984
          "500": {
985
            "description": "Internal Error",
986
            "content": {
987
              "application/json": {
988
                "schema": {
989
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
990
                }
991
              },
992
              "application/x-yaml": {
993
                "schema": {
994
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
995
                }
996
              }
997
            }
576
          }
998
          }
577
        },
999
        },
578
        "parameters": [
1000
        "parameters": [
Lines 615-621 Link Here
615
          },
1037
          },
616
          "default": {
1038
          "default": {
617
            "description": "User not found or not able to update user"
1039
            "description": "User not found or not able to update user"
1040
          },
1041
          "400": {
1042
            "description": "Invalid Request",
1043
            "content": {
1044
              "application/json": {
1045
                "schema": {
1046
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1047
                }
1048
              },
1049
              "application/x-yaml": {
1050
                "schema": {
1051
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1052
                }
1053
              }
1054
            }
1055
          },
1056
          "500": {
1057
            "description": "Internal Error",
1058
            "content": {
1059
              "application/json": {
1060
                "schema": {
1061
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1062
                }
1063
              },
1064
              "application/x-yaml": {
1065
                "schema": {
1066
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1067
                }
1068
              }
1069
            }
618
          }
1070
          }
1071
        },
1072
        "requestBody": {
1073
          "description": "update user",
1074
          "content": {
1075
            "application/json": {
1076
              "schema": {
1077
                "$ref": "#/components/schemas/dbv0.0.38_update_users"
1078
              }
1079
            },
1080
            "application/x-yaml": {
1081
              "schema": {
1082
                "$ref": "#/components/schemas/dbv0.0.38_update_users"
1083
              }
1084
            }
1085
          },
1086
          "required": true
619
        }
1087
        }
620
      },
1088
      },
621
      "get": {
1089
      "get": {
Lines 642-647 Link Here
642
          },
1110
          },
643
          "default": {
1111
          "default": {
644
            "description": "User not found"
1112
            "description": "User not found"
1113
          },
1114
          "400": {
1115
            "description": "Invalid Request",
1116
            "content": {
1117
              "application/json": {
1118
                "schema": {
1119
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1120
                }
1121
              },
1122
              "application/x-yaml": {
1123
                "schema": {
1124
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1125
                }
1126
              }
1127
            }
1128
          },
1129
          "500": {
1130
            "description": "Internal Error",
1131
            "content": {
1132
              "application/json": {
1133
                "schema": {
1134
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1135
                }
1136
              },
1137
              "application/x-yaml": {
1138
                "schema": {
1139
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1140
                }
1141
              }
1142
            }
645
          }
1143
          }
646
        }
1144
        }
647
      }
1145
      }
Lines 671-676 Link Here
671
          },
1169
          },
672
          "default": {
1170
          "default": {
673
            "description": "Cluster not found or unable to delete cluster"
1171
            "description": "Cluster not found or unable to delete cluster"
1172
          },
1173
          "400": {
1174
            "description": "Invalid Request",
1175
            "content": {
1176
              "application/json": {
1177
                "schema": {
1178
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1179
                }
1180
              },
1181
              "application/x-yaml": {
1182
                "schema": {
1183
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1184
                }
1185
              }
1186
            }
1187
          },
1188
          "500": {
1189
            "description": "Internal Error",
1190
            "content": {
1191
              "application/json": {
1192
                "schema": {
1193
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1194
                }
1195
              },
1196
              "application/x-yaml": {
1197
                "schema": {
1198
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1199
                }
1200
              }
1201
            }
674
          }
1202
          }
675
        },
1203
        },
676
        "parameters": [
1204
        "parameters": [
Lines 711-716 Link Here
711
          },
1239
          },
712
          "default": {
1240
          "default": {
713
            "description": "Cluster not found"
1241
            "description": "Cluster not found"
1242
          },
1243
          "400": {
1244
            "description": "Invalid Request",
1245
            "content": {
1246
              "application/json": {
1247
                "schema": {
1248
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1249
                }
1250
              },
1251
              "application/x-yaml": {
1252
                "schema": {
1253
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1254
                }
1255
              }
1256
            }
1257
          },
1258
          "500": {
1259
            "description": "Internal Error",
1260
            "content": {
1261
              "application/json": {
1262
                "schema": {
1263
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1264
                }
1265
              },
1266
              "application/x-yaml": {
1267
                "schema": {
1268
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1269
                }
1270
              }
1271
            }
714
          }
1272
          }
715
        },
1273
        },
716
        "parameters": [
1274
        "parameters": [
Lines 752-757 Link Here
752
          },
1310
          },
753
          "default": {
1311
          "default": {
754
            "description": "Cluster not found"
1312
            "description": "Cluster not found"
1313
          },
1314
          "400": {
1315
            "description": "Invalid Request",
1316
            "content": {
1317
              "application/json": {
1318
                "schema": {
1319
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1320
                }
1321
              },
1322
              "application/x-yaml": {
1323
                "schema": {
1324
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1325
                }
1326
              }
1327
            }
1328
          },
1329
          "500": {
1330
            "description": "Internal Error",
1331
            "content": {
1332
              "application/json": {
1333
                "schema": {
1334
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1335
                }
1336
              },
1337
              "application/x-yaml": {
1338
                "schema": {
1339
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1340
                }
1341
              }
1342
            }
755
          }
1343
          }
756
        },
1344
        },
757
        "summary": "Get cluster list"
1345
        "summary": "Get cluster list"
Lines 779-784 Link Here
779
          },
1367
          },
780
          "default": {
1368
          "default": {
781
            "description": "Unable to add cluster"
1369
            "description": "Unable to add cluster"
1370
          },
1371
          "400": {
1372
            "description": "Invalid Request",
1373
            "content": {
1374
              "application/json": {
1375
                "schema": {
1376
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1377
                }
1378
              },
1379
              "application/x-yaml": {
1380
                "schema": {
1381
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1382
                }
1383
              }
1384
            }
1385
          },
1386
          "500": {
1387
            "description": "Internal Error",
1388
            "content": {
1389
              "application/json": {
1390
                "schema": {
1391
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1392
                }
1393
              },
1394
              "application/x-yaml": {
1395
                "schema": {
1396
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1397
                }
1398
              }
1399
            }
782
          }
1400
          }
783
        },
1401
        },
784
        "summary": "Add clusters"
1402
        "summary": "Add clusters"
Lines 809-814 Link Here
809
          },
1427
          },
810
          "default": {
1428
          "default": {
811
            "description": "wckey not found or unable to delete wckey"
1429
            "description": "wckey not found or unable to delete wckey"
1430
          },
1431
          "400": {
1432
            "description": "Invalid Request",
1433
            "content": {
1434
              "application/json": {
1435
                "schema": {
1436
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1437
                }
1438
              },
1439
              "application/x-yaml": {
1440
                "schema": {
1441
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1442
                }
1443
              }
1444
            }
1445
          },
1446
          "500": {
1447
            "description": "Internal Error",
1448
            "content": {
1449
              "application/json": {
1450
                "schema": {
1451
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1452
                }
1453
              },
1454
              "application/x-yaml": {
1455
                "schema": {
1456
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1457
                }
1458
              }
1459
            }
812
          }
1460
          }
813
        },
1461
        },
814
        "parameters": [
1462
        "parameters": [
Lines 849-854 Link Here
849
          },
1497
          },
850
          "default": {
1498
          "default": {
851
            "description": "wckey not found"
1499
            "description": "wckey not found"
1500
          },
1501
          "400": {
1502
            "description": "Invalid Request",
1503
            "content": {
1504
              "application/json": {
1505
                "schema": {
1506
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1507
                }
1508
              },
1509
              "application/x-yaml": {
1510
                "schema": {
1511
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1512
                }
1513
              }
1514
            }
1515
          },
1516
          "500": {
1517
            "description": "Internal Error",
1518
            "content": {
1519
              "application/json": {
1520
                "schema": {
1521
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1522
                }
1523
              },
1524
              "application/x-yaml": {
1525
                "schema": {
1526
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1527
                }
1528
              }
1529
            }
852
          }
1530
          }
853
        },
1531
        },
854
        "parameters": [
1532
        "parameters": [
Lines 862-879 Link Here
862
            "schema": {
1540
            "schema": {
863
              "type": "string"
1541
              "type": "string"
864
            }
1542
            }
865
          }
1543
          }
866
        ]
1544
        ]
867
      }
1545
      }
868
    },
1546
    },
869
    "/wckeys/": {
1547
    "/wckeys/": {
870
      "get": {
1548
      "get": {
871
        "tags": [
1549
        "tags": [
872
          "slurm"
1550
          "slurm"
873
        ],
1551
        ],
874
        "operationId": "slurmdbd_get_wckeys",
1552
        "operationId": "slurmdbd_get_wckeys",
875
        "responses": {
1553
        "responses": {
876
          "200": {
1554
          "200": {
1555
            "content": {
1556
              "application/json": {
1557
                "schema": {
1558
                  "$ref": "#/components/schemas/dbv0.0.38_wckey_info"
1559
                }
1560
              },
1561
              "application/x-yaml": {
1562
                "schema": {
1563
                  "$ref": "#/components/schemas/dbv0.0.38_wckey_info"
1564
                }
1565
              }
1566
            },
1567
            "description": "List of wckeys"
1568
          },
1569
          "default": {
1570
            "description": "wckey not found"
1571
          },
1572
          "400": {
1573
            "description": "Invalid Request",
1574
            "content": {
1575
              "application/json": {
1576
                "schema": {
1577
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1578
                }
1579
              },
1580
              "application/x-yaml": {
1581
                "schema": {
1582
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1583
                }
1584
              }
1585
            }
1586
          },
1587
          "500": {
1588
            "description": "List of wckeys",
877
            "content": {
1589
            "content": {
878
              "application/json": {
1590
              "application/json": {
879
                "schema": {
1591
                "schema": {
Lines 885-895 Link Here
885
                  "$ref": "#/components/schemas/dbv0.0.38_wckey_info"
1597
                  "$ref": "#/components/schemas/dbv0.0.38_wckey_info"
886
                }
1598
                }
887
              }
1599
              }
888
            },
1600
            }
889
            "description": "List of wckeys"
890
          },
891
          "default": {
892
            "description": "wckey not found"
893
          }
1601
          }
894
        },
1602
        },
895
        "summary": "Get wckey list"
1603
        "summary": "Get wckey list"
Lines 917-922 Link Here
917
          },
1625
          },
918
          "default": {
1626
          "default": {
919
            "description": "Unable to add wckey"
1627
            "description": "Unable to add wckey"
1628
          },
1629
          "400": {
1630
            "description": "Invalid Request",
1631
            "content": {
1632
              "application/json": {
1633
                "schema": {
1634
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1635
                }
1636
              },
1637
              "application/x-yaml": {
1638
                "schema": {
1639
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1640
                }
1641
              }
1642
            }
1643
          },
1644
          "500": {
1645
            "description": "Internal Error",
1646
            "content": {
1647
              "application/json": {
1648
                "schema": {
1649
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1650
                }
1651
              },
1652
              "application/x-yaml": {
1653
                "schema": {
1654
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1655
                }
1656
              }
1657
            }
920
          }
1658
          }
921
        },
1659
        },
922
        "summary": "Add wckeys"
1660
        "summary": "Add wckeys"
Lines 947-952 Link Here
947
          },
1685
          },
948
          "default": {
1686
          "default": {
949
            "description": "Unable to delete account"
1687
            "description": "Unable to delete account"
1688
          },
1689
          "400": {
1690
            "description": "Invalid Request",
1691
            "content": {
1692
              "application/json": {
1693
                "schema": {
1694
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1695
                }
1696
              },
1697
              "application/x-yaml": {
1698
                "schema": {
1699
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1700
                }
1701
              }
1702
            }
1703
          },
1704
          "500": {
1705
            "description": "Internal Error",
1706
            "content": {
1707
              "application/json": {
1708
                "schema": {
1709
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1710
                }
1711
              },
1712
              "application/x-yaml": {
1713
                "schema": {
1714
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1715
                }
1716
              }
1717
            }
950
          }
1718
          }
951
        },
1719
        },
952
        "parameters": [
1720
        "parameters": [
Lines 987-992 Link Here
987
          },
1755
          },
988
          "default": {
1756
          "default": {
989
            "description": "Account not found"
1757
            "description": "Account not found"
1758
          },
1759
          "400": {
1760
            "description": "Invalid Request",
1761
            "content": {
1762
              "application/json": {
1763
                "schema": {
1764
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1765
                }
1766
              },
1767
              "application/x-yaml": {
1768
                "schema": {
1769
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1770
                }
1771
              }
1772
            }
1773
          },
1774
          "500": {
1775
            "description": "Internal Error",
1776
            "content": {
1777
              "application/json": {
1778
                "schema": {
1779
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1780
                }
1781
              },
1782
              "application/x-yaml": {
1783
                "schema": {
1784
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1785
                }
1786
              }
1787
            }
990
          }
1788
          }
991
        },
1789
        },
992
        "parameters": [
1790
        "parameters": [
Lines 1028-1033 Link Here
1028
          },
1826
          },
1029
          "default": {
1827
          "default": {
1030
            "description": "Account not found"
1828
            "description": "Account not found"
1829
          },
1830
          "400": {
1831
            "description": "Invalid Request",
1832
            "content": {
1833
              "application/json": {
1834
                "schema": {
1835
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1836
                }
1837
              },
1838
              "application/x-yaml": {
1839
                "schema": {
1840
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1841
                }
1842
              }
1843
            }
1844
          },
1845
          "500": {
1846
            "description": "Internal Error",
1847
            "content": {
1848
              "application/json": {
1849
                "schema": {
1850
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1851
                }
1852
              },
1853
              "application/x-yaml": {
1854
                "schema": {
1855
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1856
                }
1857
              }
1858
            }
1031
          }
1859
          }
1032
        },
1860
        },
1033
        "summary": "Get account list"
1861
        "summary": "Get account list"
Lines 1055-1063 Link Here
1055
          },
1883
          },
1056
          "default": {
1884
          "default": {
1057
            "description": "Unable to add or update accounts"
1885
            "description": "Unable to add or update accounts"
1886
          },
1887
          "400": {
1888
            "description": "Invalid Request",
1889
            "content": {
1890
              "application/json": {
1891
                "schema": {
1892
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1893
                }
1894
              },
1895
              "application/x-yaml": {
1896
                "schema": {
1897
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1898
                }
1899
              }
1900
            }
1901
          },
1902
          "500": {
1903
            "description": "Internal Error",
1904
            "content": {
1905
              "application/json": {
1906
                "schema": {
1907
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1908
                }
1909
              },
1910
              "application/x-yaml": {
1911
                "schema": {
1912
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
1913
                }
1914
              }
1915
            }
1058
          }
1916
          }
1059
        },
1917
        },
1060
        "summary": "Update accounts"
1918
        "summary": "Update accounts",
1919
        "requestBody": {
1920
          "description": "update/create accounts",
1921
          "content": {
1922
            "application/json": {
1923
              "schema": {
1924
                "$ref": "#/components/schemas/dbv0.0.38_update_account"
1925
              }
1926
            },
1927
            "application/x-yaml": {
1928
              "schema": {
1929
                "$ref": "#/components/schemas/dbv0.0.38_update_account"
1930
              }
1931
            }
1932
          },
1933
          "required": true
1934
        }
1061
      }
1935
      }
1062
    },
1936
    },
1063
    "/jobs/": {
1937
    "/jobs/": {
Lines 1361-1366 Link Here
1361
          },
2235
          },
1362
          "default": {
2236
          "default": {
1363
            "description": "Unable to query jobs"
2237
            "description": "Unable to query jobs"
2238
          },
2239
          "400": {
2240
            "description": "Invalid Request",
2241
            "content": {
2242
              "application/json": {
2243
                "schema": {
2244
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
2245
                }
2246
              },
2247
              "application/x-yaml": {
2248
                "schema": {
2249
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
2250
                }
2251
              }
2252
            }
2253
          },
2254
          "500": {
2255
            "description": "Internal Error",
2256
            "content": {
2257
              "application/json": {
2258
                "schema": {
2259
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
2260
                }
2261
              },
2262
              "application/x-yaml": {
2263
                "schema": {
2264
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
2265
                }
2266
              }
2267
            }
1364
          }
2268
          }
1365
        },
2269
        },
1366
        "summary": "Get job list"
2270
        "summary": "Get job list"
Lines 1390-1395 Link Here
1390
          },
2294
          },
1391
          "default": {
2295
          "default": {
1392
            "description": "Unable to query diagnostics"
2296
            "description": "Unable to query diagnostics"
2297
          },
2298
          "400": {
2299
            "description": "Invalid Request",
2300
            "content": {
2301
              "application/json": {
2302
                "schema": {
2303
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
2304
                }
2305
              },
2306
              "application/x-yaml": {
2307
                "schema": {
2308
                  "$ref": "#/components/schemas/dbv0.0.38_errors"
2309
                }
2310
              }
2311
            }
2312
          },
2313
          "500": {
2314
            "description": "Dictionary of statistics",
2315
            "content": {
2316
              "application/json": {
2317
                "schema": {
2318
                  "$ref": "#/components/schemas/dbv0.0.38_diag"
2319
                }
2320
              },
2321
              "application/x-yaml": {
2322
                "schema": {
2323
                  "$ref": "#/components/schemas/dbv0.0.38_diag"
2324
                }
2325
              }
2326
            }
1393
          }
2327
          }
1394
        },
2328
        },
1395
        "summary": "Get slurmdb diagnostics"
2329
        "summary": "Get slurmdb diagnostics"
Lines 1493-1594 Link Here
1493
              "$ref": "#/components/schemas/dbv0.0.38_error"
2427
              "$ref": "#/components/schemas/dbv0.0.38_error"
1494
            }
2428
            }
1495
          },
2429
          },
1496
          "time_start": {
2430
          "meta": {
1497
            "type": "integer",
2431
            "$ref": "#/components/schemas/dbv0.0.38_meta"
1498
            "description": "Unix timestamp of start time"
1499
          },
2432
          },
1500
          "rollups": {
2433
          "statistics": {
1501
            "type": "array",
2434
            "type": "object",
1502
            "items": {
2435
            "properties": {
1503
              "type": "object",
2436
              "users": {
1504
              "description": "Rollup statistics",
2437
                "type": "array",
1505
              "properties": {
2438
                "items": {
1506
                "type": {
1507
                  "type": "string",
1508
                  "description": "Type of rollup"
1509
                },
1510
                "last_run": {
1511
                  "type": "integer",
1512
                  "description": "Timestamp of last rollup"
1513
                },
1514
                "last_cycle": {
1515
                  "type": "integer",
1516
                  "description": "Timestamp of last cycle"
1517
                },
1518
                "max_cycle": {
1519
                  "type": "integer",
1520
                  "description": "Max time of all cycles"
1521
                },
1522
                "total_time": {
1523
                  "type": "integer",
1524
                  "description": "Total time (s) spent doing rollup"
1525
                },
1526
                "mean_cycles": {
1527
                  "type": "integer",
1528
                  "description": "Average time (s) of cycle"
1529
                }
1530
              }
1531
            }
1532
          },
1533
          "RPCs": {
1534
            "type": "array",
1535
            "items": {
1536
              "type": "object",
1537
              "description": "Statistics by RPC type",
1538
              "properties": {
1539
                "rpc": {
1540
                  "type": "string",
1541
                  "description": "RPC type"
1542
                },
1543
                "count": {
1544
                  "type": "integer",
1545
                  "description": "Number of RPCs"
1546
                },
1547
                "time": {
1548
                  "type": "object",
2439
                  "type": "object",
1549
                  "description": "Time values",
2440
                  "description": "Statistics by user RPCs",
1550
                  "properties": {
2441
                  "properties": {
1551
                    "average": {
2442
                    "user": {
2443
                      "type": "string",
2444
                      "description": "User name"
2445
                    },
2446
                    "count": {
1552
                      "type": "integer",
2447
                      "type": "integer",
1553
                      "description": "Average time spent processing this RPC type"
2448
                      "description": "Number of RPCs"
2449
                    },
2450
                    "time": {
2451
                      "type": "object",
2452
                      "description": "Time values",
2453
                      "properties": {
2454
                        "average": {
2455
                          "type": "integer",
2456
                          "description": "Average time spent processing each user RPC"
2457
                        },
2458
                        "total": {
2459
                          "type": "integer",
2460
                          "description": "Total time spent processing each user RPC"
2461
                        }
2462
                      }
2463
                    }
2464
                  }
2465
                }
2466
              },
2467
              "RPCs": {
2468
                "type": "array",
2469
                "items": {
2470
                  "type": "object",
2471
                  "description": "Statistics by RPC type",
2472
                  "properties": {
2473
                    "rpc": {
2474
                      "type": "string",
2475
                      "description": "RPC type"
1554
                    },
2476
                    },
1555
                    "total": {
2477
                    "count": {
1556
                      "type": "integer",
2478
                      "type": "integer",
1557
                      "description": "Total time spent processing this RPC type"
2479
                      "description": "Number of RPCs"
2480
                    },
2481
                    "time": {
2482
                      "type": "object",
2483
                      "description": "Time values",
2484
                      "properties": {
2485
                        "average": {
2486
                          "type": "integer",
2487
                          "description": "Average time spent processing this RPC type"
2488
                        },
2489
                        "total": {
2490
                          "type": "integer",
2491
                          "description": "Total time spent processing this RPC type"
2492
                        }
2493
                      }
1558
                    }
2494
                    }
1559
                  }
2495
                  }
1560
                }
2496
                }
1561
              }
2497
              },
1562
            }
2498
              "rollups": {
1563
          },
2499
                "type": "array",
1564
          "users": {
2500
                "items": {
1565
            "type": "array",
1566
            "items": {
1567
              "type": "object",
1568
              "description": "Statistics by user RPCs",
1569
              "properties": {
1570
                "user": {
1571
                  "type": "string",
1572
                  "description": "User name"
1573
                },
1574
                "count": {
1575
                  "type": "integer",
1576
                  "description": "Number of RPCs"
1577
                },
1578
                "time": {
1579
                  "type": "object",
2501
                  "type": "object",
1580
                  "description": "Time values",
2502
                  "description": "Rollup statistics",
1581
                  "properties": {
2503
                  "properties": {
1582
                    "average": {
2504
                    "type": {
2505
                      "type": "string",
2506
                      "description": "Type of rollup"
2507
                    },
2508
                    "last_run": {
2509
                      "type": "integer",
2510
                      "description": "Timestamp of last rollup"
2511
                    },
2512
                    "last_cycle": {
2513
                      "type": "integer",
2514
                      "description": "Timestamp of last cycle"
2515
                    },
2516
                    "max_cycle": {
2517
                      "type": "integer",
2518
                      "description": "Max time of all cycles"
2519
                    },
2520
                    "total_time": {
2521
                      "type": "integer",
2522
                      "description": "Total time (s) spent doing rollup"
2523
                    },
2524
                    "mean_cycles": {
1583
                      "type": "integer",
2525
                      "type": "integer",
1584
                      "description": "Average time spent processing each user RPC"
2526
                      "description": "Average time (s) of cycle"
1585
                    },
2527
                    },
1586
                    "total": {
2528
                    "total_cycles": {
1587
                      "type": "integer",
2529
                      "type": "integer",
1588
                      "description": "Total time spent processing each user RPC"
2530
                      "description": "magic value"
1589
                    }
2531
                    }
1590
                  }
2532
                  }
1591
                }
2533
                }
2534
              },
2535
              "time_start": {
2536
                "type": "integer",
2537
                "description": "Unix timestamp of start time"
1592
              }
2538
              }
1593
            }
2539
            }
1594
          }
2540
          }
Lines 1650-1655 Link Here
1650
            "items": {
2596
            "items": {
1651
              "$ref": "#/components/schemas/dbv0.0.38_account"
2597
              "$ref": "#/components/schemas/dbv0.0.38_account"
1652
            }
2598
            }
2599
          },
2600
          "meta": {
2601
            "$ref": "#/components/schemas/dbv0.0.38_meta"
1653
          }
2602
          }
1654
        }
2603
        }
1655
      },
2604
      },
Lines 1696-1701 Link Here
1696
            "items": {
2645
            "items": {
1697
              "$ref": "#/components/schemas/dbv0.0.38_error"
2646
              "$ref": "#/components/schemas/dbv0.0.38_error"
1698
            }
2647
            }
2648
          },
2649
          "meta": {
2650
            "$ref": "#/components/schemas/dbv0.0.38_meta"
2651
          },
2652
          "removed_associations": {
2653
            "type": "array",
2654
            "description": "the associations",
2655
            "items": {
2656
              "type": "string"
2657
            }
1699
          }
2658
          }
1700
        }
2659
        }
1701
      },
2660
      },
Lines 1727-1732 Link Here
1727
            "items": {
2686
            "items": {
1728
              "$ref": "#/components/schemas/dbv0.0.38_wckey"
2687
              "$ref": "#/components/schemas/dbv0.0.38_wckey"
1729
            }
2688
            }
2689
          },
2690
          "meta": {
2691
            "$ref": "#/components/schemas/dbv0.0.38_meta"
1730
          }
2692
          }
1731
        }
2693
        }
1732
      },
2694
      },
Lines 1792-1852 Link Here
1792
        }
2754
        }
1793
      },
2755
      },
1794
      "dbv0.0.38_cluster_info": {
2756
      "dbv0.0.38_cluster_info": {
1795
        "type": "object",
2757
        "type": "object",
1796
        "properties": {
2758
        "properties": {
1797
          "controller": {
2759
          "errors": {
1798
            "type": "object",
1799
            "description": "Information about controller",
1800
            "properties": {
1801
              "host": {
1802
                "type": "string",
1803
                "description": "Hostname"
1804
              },
1805
              "port": {
1806
                "type": "integer",
1807
                "description": "Port number"
1808
              }
1809
            }
1810
          },
1811
          "flags": {
1812
            "type": "array",
2760
            "type": "array",
1813
            "description": "List of properties of cluster",
2761
            "description": "Slurm errors",
1814
            "items": {
2762
            "items": {
1815
              "type": "string",
2763
              "$ref": "#/components/schemas/dbv0.0.38_error"
1816
              "description": "String of property name"
1817
            }
1818
          },
1819
          "name": {
1820
            "type": "string",
1821
            "description": "Cluster name"
1822
          },
1823
          "nodes": {
1824
            "type": "string",
1825
            "description": "Assigned nodes"
1826
          },
1827
          "select_plugin": {
1828
            "type": "string",
1829
            "description": "Configured select plugin"
1830
          },
1831
          "associations": {
1832
            "type": "object",
1833
            "description": "Information about associations",
1834
            "properties": {
1835
              "root": {
1836
                "$ref": "#/components/schemas/dbv0.0.38_association_short_info"
1837
              }
1838
            }
2764
            }
1839
          },
2765
          },
1840
          "rpc_version": {
2766
          "clusters": {
1841
            "type": "integer",
1842
            "description": "Number rpc version"
1843
          },
1844
          "tres": {
1845
            "type": "array",
2767
            "type": "array",
1846
            "description": "List of TRES in cluster",
1847
            "items": {
2768
            "items": {
1848
              "$ref": "#/components/schemas/dbv0.0.38_response_tres"
2769
              "$ref": "#/components/schemas/dbv0.0.38_cluster"
1849
            }
2770
            }
2771
          },
2772
          "meta": {
2773
            "$ref": "#/components/schemas/dbv0.0.38_meta"
1850
          }
2774
          }
1851
        }
2775
        }
1852
      },
2776
      },
Lines 1871-1876 Link Here
1871
            "items": {
2795
            "items": {
1872
              "$ref": "#/components/schemas/dbv0.0.38_error"
2796
              "$ref": "#/components/schemas/dbv0.0.38_error"
1873
            }
2797
            }
2798
          },
2799
          "meta": {
2800
            "$ref": "#/components/schemas/dbv0.0.38_meta"
1874
          }
2801
          }
1875
        }
2802
        }
1876
      },
2803
      },
Lines 1883-1894 Link Here
1883
            "description": "Description of administrator level"
2810
            "description": "Description of administrator level"
1884
          },
2811
          },
1885
          "associations": {
2812
          "associations": {
1886
            "type": "object",
2813
            "type": "array",
1887
            "description": "Assigned associations",
2814
            "description": "the associations",
1888
            "properties": {
2815
            "items": {
1889
              "root": {
2816
              "$ref": "#/components/schemas/dbv0.0.38_association_short_info"
1890
                "$ref": "#/components/schemas/dbv0.0.38_association_short_info"
1891
              }
1892
            }
2817
            }
1893
          },
2818
          },
1894
          "coordinators": {
2819
          "coordinators": {
Lines 1934-1939 Link Here
1934
            "items": {
2859
            "items": {
1935
              "$ref": "#/components/schemas/dbv0.0.38_user"
2860
              "$ref": "#/components/schemas/dbv0.0.38_user"
1936
            }
2861
            }
2862
          },
2863
          "meta": {
2864
            "$ref": "#/components/schemas/dbv0.0.38_meta"
1937
          }
2865
          }
1938
        }
2866
        }
1939
      },
2867
      },
Lines 2006-2011 Link Here
2006
                      "wall_clock": {
2934
                      "wall_clock": {
2007
                        "type": "integer",
2935
                        "type": "integer",
2008
                        "description": "Max wallclock per job"
2936
                        "description": "Max wallclock per job"
2937
                      },
2938
                      "accruing": {
2939
                        "type": "string"
2940
                      },
2941
                      "count": {
2942
                        "type": "integer"
2943
                      },
2944
                      "submitted": {
2945
                        "type": "string"
2009
                      }
2946
                      }
2010
                    }
2947
                    }
2011
                  }
2948
                  }
Lines 2103-2152 Link Here
2103
            "description": "Raw fairshare shares"
3040
            "description": "Raw fairshare shares"
2104
          },
3041
          },
2105
          "usage": {
3042
          "usage": {
2106
            "type": "object",
3043
            "oneOf": [
2107
            "description": "Association usage",
3044
              {
2108
            "properties": {
3045
                "type": "object",
2109
              "accrue_job_count": {
3046
                "description": "Association usage",
2110
                "type": "integer",
3047
                "properties": {
2111
                "description": "Jobs accuring priority"
3048
                  "accrue_job_count": {
2112
              },
3049
                    "type": "integer",
2113
              "group_used_wallclock": {
3050
                    "description": "Jobs accuring priority"
2114
                "type": "number",
3051
                  },
2115
                "description": "Group used wallclock time (s)"
3052
                  "group_used_wallclock": {
2116
              },
3053
                    "type": "number",
2117
              "fairshare_factor": {
3054
                    "description": "Group used wallclock time (s)"
2118
                "type": "number",
3055
                  },
2119
                "description": "Fairshare factor"
3056
                  "fairshare_factor": {
2120
              },
3057
                    "type": "number",
2121
              "fairshare_shares": {
3058
                    "description": "Fairshare factor"
2122
                "type": "integer",
3059
                  },
2123
                "description": "Fairshare shares"
3060
                  "fairshare_shares": {
2124
              },
3061
                    "type": "integer",
2125
              "normalized_priority": {
3062
                    "description": "Fairshare shares"
2126
                "type": "integer",
3063
                  },
2127
                "description": "Currently active jobs"
3064
                  "normalized_priority": {
2128
              },
3065
                    "type": "integer",
2129
              "normalized_shares": {
3066
                    "description": "Currently active jobs"
2130
                "type": "number",
3067
                  },
2131
                "description": "Normalized shares"
3068
                  "normalized_shares": {
2132
              },
3069
                    "type": "number",
2133
              "effective_normalized_usage": {
3070
                    "description": "Normalized shares"
2134
                "type": "number",
3071
                  },
2135
                "description": "Effective normalized usage"
3072
                  "effective_normalized_usage": {
2136
              },
3073
                    "type": "number",
2137
              "raw_usage": {
3074
                    "description": "Effective normalized usage"
2138
                "type": "integer",
3075
                  },
2139
                "description": "Raw usage"
3076
                  "raw_usage": {
2140
              },
3077
                    "type": "integer",
2141
              "job_count": {
3078
                    "description": "Raw usage"
2142
                "type": "integer",
3079
                  },
2143
                "description": "Total jobs submitted"
3080
                  "job_count": {
3081
                    "type": "integer",
3082
                    "description": "Total jobs submitted"
3083
                  },
3084
                  "fairshare_level": {
3085
                    "type": "number",
3086
                    "description": "Fairshare level"
3087
                  }
3088
                }
2144
              },
3089
              },
2145
              "fairshare_level": {
3090
              {
2146
                "type": "number",
3091
                "type": "null"
2147
                "description": "Fairshare level"
2148
              }
3092
              }
2149
            }
3093
            ]
2150
          },
3094
          },
2151
          "user": {
3095
          "user": {
2152
            "type": "string",
3096
            "type": "string",
Lines 2170-2175 Link Here
2170
            "items": {
3114
            "items": {
2171
              "$ref": "#/components/schemas/dbv0.0.38_association"
3115
              "$ref": "#/components/schemas/dbv0.0.38_association"
2172
            }
3116
            }
3117
          },
3118
          "meta": {
3119
            "$ref": "#/components/schemas/dbv0.0.38_meta"
2173
          }
3120
          }
2174
        }
3121
        }
2175
      },
3122
      },
Lines 2281-2286 Link Here
2281
                              },
3228
                              },
2282
                              "user": {
3229
                              "user": {
2283
                                "$ref": "#/components/schemas/dbv0.0.38_tres_list"
3230
                                "$ref": "#/components/schemas/dbv0.0.38_tres_list"
3231
                              },
3232
                              "qos": {
3233
                                "$ref": "#/components/schemas/dbv0.0.36_tres_list"
2284
                              }
3234
                              }
2285
                            }
3235
                            }
2286
                          }
3236
                          }
Lines 2303-2310 Link Here
2303
                            "$ref": "#/components/schemas/dbv0.0.38_tres_list"
3253
                            "$ref": "#/components/schemas/dbv0.0.38_tres_list"
2304
                          }
3254
                          }
2305
                        }
3255
                        }
3256
                      },
3257
                      "total": {
3258
                        "type": "integer"
2306
                      }
3259
                      }
2307
                    }
3260
                    }
3261
                  },
3262
                  "active_jobs": {
3263
                    "type": "integer"
2308
                  }
3264
                  }
2309
                }
3265
                }
2310
              },
3266
              },
Lines 2332-2337 Link Here
2332
                    }
3288
                    }
2333
                  }
3289
                  }
2334
                }
3290
                }
3291
              },
3292
              "grace_time": {
3293
                "type": "integer"
2335
              }
3294
              }
2336
            }
3295
            }
2337
          },
3296
          },
Lines 2372-2377 Link Here
2372
          "usage_threshold": {
3331
          "usage_threshold": {
2373
            "type": "number",
3332
            "type": "number",
2374
            "description": "Usage threshold"
3333
            "description": "Usage threshold"
3334
          },
3335
          "name": {
3336
            "type": "string"
2375
          }
3337
          }
2376
        }
3338
        }
2377
      },
3339
      },
Lines 2385-2391 Link Here
2385
              "$ref": "#/components/schemas/dbv0.0.38_error"
3347
              "$ref": "#/components/schemas/dbv0.0.38_error"
2386
            }
3348
            }
2387
          },
3349
          },
2388
          "qos": {
3350
          "meta": {
3351
            "$ref": "#/components/schemas/dbv0.0.38_meta"
3352
          },
3353
          "QOS": {
2389
            "type": "array",
3354
            "type": "array",
2390
            "description": "Array of QOS",
3355
            "description": "Array of QOS",
2391
            "items": {
3356
            "items": {
Lines 2440-2451 Link Here
2440
              "$ref": "#/components/schemas/dbv0.0.38_error"
3405
              "$ref": "#/components/schemas/dbv0.0.38_error"
2441
            }
3406
            }
2442
          },
3407
          },
2443
          "tres": {
3408
          "meta": {
2444
            "type": "array",
3409
            "$ref": "#/components/schemas/dbv0.0.38_meta"
2445
            "description": "Array of tres",
3410
          },
2446
            "items": {
3411
          "TRES": {
2447
              "$ref": "#/components/schemas/dbv0.0.38_tres_list"
3412
            "$ref": "#/components/schemas/dbv0.0.36_tres_list"
2448
            }
2449
          }
3413
          }
2450
        }
3414
        }
2451
      },
3415
      },
Lines 2490-2495 Link Here
2490
            "items": {
3454
            "items": {
2491
              "$ref": "#/components/schemas/dbv0.0.38_job"
3455
              "$ref": "#/components/schemas/dbv0.0.38_job"
2492
            }
3456
            }
3457
          },
3458
          "meta": {
3459
            "$ref": "#/components/schemas/dbv0.0.38_meta"
2493
          }
3460
          }
2494
        }
3461
        }
2495
      },
3462
      },
Lines 2673-2683 Link Here
2673
            "description": "Heterogeneous Job details (optional)",
3640
            "description": "Heterogeneous Job details (optional)",
2674
            "properties": {
3641
            "properties": {
2675
              "job_id": {
3642
              "job_id": {
2676
                "type": "object",
3643
                "type": "integer",
2677
                "description": "Parent HetJob id"
3644
                "description": "Parent HetJob id"
2678
              },
3645
              },
2679
              "job_offset": {
3646
              "job_offset": {
2680
                "type": "object",
3647
                "type": "integer",
2681
                "description": "Offset of this job to parent"
3648
                "description": "Offset of this job to parent"
2682
              }
3649
              }
2683
            }
3650
            }
Lines 3025-3038 Link Here
3025
            }
3992
            }
3026
          },
3993
          },
3027
          "task": {
3994
          "task": {
3028
            "type": "object",
3995
            "type": "string"
3029
            "description": "Task properties",
3030
            "properties": {
3031
              "distribution": {
3032
                "type": "string",
3033
                "description": "Task distribution type"
3034
              }
3035
            }
3036
          },
3996
          },
3037
          "tres": {
3997
          "tres": {
3038
            "type": "object",
3998
            "type": "object",
Lines 3078-3083 Link Here
3078
                "$ref": "#/components/schemas/dbv0.0.38_tres_list"
4038
                "$ref": "#/components/schemas/dbv0.0.38_tres_list"
3079
              }
4039
              }
3080
            }
4040
            }
4041
          },
4042
          "distribution": {
4043
            "type": "string"
3081
          }
4044
          }
3082
        }
4045
        }
3083
      },
4046
      },
Lines 3091-3103 Link Here
3091
              "$ref": "#/components/schemas/dbv0.0.38_error"
4054
              "$ref": "#/components/schemas/dbv0.0.38_error"
3092
            }
4055
            }
3093
          },
4056
          },
3094
          "tres": {
3095
            "type": "array",
3096
            "description": "Array of TRES",
3097
            "items": {
3098
              "$ref": "#/components/schemas/dbv0.0.38_tres_list"
3099
            }
3100
          },
3101
          "accounts": {
4057
          "accounts": {
3102
            "type": "array",
4058
            "type": "array",
3103
            "description": "Array of accounts",
4059
            "description": "Array of accounts",
Lines 3119-3136 Link Here
3119
              "$ref": "#/components/schemas/dbv0.0.38_user"
4075
              "$ref": "#/components/schemas/dbv0.0.38_user"
3120
            }
4076
            }
3121
          },
4077
          },
3122
          "qos": {
4078
          "wckeys": {
3123
            "type": "array",
4079
            "type": "array",
3124
            "description": "Array of qos",
4080
            "description": "Array of wckeys",
3125
            "items": {
4081
            "items": {
3126
              "$ref": "#/components/schemas/dbv0.0.38_qos"
4082
              "$ref": "#/components/schemas/dbv0.0.38_wckey"
3127
            }
4083
            }
3128
          },
4084
          },
3129
          "wckeys": {
4085
          "meta": {
4086
            "$ref": "#/components/schemas/dbv0.0.38_meta"
4087
          },
4088
          "clusters": {
3130
            "type": "array",
4089
            "type": "array",
3131
            "description": "Array of wckeys",
3132
            "items": {
4090
            "items": {
3133
              "$ref": "#/components/schemas/dbv0.0.38_wckey"
4091
              "$ref": "#/components/schemas/dbv0.0.38_cluster"
4092
            }
4093
          },
4094
          "TRES": {
4095
            "oneOf": [
4096
              {
4097
                "type": "array",
4098
                "description": "Array of TRES",
4099
                "items": {
4100
                  "$ref": "#/components/schemas/dbv0.0.38_tres_list"
4101
                }
4102
              },
4103
              {
4104
                "type": "null"
4105
              }
4106
            ]
4107
          },
4108
          "QOS": {
4109
            "type": "array",
4110
            "description": "Array of qos",
4111
            "items": {
4112
              "$ref": "#/components/schemas/dbv0.0.38_qos"
3134
            }
4113
            }
3135
          }
4114
          }
3136
        }
4115
        }
Lines 3144-3149 Link Here
3144
            "items": {
4123
            "items": {
3145
              "$ref": "#/components/schemas/dbv0.0.38_error"
4124
              "$ref": "#/components/schemas/dbv0.0.38_error"
3146
            }
4125
            }
4126
          },
4127
          "meta": {
4128
            "$ref": "#/components/schemas/dbv0.0.38_meta"
3147
          }
4129
          }
3148
        }
4130
        }
3149
      },
4131
      },
Lines 3168-3177 Link Here
3168
          "error": {
4150
          "error": {
3169
            "description": "Error message",
4151
            "description": "Error message",
3170
            "type": "string"
4152
            "type": "string"
4153
          },
4154
          "error_number": {
4155
            "type": "integer"
4156
          },
4157
          "source": {
4158
            "type": "string"
4159
          },
4160
          "error_code": {
4161
            "type": "integer"
4162
          },
4163
          "description": {
4164
            "type": "string"
3171
          }
4165
          }
3172
        },
4166
        },
3173
        "type": "object"
4167
        "type": "object"
4168
      },
4169
      "dbv0.0.38_meta": {
4170
        "type": "object",
4171
        "properties": {
4172
          "plugin": {
4173
            "type": "object",
4174
            "properties": {
4175
              "type": {
4176
                "type": "string",
4177
                "description": ""
4178
              },
4179
              "name": {
4180
                "type": "string",
4181
                "description": ""
4182
              }
4183
            }
4184
          },
4185
          "Slurm": {
4186
            "type": "object",
4187
            "description": "Slurm information",
4188
            "properties": {
4189
              "version": {
4190
                "type": "object",
4191
                "properties": {
4192
                  "major": {
4193
                    "type": "string",
4194
                    "description": ""
4195
                  },
4196
                  "micro": {
4197
                    "type": "string",
4198
                    "description": ""
4199
                  },
4200
                  "minor": {
4201
                    "type": "string",
4202
                    "description": ""
4203
                  }
4204
                }
4205
              },
4206
              "release": {
4207
                "type": "string",
4208
                "description": "version specifier"
4209
              }
4210
            }
4211
          }
4212
        }
4213
      },
4214
      "dbv0.0.38_errors": {
4215
        "properties": {
4216
          "meta": {
4217
            "$ref": "#/components/schemas/dbv0.0.38_meta"
4218
          },
4219
          "errors": {
4220
            "type": "array",
4221
            "description": "Slurm errors",
4222
            "items": {
4223
              "$ref": "#/components/schemas/dbv0.0.38_error"
4224
            }
4225
          }
4226
        }
4227
      },
4228
      "dbv0.0.38_update_users": {
4229
        "properties": {
4230
          "users": {
4231
            "type": "array",
4232
            "items": {
4233
              "$ref": "#/components/schemas/dbv0.0.38_user"
4234
            }
4235
          }
4236
        }
4237
      },
4238
      "dbv0.0.38_update_account": {
4239
        "properties": {
4240
          "accounts": {
4241
            "type": "array",
4242
            "items": {
4243
              "$ref": "#/components/schemas/dbv0.0.38_account"
4244
            }
4245
          }
4246
        }
4247
      },
4248
      "dbv0.0.38_cluster": {
4249
        "type": "object",
4250
        "properties": {
4251
          "controller": {
4252
            "type": "object",
4253
            "description": "Information about controller",
4254
            "properties": {
4255
              "host": {
4256
                "type": "string",
4257
                "description": "Hostname"
4258
              },
4259
              "port": {
4260
                "type": "integer",
4261
                "description": "Port number"
4262
              }
4263
            }
4264
          },
4265
          "flags": {
4266
            "type": "array",
4267
            "description": "List of properties of cluster",
4268
            "items": {
4269
              "type": "string",
4270
              "description": "String of property name"
4271
            }
4272
          },
4273
          "name": {
4274
            "type": "string",
4275
            "description": "Cluster name"
4276
          },
4277
          "nodes": {
4278
            "type": "string",
4279
            "description": "Assigned nodes"
4280
          },
4281
          "select_plugin": {
4282
            "type": "string",
4283
            "description": "Configured select plugin"
4284
          },
4285
          "associations": {
4286
            "type": "object",
4287
            "description": "Information about associations",
4288
            "properties": {
4289
              "root": {
4290
                "oneOf": [
4291
                  {
4292
                    "$ref": "#/components/schemas/dbv0.0.38_association_short_info"
4293
                  },
4294
                  {
4295
                    "type": "null"
4296
                  }
4297
                ]
4298
              }
4299
            }
4300
          },
4301
          "rpc_version": {
4302
            "type": "integer",
4303
            "description": "Number rpc version"
4304
          },
4305
          "tres": {
4306
            "$ref": "#/components/schemas/dbv0.0.36_tres_list"
4307
          }
4308
        }
3174
      }
4309
      }
3175
    }
4310
    }
3176
  }
4311
  }
3177
}
4312
}
(-)a/src/plugins/openapi/v0.0.36/openapi.json (-8 / +90 lines)
Lines 32-38 Link Here
32
  ],
32
  ],
33
  "security": [
33
  "security": [
34
    {
34
    {
35
      "user": [],
35
      "user": []
36
    },
37
    {
36
      "token": []
38
      "token": []
37
    }
39
    }
38
  ],
40
  ],
Lines 699-704 Link Here
699
                "description": "Backfill Schedule currently active"
701
                "description": "Backfill Schedule currently active"
700
              }
702
              }
701
            }
703
            }
704
          },
705
          "meta": {
706
            "$ref": "#/components/schemas/v0.0.36_meta"
702
          }
707
          }
703
        }
708
        }
704
      },
709
      },
Lines 718-723 Link Here
718
            "items": {
723
            "items": {
719
              "$ref": "#/components/schemas/v0.0.36_ping"
724
              "$ref": "#/components/schemas/v0.0.36_ping"
720
            }
725
            }
726
          },
727
          "meta": {
728
            "$ref": "#/components/schemas/v0.0.36_meta"
721
          }
729
          }
722
        }
730
        }
723
      },
731
      },
Lines 887-892 Link Here
887
            "items": {
895
            "items": {
888
              "$ref": "#/components/schemas/v0.0.36_partition"
896
              "$ref": "#/components/schemas/v0.0.36_partition"
889
            }
897
            }
898
          },
899
          "meta": {
900
            "$ref": "#/components/schemas/v0.0.36_meta"
890
          }
901
          }
891
        }
902
        }
892
      },
903
      },
Lines 900-905 Link Here
900
          "errno": {
911
          "errno": {
901
            "type": "integer",
912
            "type": "integer",
902
            "description": "error number"
913
            "description": "error number"
914
          },
915
          "error_code": {
916
            "type": "integer"
903
          }
917
          }
904
        }
918
        }
905
      },
919
      },
Lines 946-951 Link Here
946
          "job_submit_user_msg": {
960
          "job_submit_user_msg": {
947
            "description": "Message to user from job_submit plugin",
961
            "description": "Message to user from job_submit plugin",
948
            "type": "string"
962
            "type": "string"
963
          },
964
          "meta": {
965
            "$ref": "#/components/schemas/v0.0.36_meta"
949
          }
966
          }
950
        }
967
        }
951
      },
968
      },
Lines 959-965 Link Here
959
            "description": "Executable script (full contents) to run in batch step"
976
            "description": "Executable script (full contents) to run in batch step"
960
          },
977
          },
961
          "job": {
978
          "job": {
962
            "description": "Properties of an array job or non-HetJob",
963
            "$ref": "#/components/schemas/v0.0.36_job_properties"
979
            "$ref": "#/components/schemas/v0.0.36_job_properties"
964
          },
980
          },
965
          "jobs": {
981
          "jobs": {
Lines 968-973 Link Here
968
            "items": {
984
            "items": {
969
              "$ref": "#/components/schemas/v0.0.36_job_properties"
985
              "$ref": "#/components/schemas/v0.0.36_job_properties"
970
            }
986
            }
987
          },
988
          "meta": {
989
            "$ref": "#/components/schemas/v0.0.36_meta"
971
          }
990
          }
972
        }
991
        }
973
      },
992
      },
Lines 987-992 Link Here
987
            "items": {
1006
            "items": {
988
              "$ref": "#/components/schemas/v0.0.36_job_response_properties"
1007
              "$ref": "#/components/schemas/v0.0.36_job_response_properties"
989
            }
1008
            }
1009
          },
1010
          "meta": {
1011
            "$ref": "#/components/schemas/v0.0.36_meta"
990
          }
1012
          }
991
        }
1013
        }
992
      },
1014
      },
Lines 1450-1459 Link Here
1450
            "description": "number of assigned job hosts"
1472
            "description": "number of assigned job hosts"
1451
          },
1473
          },
1452
          "allocated_nodes": {
1474
          "allocated_nodes": {
1453
            "type": "array",
1475
            "type": "object",
1454
            "description": "node allocations",
1476
            "description": "node allocations",
1455
            "items": {
1477
            "properties": {
1456
              "$ref": "#/components/schemas/v0.0.36_node_allocation"
1478
              "0": {
1479
                "$ref": "#/components/schemas/v0.0.36_node_allocation"
1480
              }
1457
            }
1481
            }
1458
          }
1482
          }
1459
        }
1483
        }
Lines 1471-1481 Link Here
1471
          },
1495
          },
1472
          "sockets": {
1496
          "sockets": {
1473
            "type": "object",
1497
            "type": "object",
1474
            "description": "assignment status of each socket by socket id"
1498
            "description": "FIXME",
1499
            "properties": {
1500
              "0": {
1501
                "type": "string"
1502
              }
1503
            }
1475
          },
1504
          },
1476
          "cores": {
1505
          "cores": {
1477
            "type": "object",
1506
            "type": "object",
1478
            "description": "assignment status of each core by core id"
1507
            "description": "FIXME",
1508
            "properties": {
1509
              "0": {
1510
                "type": "string"
1511
              }
1512
            }
1479
          }
1513
          }
1480
        }
1514
        }
1481
      },
1515
      },
Lines 1959-1967 Link Here
1959
            "items": {
1993
            "items": {
1960
              "$ref": "#/components/schemas/v0.0.36_node"
1994
              "$ref": "#/components/schemas/v0.0.36_node"
1961
            }
1995
            }
1996
          },
1997
          "meta": {
1998
            "$ref": "#/components/schemas/v0.0.36_meta"
1999
          }
2000
        }
2001
      },
2002
      "v0.0.36_meta": {
2003
        "type": "object",
2004
        "properties": {
2005
          "plugin": {
2006
            "type": "object",
2007
            "properties": {
2008
              "type": {
2009
                "type": "string",
2010
                "description": ""
2011
              },
2012
              "name": {
2013
                "type": "string",
2014
                "description": ""
2015
              }
2016
            }
2017
          },
2018
          "Slurm": {
2019
            "type": "object",
2020
            "description": "Slurm information",
2021
            "properties": {
2022
              "version": {
2023
                "type": "object",
2024
                "properties": {
2025
                  "major": {
2026
                    "type": "string",
2027
                    "description": ""
2028
                  },
2029
                  "micro": {
2030
                    "type": "string",
2031
                    "description": ""
2032
                  },
2033
                  "minor": {
2034
                    "type": "string",
2035
                    "description": ""
2036
                  }
2037
                }
2038
              },
2039
              "release": {
2040
                "type": "string",
2041
                "description": "version specifier"
2042
              }
2043
            }
1962
          }
2044
          }
1963
        }
2045
        }
1964
      }
2046
      }
1965
    }
2047
    }
1966
  }
2048
  }
1967
}
2049
}
(-)a/src/plugins/openapi/v0.0.37/openapi.json (-8 / +90 lines)
Lines 32-38 Link Here
32
  ],
32
  ],
33
  "security": [
33
  "security": [
34
    {
34
    {
35
      "user": [],
35
      "user": []
36
    },
37
    {
36
      "token": []
38
      "token": []
37
    }
39
    }
38
  ],
40
  ],
Lines 847-852 Link Here
847
                "description": "Backfill Schedule currently active"
849
                "description": "Backfill Schedule currently active"
848
              }
850
              }
849
            }
851
            }
852
          },
853
          "meta": {
854
            "$ref": "#/components/schemas/v0.0.37_meta"
850
          }
855
          }
851
        }
856
        }
852
      },
857
      },
Lines 866-871 Link Here
866
            "items": {
871
            "items": {
867
              "$ref": "#/components/schemas/v0.0.37_ping"
872
              "$ref": "#/components/schemas/v0.0.37_ping"
868
            }
873
            }
874
          },
875
          "meta": {
876
            "$ref": "#/components/schemas/v0.0.37_meta"
869
          }
877
          }
870
        }
878
        }
871
      },
879
      },
Lines 1038-1043 Link Here
1038
            "items": {
1046
            "items": {
1039
              "$ref": "#/components/schemas/v0.0.37_partition"
1047
              "$ref": "#/components/schemas/v0.0.37_partition"
1040
            }
1048
            }
1049
          },
1050
          "meta": {
1051
            "$ref": "#/components/schemas/v0.0.37_meta"
1041
          }
1052
          }
1042
        }
1053
        }
1043
      },
1054
      },
Lines 1160-1165 Link Here
1160
          "errno": {
1171
          "errno": {
1161
            "type": "integer",
1172
            "type": "integer",
1162
            "description": "error number"
1173
            "description": "error number"
1174
          },
1175
          "error_code": {
1176
            "type": "integer"
1163
          }
1177
          }
1164
        }
1178
        }
1165
      },
1179
      },
Lines 1206-1211 Link Here
1206
          "job_submit_user_msg": {
1220
          "job_submit_user_msg": {
1207
            "description": "Message to user from job_submit plugin",
1221
            "description": "Message to user from job_submit plugin",
1208
            "type": "string"
1222
            "type": "string"
1223
          },
1224
          "meta": {
1225
            "$ref": "#/components/schemas/v0.0.37_meta"
1209
          }
1226
          }
1210
        }
1227
        }
1211
      },
1228
      },
Lines 1219-1225 Link Here
1219
            "description": "Executable script (full contents) to run in batch step"
1236
            "description": "Executable script (full contents) to run in batch step"
1220
          },
1237
          },
1221
          "job": {
1238
          "job": {
1222
            "description": "Properties of an array job or non-HetJob",
1223
            "$ref": "#/components/schemas/v0.0.37_job_properties"
1239
            "$ref": "#/components/schemas/v0.0.37_job_properties"
1224
          },
1240
          },
1225
          "jobs": {
1241
          "jobs": {
Lines 1228-1233 Link Here
1228
            "items": {
1244
            "items": {
1229
              "$ref": "#/components/schemas/v0.0.37_job_properties"
1245
              "$ref": "#/components/schemas/v0.0.37_job_properties"
1230
            }
1246
            }
1247
          },
1248
          "meta": {
1249
            "$ref": "#/components/schemas/v0.0.37_meta"
1231
          }
1250
          }
1232
        }
1251
        }
1233
      },
1252
      },
Lines 1247-1252 Link Here
1247
            "items": {
1266
            "items": {
1248
              "$ref": "#/components/schemas/v0.0.37_job_response_properties"
1267
              "$ref": "#/components/schemas/v0.0.37_job_response_properties"
1249
            }
1268
            }
1269
          },
1270
          "meta": {
1271
            "$ref": "#/components/schemas/v0.0.37_meta"
1250
          }
1272
          }
1251
        }
1273
        }
1252
      },
1274
      },
Lines 1719-1728 Link Here
1719
            "description": "number of assigned job hosts"
1741
            "description": "number of assigned job hosts"
1720
          },
1742
          },
1721
          "allocated_nodes": {
1743
          "allocated_nodes": {
1722
            "type": "array",
1744
            "type": "object",
1723
            "description": "node allocations",
1745
            "description": "node allocations",
1724
            "items": {
1746
            "properties": {
1725
              "$ref": "#/components/schemas/v0.0.37_node_allocation"
1747
              "0": {
1748
                "$ref": "#/components/schemas/v0.0.37_node_allocation"
1749
              }
1726
            }
1750
            }
1727
          }
1751
          }
1728
        }
1752
        }
Lines 1740-1750 Link Here
1740
          },
1764
          },
1741
          "sockets": {
1765
          "sockets": {
1742
            "type": "object",
1766
            "type": "object",
1743
            "description": "assignment status of each socket by socket id"
1767
            "description": "FIXME",
1768
            "properties": {
1769
              "0": {
1770
                "type": "string"
1771
              }
1772
            }
1744
          },
1773
          },
1745
          "cores": {
1774
          "cores": {
1746
            "type": "object",
1775
            "type": "object",
1747
            "description": "assignment status of each core by core id"
1776
            "description": "FIXME",
1777
            "properties": {
1778
              "0": {
1779
                "type": "string"
1780
              }
1781
            }
1748
          }
1782
          }
1749
        }
1783
        }
1750
      },
1784
      },
Lines 2270-2278 Link Here
2270
            "items": {
2304
            "items": {
2271
              "$ref": "#/components/schemas/v0.0.37_node"
2305
              "$ref": "#/components/schemas/v0.0.37_node"
2272
            }
2306
            }
2307
          },
2308
          "meta": {
2309
            "$ref": "#/components/schemas/v0.0.37_meta"
2310
          }
2311
        }
2312
      },
2313
      "v0.0.37_meta": {
2314
        "type": "object",
2315
        "properties": {
2316
          "plugin": {
2317
            "type": "object",
2318
            "properties": {
2319
              "type": {
2320
                "type": "string",
2321
                "description": ""
2322
              },
2323
              "name": {
2324
                "type": "string",
2325
                "description": ""
2326
              }
2327
            }
2328
          },
2329
          "Slurm": {
2330
            "type": "object",
2331
            "description": "Slurm information",
2332
            "properties": {
2333
              "version": {
2334
                "type": "object",
2335
                "properties": {
2336
                  "major": {
2337
                    "type": "string",
2338
                    "description": ""
2339
                  },
2340
                  "micro": {
2341
                    "type": "string",
2342
                    "description": ""
2343
                  },
2344
                  "minor": {
2345
                    "type": "string",
2346
                    "description": ""
2347
                  }
2348
                }
2349
              },
2350
              "release": {
2351
                "type": "string",
2352
                "description": "version specifier"
2353
              }
2354
            }
2273
          }
2355
          }
2274
        }
2356
        }
2275
      }
2357
      }
2276
    }
2358
    }
2277
  }
2359
  }
2278
}
2360
}
(-)a/src/plugins/openapi/v0.0.38/openapi.json (-7 / +88 lines)
Lines 32-38 Link Here
32
  ],
32
  ],
33
  "security": [
33
  "security": [
34
    {
34
    {
35
      "user": [],
35
      "user": []
36
    },
37
    {
36
      "token": []
38
      "token": []
37
    }
39
    }
38
  ],
40
  ],
Lines 847-852 Link Here
847
                "description": "Backfill Schedule currently active"
849
                "description": "Backfill Schedule currently active"
848
              }
850
              }
849
            }
851
            }
852
          },
853
          "meta": {
854
            "$ref": "#/components/schemas/v0.0.38_meta"
850
          }
855
          }
851
        }
856
        }
852
      },
857
      },
Lines 866-871 Link Here
866
            "items": {
871
            "items": {
867
              "$ref": "#/components/schemas/v0.0.38_ping"
872
              "$ref": "#/components/schemas/v0.0.38_ping"
868
            }
873
            }
874
          },
875
          "meta": {
876
            "$ref": "#/components/schemas/v0.0.38_meta"
869
          }
877
          }
870
        }
878
        }
871
      },
879
      },
Lines 1038-1043 Link Here
1038
            "items": {
1046
            "items": {
1039
              "$ref": "#/components/schemas/v0.0.38_partition"
1047
              "$ref": "#/components/schemas/v0.0.38_partition"
1040
            }
1048
            }
1049
          },
1050
          "meta": {
1051
            "$ref": "#/components/schemas/v0.0.38_meta"
1041
          }
1052
          }
1042
        }
1053
        }
1043
      },
1054
      },
Lines 1160-1165 Link Here
1160
          "errno": {
1171
          "errno": {
1161
            "type": "integer",
1172
            "type": "integer",
1162
            "description": "error number"
1173
            "description": "error number"
1174
          },
1175
          "error_code": {
1176
            "type": "integer"
1163
          }
1177
          }
1164
        }
1178
        }
1165
      },
1179
      },
Lines 1206-1211 Link Here
1206
          "job_submit_user_msg": {
1220
          "job_submit_user_msg": {
1207
            "description": "Message to user from job_submit plugin",
1221
            "description": "Message to user from job_submit plugin",
1208
            "type": "string"
1222
            "type": "string"
1223
          },
1224
          "meta": {
1225
            "$ref": "#/components/schemas/v0.0.38_meta"
1209
          }
1226
          }
1210
        }
1227
        }
1211
      },
1228
      },
Lines 1219-1225 Link Here
1219
            "description": "Executable script (full contents) to run in batch step"
1236
            "description": "Executable script (full contents) to run in batch step"
1220
          },
1237
          },
1221
          "job": {
1238
          "job": {
1222
            "description": "Properties of an array job or non-HetJob",
1223
            "$ref": "#/components/schemas/v0.0.38_job_properties"
1239
            "$ref": "#/components/schemas/v0.0.38_job_properties"
1224
          },
1240
          },
1225
          "jobs": {
1241
          "jobs": {
Lines 1228-1233 Link Here
1228
            "items": {
1244
            "items": {
1229
              "$ref": "#/components/schemas/v0.0.38_job_properties"
1245
              "$ref": "#/components/schemas/v0.0.38_job_properties"
1230
            }
1246
            }
1247
          },
1248
          "meta": {
1249
            "$ref": "#/components/schemas/v0.0.38_meta"
1231
          }
1250
          }
1232
        }
1251
        }
1233
      },
1252
      },
Lines 1247-1252 Link Here
1247
            "items": {
1266
            "items": {
1248
              "$ref": "#/components/schemas/v0.0.38_job_response_properties"
1267
              "$ref": "#/components/schemas/v0.0.38_job_response_properties"
1249
            }
1268
            }
1269
          },
1270
          "meta": {
1271
            "$ref": "#/components/schemas/v0.0.38_meta"
1250
          }
1272
          }
1251
        }
1273
        }
1252
      },
1274
      },
Lines 1725-1731 Link Here
1725
            "type": "object",
1747
            "type": "object",
1726
            "description": "node allocations",
1748
            "description": "node allocations",
1727
            "properties": {
1749
            "properties": {
1728
              "$ref": "#/components/schemas/v0.0.38_node_allocation"
1750
              "0": {
1751
                "$ref": "#/components/schemas/v0.0.38_node_allocation"
1752
              }
1729
            }
1753
            }
1730
          }
1754
          }
1731
        }
1755
        }
Lines 1743-1753 Link Here
1743
          },
1767
          },
1744
          "sockets": {
1768
          "sockets": {
1745
            "type": "object",
1769
            "type": "object",
1746
            "description": "assignment status of each socket by socket id"
1770
            "description": "FIXME",
1771
            "properties": {
1772
              "0": {
1773
                "type": "string"
1774
              }
1775
            }
1747
          },
1776
          },
1748
          "cores": {
1777
          "cores": {
1749
            "type": "object",
1778
            "type": "object",
1750
            "description": "assignment status of each core by core id"
1779
            "description": "FIXME",
1780
            "properties": {
1781
              "0": {
1782
                "type": "string"
1783
              }
1784
            }
1751
          }
1785
          }
1752
        }
1786
        }
1753
      },
1787
      },
Lines 2273-2281 Link Here
2273
            "items": {
2307
            "items": {
2274
              "$ref": "#/components/schemas/v0.0.38_node"
2308
              "$ref": "#/components/schemas/v0.0.38_node"
2275
            }
2309
            }
2310
          },
2311
          "meta": {
2312
            "$ref": "#/components/schemas/v0.0.38_meta"
2313
          }
2314
        }
2315
      },
2316
      "v0.0.38_meta": {
2317
        "type": "object",
2318
        "properties": {
2319
          "plugin": {
2320
            "type": "object",
2321
            "properties": {
2322
              "type": {
2323
                "type": "string",
2324
                "description": ""
2325
              },
2326
              "name": {
2327
                "type": "string",
2328
                "description": ""
2329
              }
2330
            }
2331
          },
2332
          "Slurm": {
2333
            "type": "object",
2334
            "description": "Slurm information",
2335
            "properties": {
2336
              "version": {
2337
                "type": "object",
2338
                "properties": {
2339
                  "major": {
2340
                    "type": "string",
2341
                    "description": ""
2342
                  },
2343
                  "micro": {
2344
                    "type": "string",
2345
                    "description": ""
2346
                  },
2347
                  "minor": {
2348
                    "type": "string",
2349
                    "description": ""
2350
                  }
2351
                }
2352
              },
2353
              "release": {
2354
                "type": "string",
2355
                "description": "version specifier"
2356
              }
2357
            }
2276
          }
2358
          }
2277
        }
2359
        }
2278
      }
2360
      }
2279
    }
2361
    }
2280
  }
2362
  }
2281
}
2363
}
2282
- 

Return to ticket 12897