-
Notifications
You must be signed in to change notification settings - Fork 296
Expand file tree
/
Copy pathautoml.yaml
More file actions
1905 lines (1811 loc) · 68 KB
/
automl.yaml
File metadata and controls
1905 lines (1811 loc) · 68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: AutoML REST API
version: 1.0.0
description: REST API AutoML BFF
license:
name: Apache 2.0
url: "https://www.apache.org/licenses/LICENSE-2.0"
servers:
- url: "https://localhost:8080"
- url: "http://localhost:8080"
paths:
/healthcheck:
summary: Path targeted for healthcheck purposes.
description: >-
The REST endpoint/path used to allow a healthcheck update.
get:
tags:
- K8SOperation
responses:
"200":
description: "Ok"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: healthcheck
summary: HealthCheck
description: HealthCheck endpoint.
/api/v1/user:
summary: Path used to retrieve a user associated with the token.
description: >-
The REST endpoint/path used to get the configuration object.
get:
tags:
- K8SOperation
security:
- Bearer: []
responses:
"200":
$ref: "#/components/responses/ConfigResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getUser
summary: Get User
description: Get User endpoint.
/api/v1/namespaces:
summary: Path used to get available namespaces.
description: >-
The REST endpoint/path used to list available namespaces.
get:
tags:
- K8SOperation
responses:
"200":
description: "Ok"
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
description: Metadata about the response
data:
type: object
properties:
name:
type: string
example: default-namespace
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getNamespaces
summary: Get Available Namespaces
description: Get Available Namespaces endpoint.
/api/v1/model-registries:
summary: List available Model Registry instances
description: >-
Returns all ModelRegistry instances from the rhoai-model-registries namespace.
Registries are presented as global in the RHOAI UX; no namespace parameter is required.
Each entry includes the registry id, name, readiness, and server URL needed
to route subsequent model registration calls to the correct registry service.
Required RBAC: User must have 'list' permission for
modelregistries.modelregistry.opendatahub.io resources in the
rhoai-model-registries namespace. Returns 403 if permission is denied.
get:
tags:
- ModelRegistry
security:
- Bearer: []
responses:
"200":
$ref: "#/components/responses/ModelRegistriesResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getModelRegistries
summary: List Model Registries
description: >-
Returns all ModelRegistry instances visible to the authenticated user.
When no registries are installed the response is 200 with an empty list.
/api/v1/secrets:
summary: Path used to retrieve and filter secrets from a namespace.
description: >-
The REST endpoint/path used to list and filter Kubernetes secrets based on type and namespace.
get:
tags:
- K8SOperation
parameters:
- name: namespace
in: query
required: true
description: The namespace name to query secrets from
schema:
type: string
example: default
- name: type
in: query
required: false
description: >-
Secret type filter:
- 'storage': Filters for storage secrets (e.g., S3 secrets)
- Omit for all secrets
Type detection uses:
1. The 'opendatahub.io/connection-type' annotation value if present
2. Otherwise, key-based classification (case-sensitive, keys must be uppercase):
- S3 requires: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_S3_ENDPOINT
- AWS_DEFAULT_REGION is optional for classification; validate it from the 'data' field when needed
The 'data' field in the response contains all secret keys. Use it to validate additional requirements
for your use case (e.g., checking for AWS_S3_BUCKET or AWS_DEFAULT_REGION). Allowed keys show actual values; others show "[REDACTED]".
schema:
type: string
enum:
- storage
example: storage
responses:
"200":
$ref: "#/components/responses/SecretsResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getSecrets
summary: Get filtered secrets
description: >-
Retrieves secrets from a specified namespace with optional filtering by type.
Key matching is case-sensitive; keys must be uppercase.
Secret Type Detection:
1. First checks for the 'opendatahub.io/connection-type' annotation. If present, its value is used as the type.
2. Otherwise, performs key-based classification using required classification keys:
- 's3': S3 storage secrets (classification keys: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_S3_ENDPOINT; AWS_DEFAULT_REGION is optional)
Type Filtering:
- 'storage': Returns only secrets classified as storage types (currently: s3)
- No type: Returns all secrets with their detected type classification
Data Security:
The 'data' field contains all secret keys with redacted or actual values:
- Allowed keys (currently: AWS_S3_BUCKET) return actual values
- All other keys return "[REDACTED]"
Metadata:
- 'displayName': Extracted from 'openshift.io/display-name' annotation if present
- 'description': Extracted from 'openshift.io/description' annotation if present
/api/v1/s3/files/{key}:
summary: Endpoints for working with a specific file from an S3-compatible connection.
description: >-
The REST endpoint/path used to retrieve or upload files in S3 storage.
GET returns an arbitrary file with transfer-encoding: chunked for efficient streaming.
POST uploads a CSV file using multipart/form-data (part name `file`) and credentials
from a required Kubernetes secret; the stored object key may differ from the requested
`key` when a name collision is resolved (numeric suffix).
get:
tags:
- S3Operation
security:
- Bearer: []
parameters:
- name: namespace
in: query
required: true
description: The Kubernetes namespace containing the secret
schema:
type: string
example: default
- name: secretName
in: query
required: false
description: >-
Override: name of the Kubernetes secret containing S3 credentials.
When supplied, the secret must use the conventional AWS_* field names
(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION, AWS_S3_ENDPOINT).
When omitted, connection details (endpoint, credential field names, region, bucket)
are resolved from the DSPipelineApplication spec discovered in the namespace.
schema:
type: string
example: aws-secret-1
- name: bucket
in: query
required: false
description: >-
The S3 bucket name. Only honored when secretName is supplied (explicit mode).
In DSPA mode (secretName omitted), this parameter is ignored and the bucket
configured in the DSPipelineApplication spec is used instead; if the DSPA
does not specify a bucket the request is rejected with 400.
schema:
type: string
example: my-bucket
- name: key
in: path
required: true
description: The S3 object key to retrieve
schema:
type: string
pattern: '^\S(.*\S)?$'
example: documents/myfile.pdf
responses:
"200":
description: File retrieved successfully
content:
"*/*":
schema:
type: string
format: binary
description: The binary content of the requested file
headers:
Transfer-Encoding:
description: Set to 'chunked' for streaming large files
schema:
type: string
example: chunked
Content-Type:
description: The MIME type of the file
schema:
type: string
example: application/pdf
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
operationId: getS3File
summary: Get file from S3
description: >-
Retrieves an arbitrary file from S3 storage. The file is streamed with
transfer-encoding: chunked to efficiently handle large files.
Two credential resolution modes are supported:
**DSPA mode (default in production)** — when secretName is omitted, the endpoint,
region, bucket, and credential field names are read from the DSPipelineApplication
(DSPA) spec discovered in the namespace.
**Explicit mode (override)** — when secretName is supplied, the specified Kubernetes
secret must contain AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION,
and AWS_S3_ENDPOINT using those exact field names.
post:
tags:
- S3Operation
security:
- Bearer: []
parameters:
- name: namespace
in: query
required: true
description: The Kubernetes namespace containing the secret
schema:
type: string
maxLength: 63
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$'
example: default
- name: secretName
in: query
required: true
description: >-
Name of the Kubernetes secret containing S3 credentials (required for POST).
The secret must provide AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION,
and AWS_S3_ENDPOINT using those exact field names. Bucket may come from this secret
(e.g. AWS_S3_BUCKET) when the bucket query parameter is omitted.
schema:
type: string
maxLength: 253
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$'
example: aws-secret-1
- name: bucket
in: query
required: false
description: >-
The S3 bucket name. When omitted, the bucket is resolved from the secret (e.g. AWS_S3_BUCKET).
Leading and trailing whitespace is trimmed.
schema:
type: string
pattern: '^\S(.*\S)?$'
example: my-bucket
- name: key
in: path
required: true
description: >-
Requested S3 object key for the upload. If an object already exists at this key,
the server may store the file under a non-colliding key (e.g. `file-1.csv`); see the
response body `key` field for the actual object key.
schema:
type: string
pattern: '^\S(.*\S)?$'
example: data/training.csv
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
required:
- file
properties:
file:
type: string
format: binary
description: >-
CSV file to upload. Accepted as text/csv, or application/octet-stream / empty
Content-Type when the filename ends with .csv.
responses:
"201":
description: File uploaded successfully
content:
application/json:
schema:
$ref: "#/components/schemas/S3UploadSuccess"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
"413":
$ref: "#/components/responses/PayloadTooLarge"
"409":
$ref: "#/components/responses/Conflict"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: uploadS3CsvFile
summary: Upload CSV file to S3
description: >-
Uploads a CSV file to S3 using credentials from the specified Kubernetes secret.
The request must be multipart/form-data with a part named `file`.
Only CSV uploads are allowed: Content-Type `text/csv`, or `application/octet-stream` (or empty)
when the part filename ends with `.csv`. The body is size-limited (declared Content-Length
and total multipart size caps; file part max 32 MiB). Rejects with 413 when limits are exceeded.
On success, returns JSON with `uploaded: true` and the resolved `key` (which may differ
from the requested key if a collision was avoided by probing existing keys).
Returns 409 if the object key chosen after collision resolution still conflicts at upload time
(e.g. concurrent writer); the client should retry the upload.
/api/v1/s3/files/{key}/schema:
summary: Endpoint to get the schema (column names and types) of a CSV file from an S3-compatible connection.
description: >-
The REST endpoint/path used to retrieve the schema of a CSV file from S3 storage.
Reads the header and a minimum of 100 data rows to determine column names and infer data types.
The inferred types are for UI display and schema preview purposes only and do not modify
the underlying CSV data.
Type Inference Priority (highest to lowest):
1. bool - Accepts: true/false, t/f, yes/no, y/n, 1/0 (case-insensitive).
NOTE: Numeric values "0" and "1" are classified as boolean for schema display. Columns
containing only 0 and 1 values will show type "bool" rather than "integer". This is a
display classification only - the underlying numeric data remains unchanged and ML
processing is not affected. Binary features like is_premium: [0,1,0,1] will display as
bool but retain numeric values.
2. timestamp - Detects ISO8601, common date formats, and Unix timestamps in plausible ranges.
3. integer - Whole numbers without decimal points. Note: columns with only 0/1 values are
classified as bool (see above) for display purposes.
4. double - Numeric values with decimal points or that don't fit integer/bool.
5. string - Fallback for all other values.
Integer is assumed before double - columns are typed as integer until a decimal is found.
Uses proper CSV parsing to handle quoted values and different line endings (\n, \r\n, \r).
Returns an error if the file has fewer than 100 data rows.
get:
tags:
- S3Operation
security:
- Bearer: []
parameters:
- name: namespace
in: query
required: true
description: The Kubernetes namespace containing the secret
schema:
type: string
example: default
- name: secretName
in: query
required: false
description: >-
Override: name of the Kubernetes secret containing S3 credentials.
When supplied, the secret must use the conventional AWS_* field names
(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION, AWS_S3_ENDPOINT).
When omitted, connection details (endpoint, credential field names, region, bucket)
are resolved from the DSPipelineApplication spec discovered in the namespace.
schema:
type: string
example: aws-secret-1
- name: bucket
in: query
required: false
description: >-
The S3 bucket name. Only honored when secretName is supplied (explicit mode).
In DSPA mode (secretName omitted), this parameter is ignored and the bucket
configured in the DSPipelineApplication spec is used instead; if the DSPA
does not specify a bucket the request is rejected with 400.
schema:
type: string
example: my-bucket
- name: key
in: path
required: true
description: The S3 object key (CSV file) to retrieve schema from
schema:
type: string
pattern: '^\S(.*\S)?$'
example: data/training.csv
responses:
"200":
description: CSV schema retrieved successfully
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
columns:
type: array
items:
type: object
required:
- name
- type
properties:
name:
type: string
description: Column name from the CSV header
type:
type: string
enum: [integer, double, timestamp, bool, string]
description: Inferred data type of the column
values:
type: array
description: For boolean columns, the unique values found in the data
items:
oneOf:
- type: string
- type: number
- type: boolean
description: Array of column definitions with inferred types
example:
- name: "customerID"
type: "string"
- name: "gender"
type: "bool"
values: [0, 1]
- name: "age"
type: "integer"
- name: "price"
type: "double"
- name: "signup_date"
type: "timestamp"
parse_warnings:
type: integer
description: Number of rows that failed CSV parsing and were skipped during schema inference
example: 0
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
operationId: getS3FileSchema
summary: Get CSV schema with inferred types from S3
description: >-
Retrieves the column names and inferred data types from a CSV file in S3 storage.
Reads the header line plus a minimum of 100 data rows to accurately determine column types.
Two credential resolution modes are supported (same as /api/v1/s3/file):
**DSPA mode (default in production)** — when secretName is omitted, the endpoint,
region, bucket, and credential field names are read from the DSPipelineApplication
(DSPA) spec discovered in the namespace.
**Explicit mode (override)** — when secretName is supplied, the specified Kubernetes
secret must contain AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION,
and AWS_S3_ENDPOINT using those exact field names.
Type Inference Priority (highest to lowest):
1. bool - Matches: true/false, t/f, yes/no, y/n, 1/0 (case-insensitive).
NOTE: "0" and "1" are treated as boolean values for UI display purposes. A column
containing only 0 and 1 will be classified as bool, not integer. This classification
is for schema display only and does not modify the underlying data or affect ML processing.
Binary numeric features (e.g., is_premium: [0,1,0,1]) will display as bool type but
retain their numeric values.
2. timestamp - Recognizes ISO8601, common date formats, Unix epoch timestamps.
3. integer - Whole numbers without decimals (excluding 0/1-only columns, which display as bool).
4. double - Numbers with decimal points or outside integer range.
5. string - Default fallback for all other values.
Integer is assumed before double - columns with only whole numbers are typed as integer,
but if any decimal value is found, the column becomes double.
For boolean columns, returns the unique values found in the data.
Supports all common line endings (\n, \r\n, \r) and properly handles quoted CSV fields.
Returns a 400 Bad Request error if the file has fewer than 100 data rows.
/api/v1/s3/files:
summary: Endpoints for dealing with multiple files within an S3-compatible connection
get:
operationId: getS3Files
summary: Get files from S3
description: >-
Retrieves a list of files from an S3-compatible storage.
Returns the files in a list, plus any additional metadata that ListObjectsV2 returns.
Two credential resolution modes are supported:
(1) **DSPA mode (default in production)** — when secretName is omitted, the endpoint,
region, bucket, and credential field names are read from the DSPipelineApplication
(DSPA) spec discovered in the namespace.
(2) **Explicit mode (override)** — when secretName is supplied, the specified Kubernetes
secret must contain AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION,
and AWS_S3_ENDPOINT using those exact field names.
tags:
- S3Operation
security:
- Bearer: []
parameters:
- name: namespace
in: query
required: true
description: The Kubernetes namespace containing the secret
schema:
type: string
example: default
- name: secretName
in: query
required: false
description: >-
Override: name of the Kubernetes secret containing S3 credentials.
When supplied, the secret must use the conventional AWS_* field names
(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION, AWS_S3_ENDPOINT).
When omitted, the endpoint falls back to DSPA mode and reads credentials from
the DSPipelineApplication spec discovered in the namespace.
schema:
type: string
maxLength: 253
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$'
example: aws-secret-1
- name: bucket
in: query
required: false
description: >-
The S3 bucket name. Only honored when secretName is supplied (explicit mode).
In DSPA mode (secretName omitted), this parameter is ignored and the bucket
configured in the DSPipelineApplication spec is used instead; if the DSPA
does not specify a bucket the request is rejected with 400.
schema:
type: string
pattern: '^\S(.*\S)?$'
example: my-bucket
- name: path
in: query
required: false
description: (Optional) S3-like folder path to search within (if omitted, lists bucket root). When provided, must be non-empty and not exceed 1024 characters.
schema:
type: string
minLength: 1
maxLength: 1024
example: folder1/folder2/folder3
- name: search
in: query
required: false
description: The search term to filter results by. S3 only allows searching by leading values. Must not contain '/' characters. Maximum 1024 characters.
schema:
type: string
maxLength: 1024
pattern: "^[^/]*$"
example: my-search-query
- name: next
in: query
required: false
description: The token value to use for the next page
schema:
type: string
minLength: 1
example: /continuationtokenexample
- name: limit
in: query
required: false
description: The limit for the number of items to return per page
schema:
type: integer
minimum: 1
maximum: 1000
default: 1000
example: 20
responses:
"200":
$ref: "#/components/responses/S3GetFilesResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
# =============================================================================
# MODEL REGISTRY ENDPOINTS
# =============================================================================
/api/v1/model-registries/{registryId}/models:
summary: Register a model in a specific Model Registry instance
description: >-
Registers a model binary by creating a RegisteredModel, ModelVersion, and
ModelArtifact in the specified Model Registry instance. The model binary
remains in S3; the ModelArtifact.uri points to the S3 location.
The registryId path parameter is the Kubernetes UID of the ModelRegistry CR
(from GET /api/v1/model-registries). The BFF resolves the server_url for that
instance and POSTs to the Model Registry REST API.
Returns 404 if the ID is unknown, 403 if the user cannot list ModelRegistries,
and 503 if the registry exists but is not ready.
post:
tags:
- ModelRegistry
security:
- Bearer: []
parameters:
- $ref: "#/components/parameters/namespace"
- name: registryId
in: path
required: true
schema:
type: string
description: Kubernetes UID of the target ModelRegistry CR (from GET /api/v1/model-registries id field)
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RegisterModelRequest"
responses:
"201":
$ref: "#/components/responses/RegisterModelResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
"409":
$ref: "#/components/responses/Conflict"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
operationId: registerModel
summary: Register model binary
description: >-
Creates RegisteredModel, ModelVersion, and ModelArtifact in the Model Registry,
linking the artifact to the provided S3 URI. Requires s3_path, model_name,
and version_name in the request body.
# =============================================================================
# PIPELINE RUNS ENDPOINTS
# =============================================================================
/api/v1/pipeline-runs:
summary: Pipeline run operations
description: >-
Endpoints for listing pipeline runs from the Pipeline Server
in the specified namespace. The Pipeline Server (DSPipelineApplication)
and AutoML managed pipeline are automatically discovered.
get:
tags:
- PipelineOperation
security:
- Bearer: []
parameters:
- $ref: "#/components/parameters/namespace"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/page"
responses:
"200":
$ref: "#/components/responses/PipelineRunsResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
operationId: getPipelineRuns
summary: Get Pipeline Runs
description: >-
Returns merged pipeline runs from all auto-discovered AutoML pipelines (time-series
and tabular). Runs are sorted by creation time descending and paginated using
page/pageSize. Returns 500 if no managed AutoML pipelines are found in the namespace.
post:
tags:
- PipelineOperation
security:
- Bearer: []
parameters:
- $ref: "#/components/parameters/namespace"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CreateAutoMLRunRequest"
examples:
tabular-binary:
summary: Tabular binary classification pipeline request
value:
display_name: "Credit Risk Binary Classification"
description: "Binary classification for credit default prediction"
train_data_secret_name: "s3-credentials"
train_data_bucket_name: "ml-datasets"
train_data_file_key: "credit/train.csv"
label_column: "default"
task_type: "binary"
top_n: 5
tabular-multiclass:
summary: Tabular multiclass classification pipeline request
value:
display_name: "Customer Segmentation"
description: "Multiclass classification for customer categorization"
train_data_secret_name: "s3-credentials"
train_data_bucket_name: "ml-datasets"
train_data_file_key: "customers/train.csv"
label_column: "segment"
task_type: "multiclass"
top_n: 5
tabular-regression:
summary: Tabular regression pipeline request
value:
display_name: "House Price Prediction"
description: "Regression model for house price estimation"
train_data_secret_name: "s3-credentials"
train_data_bucket_name: "ml-datasets"
train_data_file_key: "housing/train.csv"
label_column: "price"
task_type: "regression"
top_n: 3
timeseries:
summary: Timeseries forecasting pipeline request
value:
display_name: "Sales Forecasting"
description: "7-day ahead sales forecast by store"
train_data_secret_name: "s3-credentials"
train_data_bucket_name: "ml-datasets"
train_data_file_key: "sales/historical.csv"
task_type: "timeseries"
target: "sales"
id_column: "store_id"
timestamp_column: "date"
prediction_length: 7
known_covariates_names: ["temperature", "is_holiday"]
top_n: 3
responses:
"200":
$ref: "#/components/responses/CreatePipelineRunResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
operationId: createPipelineRun
summary: Create Pipeline Run
description: >-
Creates a new AutoML pipeline run using the auto-discovered pipeline for the
requested task type. The task_type field in the request body determines which
pipeline to use and must be provided.
Request body schema requirements based on task_type:
- task_type=binary/multiclass/regression: Requires CreateTabularRunRequest schema with fields:
label_column (required), task_type (required, enum: binary/multiclass/regression)
- task_type=timeseries: Requires CreateTimeSeriesRunRequest schema with fields:
target (required), id_column (required), timestamp_column (required),
task_type (required, must be "timeseries"),
prediction_length (optional, default: 1), known_covariates_names (optional array)
/api/v1/pipeline-runs/{runId}:
summary: Get a single pipeline run by ID
description: >-
Retrieves a single pipeline run by its unique identifier from the
Pipeline Server in the specified namespace. The Pipeline Server
(DSPipelineApplication) and AutoML managed pipeline are automatically discovered.
get:
tags:
- PipelineOperation
security:
- Bearer: []
parameters:
- $ref: "#/components/parameters/namespace"
- name: runId
in: path
required: true
schema:
type: string
description: Unique identifier of the pipeline run
example: "abc123-def456-ghi789"
responses:
"200":
$ref: "#/components/responses/PipelineRunResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
operationId: getPipelineRunById
summary: Get Pipeline Run by ID
description: Returns a single pipeline run by its unique identifier
/api/v1/pipeline-runs/{runId}/terminate:
summary: Terminate an active pipeline run
description: >-
Terminates an active pipeline run, cancelling all running tasks and transitioning the run
to CANCELING and then CANCELED state. The run must be in an active state (PENDING, RUNNING,
PAUSED, or CANCELING) and belong to one of the discovered AutoML pipelines in the namespace.
Returns 400 if the run is not in a terminatable state, or 404 if the run doesn't exist or
belongs to a different pipeline.
post:
tags:
- PipelineOperation
security:
- Bearer: []
parameters:
- $ref: "#/components/parameters/namespace"
- name: runId
in: path
required: true
schema:
type: string
description: Unique identifier of the pipeline run to terminate
example: "abc123-def456-ghi789"
responses:
"200":
description: Run terminated successfully
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
operationId: terminatePipelineRun
summary: Terminate Pipeline Run
description: >-
Terminates an active AutoML pipeline run by transitioning it to CANCELING and then
CANCELED state. The run must be in an active state (PENDING, RUNNING, PAUSED, or
CANCELING). The BFF validates that the run belongs to one of the discovered AutoML
managed pipelines in the namespace and that it is in a terminatable state before
proceeding. Returns 400 if the run is not in a terminatable state.
/api/v1/pipeline-runs/{runId}/retry:
summary: Retry a failed or canceled pipeline run
description: >-
Re-initiates a failed or canceled pipeline run from the point of failure. The run must
belong to one of the discovered AutoML pipelines in the namespace and must be in FAILED or
CANCELED state. Returns 400 if the run is not in a retryable state, or 404 if the run
doesn't exist or belongs to a different pipeline.
post:
tags:
- PipelineOperation
security:
- Bearer: []
parameters:
- $ref: "#/components/parameters/namespace"
- name: runId
in: path
required: true
schema:
type: string
description: Unique identifier of the pipeline run to retry
example: "abc123-def456-ghi789"
responses:
"200":
description: Run retry initiated successfully
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
operationId: retryPipelineRun
summary: Retry Pipeline Run
description: >-
Re-initiates a failed or canceled AutoML pipeline run. The BFF validates that the run
belongs to one of the discovered AutoML managed pipelines in the namespace and that it
is in a retryable state (FAILED or CANCELED) before retrying it. This prevents users
from retrying runs from other pipelines in the same namespace.
components:
schemas:
Config:
required:
- userId
- clusterAdmin
type: object
properties:
userId:
type: string
example: [email protected]
clusterAdmin:
type: boolean
example: true
# Secret Schemas
SecretTypeSchema:
description: >-
Schema defining the classification keys for a secret type.