11openapi : 3.0.0
22info :
33 title : HyperFleet API
4- version : 1.0.0
4+ version : 1.0.1
55 contact :
66 name : HyperFleet Team
77 license :
4040 application/json :
4141 schema :
4242 $ref : ' #/components/schemas/Error'
43+ security :
44+ - BearerAuth : []
4345 post :
4446 operationId : postCluster
4547 summary : Create cluster
7173 application/json :
7274 schema :
7375 $ref : ' #/components/schemas/ClusterCreateRequest'
76+ security :
77+ - BearerAuth : []
7478 /api/hyperfleet/v1/clusters/{cluster_id} :
7579 get :
7680 operationId : getClusterById
@@ -97,6 +101,8 @@ paths:
97101 application/json :
98102 schema :
99103 $ref : ' #/components/schemas/Error'
104+ security :
105+ - BearerAuth : []
100106 /api/hyperfleet/v1/clusters/{cluster_id}/nodepools :
101107 get :
102108 operationId : getNodePoolsByClusterId
@@ -129,6 +135,8 @@ paths:
129135 application/json :
130136 schema :
131137 $ref : ' #/components/schemas/Error'
138+ security :
139+ - BearerAuth : []
132140 post :
133141 operationId : createNodePool
134142 summary : Create nodepool
@@ -161,6 +169,8 @@ paths:
161169 application/json :
162170 schema :
163171 $ref : ' #/components/schemas/NodePoolCreateRequest'
172+ security :
173+ - BearerAuth : []
164174 /api/hyperfleet/v1/clusters/{cluster_id}/nodepools/{nodepool_id} :
165175 get :
166176 operationId : getNodePoolById
@@ -194,6 +204,8 @@ paths:
194204 application/json :
195205 schema :
196206 $ref : ' #/components/schemas/Error'
207+ security :
208+ - BearerAuth : []
197209 /api/hyperfleet/v1/clusters/{cluster_id}/nodepools/{nodepool_id}/statuses :
198210 post :
199211 operationId : postNodePoolStatuses
@@ -307,6 +319,8 @@ paths:
307319 application/json :
308320 schema :
309321 $ref : ' #/components/schemas/AdapterStatusCreateRequest'
322+ security :
323+ - BearerAuth : []
310324 get :
311325 operationId : getClusterStatuses
312326 summary : List all adapter statuses for cluster
@@ -334,6 +348,8 @@ paths:
334348 description : The server could not understand the request due to invalid syntax.
335349 ' 404 ' :
336350 description : The server cannot find the requested resource.
351+ security :
352+ - BearerAuth : []
337353 /api/hyperfleet/v1/nodepools :
338354 get :
339355 operationId : getNodePools
@@ -360,6 +376,8 @@ paths:
360376 application/json :
361377 schema :
362378 $ref : ' #/components/schemas/Error'
379+ security :
380+ - BearerAuth : []
363381components :
364382 parameters :
365383 QueryParams.order :
@@ -399,6 +417,9 @@ components:
399417 name : search
400418 in : query
401419 required : false
420+ description : |-
421+ Filter results using TSL (Tree Search Language) query syntax.
422+ Examples: `status.phase='NotReady'`, `name in ('c1','c2')`, `labels.region='us-east'`
402423 schema :
403424 type : string
404425 explode : false
@@ -704,9 +725,9 @@ components:
704725 default : Cluster
705726 name :
706727 type : string
707- minLength : 1
728+ minLength : 3
708729 maxLength : 63
709- pattern : ^[a-z0-9-]+ $
730+ pattern : ^[a-z0-9]([-a-z0-9]*[a-z0-9])? $
710731 description : Cluster name (unique)
711732 spec :
712733 allOf :
@@ -904,6 +925,7 @@ components:
904925 - updated_time
905926 - created_by
906927 - updated_by
928+ - generation
907929 - owner_references
908930 - status
909931 properties :
@@ -919,6 +941,11 @@ components:
919941 updated_by :
920942 type : string
921943 format : email
944+ generation :
945+ type : integer
946+ format : int32
947+ minimum : 1
948+ description : Generation field is updated on customer updates, reflecting the version of the "intent" of the customer
922949 owner_references :
923950 $ref : ' #/components/schemas/ObjectReference'
924951 status :
@@ -934,6 +961,7 @@ components:
934961 environment : production
935962 pooltype : worker
936963 spec : {}
964+ generation : 1
937965 created_time : ' 2021-01-01T00:00:00Z'
938966 updated_time : ' 2021-01-01T00:00:00Z'
939967 created_by : user-123@example.com
@@ -986,12 +1014,15 @@ components:
9861014 description : Resource URI
9871015 name :
9881016 type : string
1017+ minLength : 3
1018+ maxLength : 63
1019+ pattern : ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
9891020 description : NodePool name (unique in a cluster)
9901021 spec :
9911022 allOf :
9921023 - $ref : ' #/components/schemas/NodePoolSpec'
9931024 description : |-
994- Cluster specification
1025+ NodePool specification
9951026 CLM doesn't know how to unmarshall the spec, it only stores and forwards to adapters to do their job
9961027 But CLM will validate the schema before accepting the request
9971028 NodePoolCreateRequest :
@@ -1016,12 +1047,15 @@ components:
10161047 description : Resource URI
10171048 name :
10181049 type : string
1050+ minLength : 3
1051+ maxLength : 63
1052+ pattern : ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
10191053 description : NodePool name (unique in a cluster)
10201054 spec :
10211055 allOf :
10221056 - $ref : ' #/components/schemas/NodePoolSpec'
10231057 description : |-
1024- Cluster specification
1058+ NodePool specification
10251059 CLM doesn't know how to unmarshall the spec, it only stores and forwards to adapters to do their job
10261060 But CLM will validate the schema before accepting the request
10271061 example :
@@ -1037,6 +1071,7 @@ components:
10371071 - updated_time
10381072 - created_by
10391073 - updated_by
1074+ - generation
10401075 - owner_references
10411076 - status
10421077 - name
@@ -1054,6 +1089,11 @@ components:
10541089 updated_by :
10551090 type : string
10561091 format : email
1092+ generation :
1093+ type : integer
1094+ format : int32
1095+ minimum : 1
1096+ description : Generation field is updated on customer updates, reflecting the version of the "intent" of the customer
10571097 owner_references :
10581098 $ref : ' #/components/schemas/ObjectReference'
10591099 status :
@@ -1074,12 +1114,15 @@ components:
10741114 description : Resource URI
10751115 name :
10761116 type : string
1117+ minLength : 3
1118+ maxLength : 63
1119+ pattern : ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
10771120 description : NodePool name (unique in a cluster)
10781121 spec :
10791122 allOf :
10801123 - $ref : ' #/components/schemas/NodePoolSpec'
10811124 description : |-
1082- Cluster specification
1125+ NodePool specification
10831126 CLM doesn't know how to unmarshall the spec, it only stores and forwards to adapters to do their job
10841127 But CLM will validate the schema before accepting the request
10851128 NodePoolList :
@@ -1196,6 +1239,10 @@ components:
11961239 - Ready
11971240 - Failed
11981241 description : Phase of a resource (Cluster or NodePool)
1242+ securitySchemes :
1243+ BearerAuth :
1244+ type : http
1245+ scheme : bearer
11991246servers :
12001247 - url : https://hyperfleet.redhat.com
12011248 description : Production
0 commit comments