-
Notifications
You must be signed in to change notification settings - Fork 183
Expand file tree
/
Copy pathmod-arch.yaml
More file actions
4200 lines (4159 loc) · 139 KB
/
Copy pathmod-arch.yaml
File metadata and controls
4200 lines (4159 loc) · 139 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: Model Registry Mod Arch REST API
version: 1.0.0
description: REST API Model Registry 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/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: Returns available namespaces in the cluster.
/api/v1/user:
summary: Path used to Retrieve a user based on the header.
description: >-
The REST endpoint/path used pass all the config information needed for the UI.
get:
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"200":
$ref: "#/components/responses/ConfigResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getConfig
summary: Get configuration info
description: Gets the configuration information needed for the UI [TBD]
/api/v1/model_registry:
summary: Path used to manage the list of Model Registry.
description: >-
The REST endpoint/path used to list `Model Registry` entities. This path contains a `GET` to perform the list of the resource.
get:
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"200":
$ref: "#/components/responses/ModelRegistryResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getModelRegistries
summary: List All Model Registries
description: Gets a list of all `Model Registry` entities.
/api/v1/settings/model_registry:
summary: Path used to manage Model Registry resources.
description: >-
The REST endpoint/path used to list and create Model Registry resources.
get:
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"200":
$ref: "#/components/responses/ModelRegistryKindListResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getModelRegistrySettings
summary: List All Model Registry Settings
description: Gets a list of all Model Registry settings.
post:
requestBody:
description: A new Model Registry settings to be created, potentially including credentials.
content:
application/json:
schema:
$ref: "#/components/schemas/ModelRegistrySettingsPayload" # New schema for create payload
required: true
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"201":
$ref: "#/components/responses/ModelRegistryKindResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: createModelRegistrySettings
summary: Create Model Registry Settings
description: Creates a new instance of Model Registry settings.
/api/v1/settings/model_registry/{modelRegistryId}:
summary: Path used to manage Model Registry resources.
description: >-
The REST endpoint/path used to get, update and delete a single Model Registry resource.
# Add GET operation
get:
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/modelRegistryId" # Use the correct parameter name
responses:
"200":
# Define a response that might include credentials
$ref: "#/components/responses/ModelRegistryAndCredentialsResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getModelRegistrySetting # Renamed for clarity
summary: Get Model Registry Settings
description: Gets the details of a single Model Registry settings, potentially including related credentials.
patch:
requestBody:
description: Updated Model Registry settings information.
content:
application/json:
schema:
# Use the new payload schema to allow optional credentials
$ref: "#/components/schemas/ModelRegistrySettingsPayload" # New schema for update payload
required: true
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/modelRegistryId"
responses:
"200":
$ref: "#/components/responses/ModelRegistryKindResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: updateModelRegistrySettings
summary: Update Model Registry Settings
description: Updates an existing Model Registry settings.
delete:
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/modelRegistryId"
responses:
"204":
description: Successfully deleted
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: deleteModelRegistrySettings
summary: Delete Model Registry Settings
description: Deletes an existing Model Registry settings.
# New path for certificates
/api/v1/settings/certificates:
summary: Path used to list available certificates (Secrets and ConfigMaps).
description: >-
The REST endpoint/path used to list Secrets and ConfigMaps that can be used for TLS/SSL configuration in Model Registries.
get:
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"200":
$ref: "#/components/responses/CertificateListResponse" # New response type needed
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getCertificates
summary: List Available Certificates
description: Gets lists of Secrets and ConfigMaps suitable for certificate usage.
# New path for role bindings
/api/v1/settings/role_bindings:
summary: Path used to manage Role Bindings for Model Registries.
description: >-
The REST endpoint/path used to list and create Role Bindings associated with Model Registries.
get:
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"200":
$ref: "#/components/responses/RoleBindingListResponse" # New response type needed
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getRoleBindings
summary: List Model Registry Role Bindings
description: Gets a list of Role Bindings associated with Model Registries.
post:
requestBody:
description: A new Role Binding to be created.
content:
application/json:
schema:
$ref: "#/components/schemas/RoleBinding" # New schema needed
required: true
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"201":
$ref: "#/components/responses/RoleBindingResponse" # New response type needed
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"409":
$ref: "#/components/responses/ConflictResponse"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: createRoleBinding
summary: Create Model Registry Role Binding
description: Creates a new Role Binding associated with Model Registries.
# New path for specific role binding
/api/v1/settings/role_bindings/{roleBindingName}:
summary: Path used to manage a single Role Binding for Model Registries.
description: >-
The REST endpoint/path used to update or delete a specific Role Binding associated with Model Registries.
patch:
requestBody:
description: Updated Role Binding data.
content:
application/json:
schema:
$ref: "#/components/schemas/RoleBinding"
required: true
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/roleBindingName"
responses:
"200":
$ref: "#/components/responses/RoleBindingResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: patchRoleBinding
summary: Update Model Registry Role Binding
description: Updates an existing Role Binding associated with Model Registries.
delete:
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/roleBindingName" # New parameter needed
responses:
"204":
description: Successfully deleted
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: deleteRoleBinding
summary: Delete Model Registry Role Binding
description: Deletes an existing Role Binding associated with Model Registries.
parameters: # Add parameters at the path level
- $ref: "#/components/parameters/roleBindingName" # Ensure this path parameter is defined
/api/v1/settings/groups:
summary: Path used to get available groups.
description: >-
The REST endpoint/path used to get a list of all available OpenShift/Kubernetes groups in the cluster.
get:
tags:
- K8SOperation
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/namespace"
responses:
"200":
description: "Ok"
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: "#/components/schemas/Group"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getGroups
summary: Get Available Groups
description: Returns available OpenShift/Kubernetes groups in the cluster.
/api/v1/model_registry/{modelRegistryName}/model_versions/{modelversionId}:
summary: Path used to manage a single ModelVersion.
description: >-
The REST endpoint/path used to get and update single instances of an `ModelVersion`. This path contains `GET` and `PATCH` operations used to perform the get and update tasks, respectively.
get:
tags:
- ModelRegistryService
parameters:
- $ref: "#/components/parameters/modelRegistryName"
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/modelversionId"
responses:
"200":
$ref: "#/components/responses/ModelVersionResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getModelVersion
summary: Get a ModelVersion
description: Gets the details of a single instance of a `ModelVersion`.
patch:
requestBody:
description: Updated `ModelVersion` information.
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
description: Metadata about the response
data:
$ref: "#/components/schemas/ModelVersionUpdate"
required: true
tags:
- ModelRegistryService
responses:
"200":
$ref: "#/components/responses/ModelVersionResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: updateModelVersion
summary: Update a ModelVersion
description: Updates an existing `ModelVersion`.
parameters:
- $ref: "#/components/parameters/modelRegistryName"
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/modelversionId"
/api/v1/model_registry/{modelRegistryName}/registered_models:
summary: Path used to manage the list of registeredmodels.
description: >-
The REST endpoint/path used to list and create zero or more `RegisteredModel` entities. This path contains a `GET` and `POST` operation to perform the list and create tasks, respectively.
get:
tags:
- ModelRegistryService
parameters:
- $ref: "#/components/parameters/modelRegistryName"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/orderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"200":
$ref: "#/components/responses/RegisteredModelListResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getRegisteredModels
summary: List All RegisteredModels
description: Gets a list of all `RegisteredModel` entities.
post:
requestBody:
description: A new `RegisteredModel` to be created.
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
description: Metadata about the response
data:
$ref: "#/components/schemas/RegisteredModelCreate"
required: true
tags:
- ModelRegistryService
parameters:
- $ref: "#/components/parameters/modelRegistryName"
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"201":
$ref: "#/components/responses/RegisteredModelResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: createRegisteredModel
summary: Create a RegisteredModel
description: Creates a new instance of a `RegisteredModel`.
/api/v1/model_registry/{modelRegistryName}/registered_models/{registeredmodelId}:
summary: Path used to manage a single RegisteredModel.
description: >-
The REST endpoint/path used to get and update single instances of an `RegisteredModel`. This path contains `GET` and `PATCH` operations used to perform the get and update tasks, respectively.
get:
tags:
- ModelRegistryService
parameters:
- $ref: "#/components/parameters/modelRegistryName"
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"200":
$ref: "#/components/responses/RegisteredModelResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getRegisteredModel
summary: Get a RegisteredModel
description: Gets the details of a single instance of a `RegisteredModel`.
patch:
requestBody:
description: Updated `RegisteredModel` information.
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
description: Metadata about the response
data:
$ref: "#/components/schemas/RegisteredModelUpdate"
required: true
tags:
- ModelRegistryService
responses:
"200":
$ref: "#/components/responses/RegisteredModelResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: updateRegisteredModel
summary: Update a RegisteredModel
description: Updates an existing `RegisteredModel`.
parameters:
- $ref: "#/components/parameters/modelRegistryName"
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/registeredmodelId"
/api/v1/model_registry/{modelRegistryName}/model_versions/{modelversionId}/artifacts:
summary: Path used to manage the list of artifacts for a modelversion.
description: >-
The REST endpoint/path used to list and create zero or more `Artifact` entities for a `ModelVersion`. This path contains a `GET` and `POST` operation to perform the list and create tasks, respectively.
get:
tags:
- ModelRegistryService
parameters:
- $ref: "#/components/parameters/modelRegistryName"
- $ref: "#/components/parameters/name"
- $ref: "#/components/parameters/externalId"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/orderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/modelversionId"
responses:
"200":
$ref: "#/components/responses/ArtifactListResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getModelVersionArtifacts
summary: List all artifacts associated with the `ModelVersion`
post:
requestBody:
description: A new or existing `Artifact` to be associated with the `ModelVersion`.
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
description: Metadata about the response
data:
$ref: "#/components/schemas/Artifact"
required: true
tags:
- ModelRegistryService
parameters:
- $ref: "#/components/parameters/modelRegistryName"
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"200":
$ref: "#/components/responses/ArtifactResponse"
"201":
$ref: "#/components/responses/ArtifactResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: createModelVersionArtifact
summary: Create an Artifact in a ModelVersion
description: Creates a new instance of an Artifact if needed and associates it with `ModelVersion`.
parameters:
- $ref: "#/components/parameters/modelversionId"
"/api/v1/model_registry/{modelRegistryName}/registered_models/{registeredmodelId}/versions":
summary: Path used to manage the list of modelversions for a registeredmodel.
description: >-
The REST endpoint/path used to list and create zero or more `ModelVersion` entities for a `RegisteredModel`. This path contains a `GET` and `POST` operation to perform the list and create tasks, respectively.
get:
tags:
- ModelRegistryService
parameters:
- $ref: "#/components/parameters/name"
- $ref: "#/components/parameters/externalId"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/orderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"200":
$ref: "#/components/responses/ModelVersionListResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getRegisteredModelVersions
summary: List All RegisteredModel's ModelVersions
description: Gets a list of all `ModelVersion` entities for the `RegisteredModel`.
post:
requestBody:
description: A new `ModelVersion` to be created.
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
description: Metadata about the response
data:
$ref: "#/components/schemas/ModelVersion"
required: true
tags:
- ModelRegistryService
responses:
"201":
$ref: "#/components/responses/ModelVersionResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: createRegisteredModelVersion
summary: Create a ModelVersion in RegisteredModel
description: Creates a new instance of a `ModelVersion`.
parameters:
- $ref: "#/components/parameters/modelRegistryName"
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/registeredmodelId"
/api/v1/model_registry/{modelRegistryName}/model_artifact/{modelArtifactId}:
summary: Path used to patch Model Artifacts
description: >-
The REST endpoint/path used patch single instances of an `ModelArtifact`. This path contains`PATCH` operation used to perform the patch tasks.
patch:
requestBody:
description: Updated `ModelArtifact` information.
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
description: Metadata about the response
data:
$ref: "#/components/schemas/Artifact"
required: true
tags:
- ModelRegistryService
responses:
"200":
$ref: "#/components/responses/ArtifactResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: patchModelArtifact
summary: Patch a Model Artifact
description: Patch an existing `Model Artifact`.
parameters:
- $ref: "#/components/parameters/modelRegistryName"
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/modelArtifactId"
# New Model catalog endpoints
/api/v1/model_catalog/models:
description: >-
The REST endpoint/path used to list zero or more `CatalogModel` entities from all `CatalogSources`.
get:
summary: Search catalog models across sources.
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- name: source
description: |-
Filter models by source. This parameter may be included multiple
times to include models from multiple sources.
schema:
type: string
in: query
required: false
- name: sourceLabel
description: |-
Filter models by the label associated with the source. This
parameter may be included multiple times to include models from
multiple sources.
schema:
type: string
in: query
required: false
- name: q
description: Free-form keyword search used to filter the response.
schema:
type: string
in: query
required: false
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/orderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
- $ref: "#/components/parameters/filterQuery"
responses:
"200":
$ref: "#/components/responses/CatalogModelListResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findModels
/api/v1/model_catalog/models/filter_options:
description: Lists options for `filterQuery` when listing models.
get:
summary: Lists fields and available options that can be used in `filterQuery` on the list models endpoint.
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
responses:
"200":
$ref: "#/components/responses/FilterOptionsResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findModelsFilterOptions
/api/v1/model_catalog/sources:
summary: Path used to get the list of catalog sources.
description: >-
The REST endpoint/path used to list zero or more `CatalogSource` entities.
get:
summary: List All CatalogSources
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/name"
- $ref: "#/components/parameters/assetType"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/orderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
responses:
"200":
$ref: "#/components/responses/CatalogSourceListResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findSources
description: Gets a list of all `CatalogSource` entities.
/api/v1/model_catalog/labels:
summary: Path used to get the list of catalog labels.
description: >-
The REST endpoint/path used to list zero or more `CatalogLabel` entities.
get:
summary: List All CatalogLabels
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/assetType"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/orderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
responses:
"200":
$ref: "#/components/responses/CatalogLabelListResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findLabels
description: Gets a list of all `CatalogLabel` entities. Use `assetType` to filter labels by asset type.
/api/v1/model_catalog/sources/{sourceId}/models/{CatalogModelName+}:
description: >-
The REST endpoint/path used to get a `CatalogModel`.
get:
summary: Get a `CatalogModel`.
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- name: sourceId
description: A unique identifier for a `CatalogSource`.
schema:
type: string
in: path
required: true
- name: CatalogModelName+
description: A unique identifier for the model.
schema:
type: string
in: path
required: true
responses:
"200":
$ref: "#/components/responses/CatalogModelResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getModel
/api/v1/model_catalog/sources/{sourceId}/artifacts/{CatalogModelName+}:
description: >-
The REST endpoint/path used to list `CatalogModelArtifacts`.
get:
summary: List CatalogModelArtifacts.
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- name: sourceId
description: A unique identifier for a `CatalogSource`.
schema:
type: string
in: path
required: true
- name: CatalogModelName+
description: A unique identifier for the model.
schema:
type: string
in: path
required: true
- $ref: "#/components/parameters/catalogArtifactType"
- $ref: "#/components/parameters/filterQuery"
responses:
"200":
$ref: "#/components/responses/CatalogModelArtifactListResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getAllModelArtifacts
/api/v1/model_catalog/sources/{sourceId}/performance_artifacts/{CatalogModelName+}:
description: >-
The REST endpoint/path used to list `CatalogModelPerformanceArtifacts`.
get:
summary: List CatalogModelPerformanceArtifacts.
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- name: sourceId
description: A unique identifier for a `CatalogSource`.
schema:
type: string
in: path
required: true
- name: CatalogModelName+
description: A unique identifier for the model.
schema:
type: string
in: path
required: true
- name: targetRPS
description: |-
Target requests per second. If specified, values for `replicas` and
`total_requests_per_second` will be calculated and returned as custom
properties.
schema:
type: integer
in: query
- name: recommendations
description: Filter records that are less optimal based on approximate cost to run and latency.
schema:
type: boolean
default: false
in: query
- name: rpsProperty
description: Custom property name for requests per second metric.
schema:
type: string
default: "requests_per_second"
in: query
- name: latencyProperty
description: Custom property name for latency metric (e.g., ttft_p90, p90_latency).
schema:
type: string
default: "ttft_p90"
in: query
- name: hardwareCountProperty
description: Custom property name for hardware count metric.
schema:
type: string
default: "hardware_count"
in: query
- name: hardwareTypeProperty
description: Custom property name for hardware type grouping.
schema:
type: string
default: "hardware_type"
in: query
- $ref: "#/components/parameters/filterQuery"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/artifactOrderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
responses:
"200":
$ref: "#/components/responses/CatalogModelArtifactListResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getPerformanceArtifacts
# MCP server catalog endpoints
/api/v1/mcp_catalog/mcp_servers:
summary: Path used to get the list of MCP servers.
description: >-
The REST endpoint/path used to list zero or more `McpServer` entities.
get:
summary: List MCP servers
tags:
- MCPCatalogService
parameters:
- $ref: "#/components/parameters/kubeflowUserId"
- $ref: "#/components/parameters/namespace"
- $ref: "#/components/parameters/name"
- name: q
description: Free-form keyword search across name, description, and provider.
schema:
type: string
in: query
required: false
- $ref: "#/components/parameters/mcpServerFilterQuery"
- $ref: "#/components/parameters/mcpNamedQuery"
- $ref: "#/components/parameters/mcpIncludeTools"
- $ref: "#/components/parameters/mcpToolLimit"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/orderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
responses:
"200":
$ref: "#/components/responses/McpServerListResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getAllMcpServers
description: Gets a list of all `McpServer` entities.
/api/v1/mcp_catalog/mcp_servers_filter_options:
summary: Path used to get filter options for MCP servers.
description: >-
The REST endpoint/path used to list filter options and named queries for listing MCP servers.
get:
summary: List MCP server filter options