kb-cloud-client-typescript 2.4.0-alpha.155 → 2.4.0-alpha.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/dist/adminapi/apis/cluster-api.d.ts +72 -0
  2. package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-api.js +79 -0
  4. package/dist/adminapi/apis/cluster-api.js.map +1 -1
  5. package/dist/adminapi/apis/shared-api.d.ts +72 -0
  6. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/shared-api.js +79 -0
  8. package/dist/adminapi/apis/shared-api.js.map +1 -1
  9. package/dist/adminapi/models/cluster-event-item.d.ts +91 -0
  10. package/dist/adminapi/models/cluster-event-item.d.ts.map +1 -0
  11. package/dist/adminapi/models/cluster-event-item.js +16 -0
  12. package/dist/adminapi/models/cluster-event-item.js.map +1 -0
  13. package/dist/adminapi/models/cluster-event-list.d.ts +32 -0
  14. package/dist/adminapi/models/cluster-event-list.d.ts.map +1 -0
  15. package/dist/adminapi/models/cluster-event-list.js +16 -0
  16. package/dist/adminapi/models/cluster-event-list.js.map +1 -0
  17. package/dist/adminapi/models/environment.d.ts +6 -0
  18. package/dist/adminapi/models/environment.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.d.ts +2 -0
  20. package/dist/adminapi/models/index.d.ts.map +1 -1
  21. package/dist/adminapi/models/index.js +2 -0
  22. package/dist/adminapi/models/index.js.map +1 -1
  23. package/dist/adminapi/models/platform-component-node.d.ts +20 -1
  24. package/dist/adminapi/models/platform-component-node.d.ts.map +1 -1
  25. package/dist/adminapi/models/platform-component-overview.d.ts +1 -1
  26. package/dist/internalapi/api.d.ts +2 -0
  27. package/dist/internalapi/api.d.ts.map +1 -1
  28. package/dist/internalapi/api.js +2 -0
  29. package/dist/internalapi/api.js.map +1 -1
  30. package/dist/internalapi/apis/environment-api.d.ts +112 -0
  31. package/dist/internalapi/apis/environment-api.d.ts.map +1 -1
  32. package/dist/internalapi/apis/environment-api.js +135 -0
  33. package/dist/internalapi/apis/environment-api.js.map +1 -1
  34. package/dist/internalapi/apis/image-registry-api.d.ts +142 -0
  35. package/dist/internalapi/apis/image-registry-api.d.ts.map +1 -0
  36. package/dist/internalapi/apis/image-registry-api.js +192 -0
  37. package/dist/internalapi/apis/image-registry-api.js.map +1 -0
  38. package/dist/internalapi/apis/task-api.d.ts +256 -0
  39. package/dist/internalapi/apis/task-api.d.ts.map +1 -0
  40. package/dist/internalapi/apis/task-api.js +290 -0
  41. package/dist/internalapi/apis/task-api.js.map +1 -0
  42. package/dist/internalapi/models/autohealing-config.d.ts +55 -0
  43. package/dist/internalapi/models/autohealing-config.d.ts.map +1 -0
  44. package/dist/internalapi/models/autohealing-config.js +16 -0
  45. package/dist/internalapi/models/autohealing-config.js.map +1 -0
  46. package/dist/internalapi/models/cluster-info.d.ts +37 -0
  47. package/dist/internalapi/models/cluster-info.d.ts.map +1 -0
  48. package/dist/internalapi/models/cluster-info.js +16 -0
  49. package/dist/internalapi/models/cluster-info.js.map +1 -0
  50. package/dist/internalapi/models/cluster-scheduling-policy.d.ts +24 -0
  51. package/dist/internalapi/models/cluster-scheduling-policy.d.ts.map +1 -0
  52. package/dist/internalapi/models/cluster-scheduling-policy.js +28 -0
  53. package/dist/internalapi/models/cluster-scheduling-policy.js.map +1 -0
  54. package/dist/internalapi/models/cluster-validation-policy.d.ts +23 -0
  55. package/dist/internalapi/models/cluster-validation-policy.d.ts.map +1 -0
  56. package/dist/internalapi/models/cluster-validation-policy.js +27 -0
  57. package/dist/internalapi/models/cluster-validation-policy.js.map +1 -0
  58. package/dist/internalapi/models/component.d.ts +79 -0
  59. package/dist/internalapi/models/component.d.ts.map +1 -0
  60. package/dist/internalapi/models/component.js +16 -0
  61. package/dist/internalapi/models/component.js.map +1 -0
  62. package/dist/internalapi/models/dns.d.ts +31 -0
  63. package/dist/internalapi/models/dns.d.ts.map +1 -0
  64. package/dist/internalapi/models/dns.js +16 -0
  65. package/dist/internalapi/models/dns.js.map +1 -0
  66. package/dist/internalapi/models/environment-architecture.d.ts +23 -0
  67. package/dist/internalapi/models/environment-architecture.d.ts.map +1 -0
  68. package/dist/internalapi/models/environment-architecture.js +27 -0
  69. package/dist/internalapi/models/environment-architecture.js.map +1 -0
  70. package/dist/internalapi/models/environment-create.d.ts +133 -0
  71. package/dist/internalapi/models/environment-create.d.ts.map +1 -0
  72. package/dist/internalapi/models/environment-create.js +16 -0
  73. package/dist/internalapi/models/environment-create.js.map +1 -0
  74. package/dist/internalapi/models/environment-delete-policy.d.ts +22 -0
  75. package/dist/internalapi/models/environment-delete-policy.d.ts.map +1 -0
  76. package/dist/internalapi/models/environment-delete-policy.js +26 -0
  77. package/dist/internalapi/models/environment-delete-policy.js.map +1 -0
  78. package/dist/internalapi/models/environment-module-status.d.ts +34 -0
  79. package/dist/internalapi/models/environment-module-status.d.ts.map +1 -0
  80. package/dist/internalapi/models/environment-module-status.js +38 -0
  81. package/dist/internalapi/models/environment-module-status.js.map +1 -0
  82. package/dist/internalapi/models/environment-module.d.ts +106 -0
  83. package/dist/internalapi/models/environment-module.d.ts.map +1 -0
  84. package/dist/internalapi/models/environment-module.js +16 -0
  85. package/dist/internalapi/models/environment-module.js.map +1 -0
  86. package/dist/internalapi/models/environment-register-type.d.ts +21 -0
  87. package/dist/internalapi/models/environment-register-type.d.ts.map +1 -0
  88. package/dist/internalapi/models/environment-register-type.js +25 -0
  89. package/dist/internalapi/models/environment-register-type.js.map +1 -0
  90. package/dist/internalapi/models/environment-state.d.ts +30 -0
  91. package/dist/internalapi/models/environment-state.d.ts.map +1 -0
  92. package/dist/internalapi/models/environment-state.js +34 -0
  93. package/dist/internalapi/models/environment-state.js.map +1 -0
  94. package/dist/internalapi/models/environment.d.ts +193 -0
  95. package/dist/internalapi/models/environment.d.ts.map +1 -0
  96. package/dist/internalapi/models/environment.js +16 -0
  97. package/dist/internalapi/models/environment.js.map +1 -0
  98. package/dist/internalapi/models/index.d.ts +32 -0
  99. package/dist/internalapi/models/index.d.ts.map +1 -1
  100. package/dist/internalapi/models/index.js +32 -0
  101. package/dist/internalapi/models/index.js.map +1 -1
  102. package/dist/internalapi/models/internal-image-registry-list.d.ts +26 -0
  103. package/dist/internalapi/models/internal-image-registry-list.d.ts.map +1 -0
  104. package/dist/internalapi/models/internal-image-registry-list.js +16 -0
  105. package/dist/internalapi/models/internal-image-registry-list.js.map +1 -0
  106. package/dist/internalapi/models/internal-image-registry.d.ts +31 -0
  107. package/dist/internalapi/models/internal-image-registry.d.ts.map +1 -0
  108. package/dist/internalapi/models/internal-image-registry.js +16 -0
  109. package/dist/internalapi/models/internal-image-registry.js.map +1 -0
  110. package/dist/internalapi/models/internal-task-list.d.ts +33 -0
  111. package/dist/internalapi/models/internal-task-list.d.ts.map +1 -0
  112. package/dist/internalapi/models/internal-task-list.js +16 -0
  113. package/dist/internalapi/models/internal-task-list.js.map +1 -0
  114. package/dist/internalapi/models/internal-task-steps-inner.d.ts +32 -0
  115. package/dist/internalapi/models/internal-task-steps-inner.d.ts.map +1 -0
  116. package/dist/internalapi/models/internal-task-steps-inner.js +16 -0
  117. package/dist/internalapi/models/internal-task-steps-inner.js.map +1 -0
  118. package/dist/internalapi/models/internal-task.d.ts +57 -0
  119. package/dist/internalapi/models/internal-task.d.ts.map +1 -0
  120. package/dist/internalapi/models/internal-task.js +16 -0
  121. package/dist/internalapi/models/internal-task.js.map +1 -0
  122. package/dist/internalapi/models/log-backend-type.d.ts +22 -0
  123. package/dist/internalapi/models/log-backend-type.d.ts.map +1 -0
  124. package/dist/internalapi/models/log-backend-type.js +26 -0
  125. package/dist/internalapi/models/log-backend-type.js.map +1 -0
  126. package/dist/internalapi/models/network-config.d.ts +50 -0
  127. package/dist/internalapi/models/network-config.d.ts.map +1 -0
  128. package/dist/internalapi/models/network-config.js +16 -0
  129. package/dist/internalapi/models/network-config.js.map +1 -0
  130. package/dist/internalapi/models/node-pool-node.d.ts +49 -0
  131. package/dist/internalapi/models/node-pool-node.d.ts.map +1 -0
  132. package/dist/internalapi/models/node-pool-node.js +16 -0
  133. package/dist/internalapi/models/node-pool-node.js.map +1 -0
  134. package/dist/internalapi/models/pagination-result.d.ts +37 -0
  135. package/dist/internalapi/models/pagination-result.d.ts.map +1 -0
  136. package/dist/internalapi/models/pagination-result.js +16 -0
  137. package/dist/internalapi/models/pagination-result.js.map +1 -0
  138. package/dist/internalapi/models/provision-config.d.ts +68 -0
  139. package/dist/internalapi/models/provision-config.d.ts.map +1 -0
  140. package/dist/internalapi/models/provision-config.js +16 -0
  141. package/dist/internalapi/models/provision-config.js.map +1 -0
  142. package/dist/internalapi/models/register.d.ts +32 -0
  143. package/dist/internalapi/models/register.d.ts.map +1 -0
  144. package/dist/internalapi/models/register.js +16 -0
  145. package/dist/internalapi/models/register.js.map +1 -0
  146. package/dist/internalapi/models/scheduling-config.d.ts +53 -0
  147. package/dist/internalapi/models/scheduling-config.d.ts.map +1 -0
  148. package/dist/internalapi/models/scheduling-config.js +16 -0
  149. package/dist/internalapi/models/scheduling-config.js.map +1 -0
  150. package/dist/internalapi/models/storage-config-backup.d.ts +43 -0
  151. package/dist/internalapi/models/storage-config-backup.d.ts.map +1 -0
  152. package/dist/internalapi/models/storage-config-backup.js +16 -0
  153. package/dist/internalapi/models/storage-config-backup.js.map +1 -0
  154. package/dist/internalapi/models/storage-config.d.ts +33 -0
  155. package/dist/internalapi/models/storage-config.d.ts.map +1 -0
  156. package/dist/internalapi/models/storage-config.js +16 -0
  157. package/dist/internalapi/models/storage-config.js.map +1 -0
  158. package/dist/internalapi/models/system-component-scheduler-policy.d.ts +22 -0
  159. package/dist/internalapi/models/system-component-scheduler-policy.d.ts.map +1 -0
  160. package/dist/internalapi/models/system-component-scheduler-policy.js +26 -0
  161. package/dist/internalapi/models/system-component-scheduler-policy.js.map +1 -0
  162. package/dist/internalapi/models/task-retry-mode.d.ts +22 -0
  163. package/dist/internalapi/models/task-retry-mode.d.ts.map +1 -0
  164. package/dist/internalapi/models/task-retry-mode.js +26 -0
  165. package/dist/internalapi/models/task-retry-mode.js.map +1 -0
  166. package/dist/internalapi/models/task-status.d.ts +28 -0
  167. package/dist/internalapi/models/task-status.d.ts.map +1 -0
  168. package/dist/internalapi/models/task-status.js +32 -0
  169. package/dist/internalapi/models/task-status.js.map +1 -0
  170. package/dist/internalapi/models/tolerate-default-taints.d.ts +31 -0
  171. package/dist/internalapi/models/tolerate-default-taints.d.ts.map +1 -0
  172. package/dist/internalapi/models/tolerate-default-taints.js +16 -0
  173. package/dist/internalapi/models/tolerate-default-taints.js.map +1 -0
  174. package/dist/openapi/apis/cluster-api.d.ts +72 -0
  175. package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
  176. package/dist/openapi/apis/cluster-api.js +79 -0
  177. package/dist/openapi/apis/cluster-api.js.map +1 -1
  178. package/dist/openapi/apis/shared-api.d.ts +72 -0
  179. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  180. package/dist/openapi/apis/shared-api.js +79 -0
  181. package/dist/openapi/apis/shared-api.js.map +1 -1
  182. package/dist/openapi/models/cluster-event-item.d.ts +91 -0
  183. package/dist/openapi/models/cluster-event-item.d.ts.map +1 -0
  184. package/dist/openapi/models/cluster-event-item.js +16 -0
  185. package/dist/openapi/models/cluster-event-item.js.map +1 -0
  186. package/dist/openapi/models/cluster-event-list.d.ts +32 -0
  187. package/dist/openapi/models/cluster-event-list.d.ts.map +1 -0
  188. package/dist/openapi/models/cluster-event-list.js +16 -0
  189. package/dist/openapi/models/cluster-event-list.js.map +1 -0
  190. package/dist/openapi/models/index.d.ts +2 -0
  191. package/dist/openapi/models/index.d.ts.map +1 -1
  192. package/dist/openapi/models/index.js +2 -0
  193. package/dist/openapi/models/index.js.map +1 -1
  194. package/package.json +1 -1
  195. package/src/adminapi/.openapi-generator/FILES +2 -0
  196. package/src/adminapi/apis/cluster-api.ts +127 -0
  197. package/src/adminapi/apis/shared-api.ts +127 -0
  198. package/src/adminapi/models/cluster-event-item.ts +96 -0
  199. package/src/adminapi/models/cluster-event-list.ts +39 -0
  200. package/src/adminapi/models/environment.ts +6 -0
  201. package/src/adminapi/models/index.ts +2 -0
  202. package/src/adminapi/models/platform-component-node.ts +22 -1
  203. package/src/adminapi/models/platform-component-overview.ts +1 -1
  204. package/src/adminapi.yaml +113 -2
  205. package/src/internalapi/.openapi-generator/FILES +34 -0
  206. package/src/internalapi/api.ts +2 -0
  207. package/src/internalapi/apis/environment-api.ts +200 -0
  208. package/src/internalapi/apis/image-registry-api.ts +246 -0
  209. package/src/internalapi/apis/task-api.ts +433 -0
  210. package/src/internalapi/models/autohealing-config.ts +60 -0
  211. package/src/internalapi/models/cluster-info.ts +42 -0
  212. package/src/internalapi/models/cluster-scheduling-policy.ts +33 -0
  213. package/src/internalapi/models/cluster-validation-policy.ts +32 -0
  214. package/src/internalapi/models/component.ts +84 -0
  215. package/src/internalapi/models/dns.ts +36 -0
  216. package/src/internalapi/models/environment-architecture.ts +32 -0
  217. package/src/internalapi/models/environment-create.ts +152 -0
  218. package/src/internalapi/models/environment-delete-policy.ts +31 -0
  219. package/src/internalapi/models/environment-module-status.ts +43 -0
  220. package/src/internalapi/models/environment-module.ts +119 -0
  221. package/src/internalapi/models/environment-register-type.ts +30 -0
  222. package/src/internalapi/models/environment-state.ts +39 -0
  223. package/src/internalapi/models/environment.ts +224 -0
  224. package/src/internalapi/models/index.ts +32 -0
  225. package/src/internalapi/models/internal-image-registry-list.ts +33 -0
  226. package/src/internalapi/models/internal-image-registry.ts +36 -0
  227. package/src/internalapi/models/internal-task-list.ts +42 -0
  228. package/src/internalapi/models/internal-task-steps-inner.ts +41 -0
  229. package/src/internalapi/models/internal-task.ts +68 -0
  230. package/src/internalapi/models/log-backend-type.ts +31 -0
  231. package/src/internalapi/models/network-config.ts +57 -0
  232. package/src/internalapi/models/node-pool-node.ts +54 -0
  233. package/src/internalapi/models/pagination-result.ts +42 -0
  234. package/src/internalapi/models/provision-config.ts +87 -0
  235. package/src/internalapi/models/register.ts +41 -0
  236. package/src/internalapi/models/scheduling-config.ts +68 -0
  237. package/src/internalapi/models/storage-config-backup.ts +48 -0
  238. package/src/internalapi/models/storage-config.ts +42 -0
  239. package/src/internalapi/models/system-component-scheduler-policy.ts +31 -0
  240. package/src/internalapi/models/task-retry-mode.ts +31 -0
  241. package/src/internalapi/models/task-status.ts +37 -0
  242. package/src/internalapi/models/tolerate-default-taints.ts +36 -0
  243. package/src/internalapi.yaml +1039 -193
  244. package/src/openapi/.openapi-generator/FILES +2 -0
  245. package/src/openapi/apis/cluster-api.ts +127 -0
  246. package/src/openapi/apis/shared-api.ts +127 -0
  247. package/src/openapi/models/cluster-event-item.ts +96 -0
  248. package/src/openapi/models/cluster-event-list.ts +39 -0
  249. package/src/openapi/models/index.ts +2 -0
  250. package/src/openapi.yaml +101 -0
@@ -207,6 +207,151 @@ paths:
207
207
  $ref: '#/components/responses/404'
208
208
  '500':
209
209
  $ref: '#/components/responses/500'
210
+ /internal/v1/environments:
211
+ post:
212
+ operationId: createEnvironment
213
+ summary: Create environment
214
+ requestBody:
215
+ content:
216
+ application/json:
217
+ schema:
218
+ $ref: '#/components/schemas/environmentCreate'
219
+ required: true
220
+ responses:
221
+ '201':
222
+ content:
223
+ application/json:
224
+ schema:
225
+ $ref: '#/components/schemas/environment'
226
+ description: Returned when environment is created successfully.
227
+ '403':
228
+ $ref: '#/components/responses/403'
229
+ '404':
230
+ $ref: '#/components/responses/404'
231
+ tags:
232
+ - environment
233
+ x-codegen-request-body-name: body
234
+ /internal/v1/tasks:
235
+ get:
236
+ operationId: listInternalTasks
237
+ summary: List tasks, newest first, optionally filtered by resource and task type
238
+ parameters:
239
+ - name: resourceType
240
+ in: query
241
+ schema:
242
+ type: string
243
+ - name: resourceId
244
+ in: query
245
+ schema:
246
+ type: string
247
+ - name: taskType
248
+ in: query
249
+ description: Comma-separated task types.
250
+ schema:
251
+ type: string
252
+ - name: pageSize
253
+ in: query
254
+ schema:
255
+ type: integer
256
+ minimum: 1
257
+ default: 10
258
+ - name: pageNumber
259
+ in: query
260
+ schema:
261
+ type: integer
262
+ minimum: 1
263
+ default: 1
264
+ responses:
265
+ '200':
266
+ description: Task identities and status without messages, inputs or outputs.
267
+ content:
268
+ application/json:
269
+ schema:
270
+ $ref: '#/components/schemas/internalTaskList'
271
+ '400':
272
+ $ref: '#/components/responses/400'
273
+ tags:
274
+ - task
275
+ /internal/v1/tasks/{taskId}:
276
+ get:
277
+ operationId: getInternalTask
278
+ summary: Get task status independently of the resource lifecycle
279
+ parameters:
280
+ - name: taskId
281
+ in: path
282
+ required: true
283
+ schema:
284
+ type: string
285
+ responses:
286
+ '200':
287
+ description: Task identity and status without messages, inputs or outputs.
288
+ content:
289
+ application/json:
290
+ schema:
291
+ $ref: '#/components/schemas/internalTask'
292
+ '404':
293
+ $ref: '#/components/responses/404'
294
+ tags:
295
+ - task
296
+ /internal/v1/tasks/{taskId}/retry:
297
+ patch:
298
+ operationId: retryInternalTask
299
+ summary: Retry a failed or stopped task using the existing task retry policy
300
+ parameters:
301
+ - name: taskId
302
+ in: path
303
+ required: true
304
+ schema:
305
+ type: string
306
+ - name: mode
307
+ in: query
308
+ schema:
309
+ $ref: '#/components/schemas/taskRetryMode'
310
+ responses:
311
+ '200':
312
+ description: Task identity and status without messages, inputs or outputs.
313
+ content:
314
+ application/json:
315
+ schema:
316
+ $ref: '#/components/schemas/internalTask'
317
+ '400':
318
+ $ref: '#/components/responses/400'
319
+ '404':
320
+ $ref: '#/components/responses/404'
321
+ tags:
322
+ - task
323
+ /internal/v1/imageRegistries:
324
+ get:
325
+ operationId: listInternalImageRegistries
326
+ summary: List image registry names and URLs without credentials
327
+ responses:
328
+ '200':
329
+ description: Registry metadata without usernames or passwords.
330
+ content:
331
+ application/json:
332
+ schema:
333
+ $ref: '#/components/schemas/internalImageRegistryList'
334
+ tags:
335
+ - image_registry
336
+ post:
337
+ operationId: createImageRegistry
338
+ summary: Create image registry
339
+ requestBody:
340
+ content:
341
+ application/json:
342
+ schema:
343
+ $ref: '#/components/schemas/imageRegistry'
344
+ required: true
345
+ responses:
346
+ '200':
347
+ content:
348
+ application/json:
349
+ schema:
350
+ $ref: '#/components/schemas/imageRegistry'
351
+ description: Returned when image registry is created successfully.
352
+ tags:
353
+ - imageRegistry
354
+ x-codegen-request-body-name: body
210
355
  /internal/v1/environments/{environmentName}/kubeconfig:
211
356
  get:
212
357
  operationId: getEnvironmentKubeconfigInternal
@@ -938,6 +1083,29 @@ paths:
938
1083
  - shared
939
1084
  x-codegen-request-body-name: body
940
1085
  /internal/v1/environments/{environmentName}:
1086
+ get:
1087
+ operationId: getEnvironment
1088
+ summary: Get environment
1089
+ parameters:
1090
+ - description: name of the environment
1091
+ in: path
1092
+ name: environmentName
1093
+ required: true
1094
+ schema:
1095
+ type: string
1096
+ responses:
1097
+ '200':
1098
+ content:
1099
+ application/json:
1100
+ schema:
1101
+ $ref: '#/components/schemas/environment'
1102
+ description: A successful response.
1103
+ '403':
1104
+ $ref: '#/components/responses/403'
1105
+ '404':
1106
+ $ref: '#/components/responses/404'
1107
+ tags:
1108
+ - environment
941
1109
  delete:
942
1110
  operationId: deleteEnvironment
943
1111
  summary: Delete Environment
@@ -1441,72 +1609,878 @@ components:
1441
1609
  endsAt:
1442
1610
  format: date-time
1443
1611
  type: string
1444
- fingerprint:
1612
+ fingerprint:
1613
+ type: string
1614
+ generatorURL:
1615
+ type: string
1616
+ labels:
1617
+ additionalProperties:
1618
+ type: string
1619
+ type: object
1620
+ startsAt:
1621
+ format: date-time
1622
+ type: string
1623
+ formattedStartsAt:
1624
+ type: string
1625
+ formattedEndsAt:
1626
+ type: string
1627
+ status:
1628
+ $ref: '#/components/schemas/alertStatus'
1629
+ Reason:
1630
+ type: string
1631
+ nullable: true
1632
+ type: object
1633
+ postableAlert:
1634
+ properties:
1635
+ alerts:
1636
+ items:
1637
+ $ref: '#/components/schemas/alert'
1638
+ type: array
1639
+ commonAnnotations:
1640
+ additionalProperties:
1641
+ type: string
1642
+ type: object
1643
+ commonLabels:
1644
+ additionalProperties:
1645
+ type: string
1646
+ type: object
1647
+ externalURL:
1648
+ type: string
1649
+ groupKey:
1650
+ type: string
1651
+ groupLabels:
1652
+ additionalProperties:
1653
+ type: string
1654
+ type: object
1655
+ receiver:
1656
+ type: string
1657
+ status:
1658
+ $ref: '#/components/schemas/alertStatus'
1659
+ truncatedAlerts:
1660
+ format: double
1661
+ type: number
1662
+ version:
1663
+ type: string
1664
+ type: object
1665
+ environmentType:
1666
+ type: string
1667
+ description: Type of this environment
1668
+ enum:
1669
+ - public
1670
+ - private
1671
+ default: public
1672
+ clusterSchedulingPolicy:
1673
+ type: string
1674
+ enum:
1675
+ - HardAntiAffinity
1676
+ - SoftAntiAffinity
1677
+ - Disabled
1678
+ - None
1679
+ default: SoftAntiAffinity
1680
+ description: |
1681
+ * `HardAntiAffinity` - Strictly enforce pod anti-affinity across nodes. Pods will not be scheduled when the anti-affinity constraints cannot be satisfied.
1682
+ * `SoftAntiAffinity` - Prefer to spread pods across nodes using anti-affinity, but allow scheduling on the same node when constraints cannot be fully satisfied.
1683
+ * `Disabled` - Do not apply pod anti-affinity constraints on nodes.
1684
+ * `None` - Inherit the engine-level default scheduling policy.
1685
+ tolerateDefaultTaints:
1686
+ title: TolerateDefaultTaints
1687
+ description: When creating a cluster, add the default tolerations from the bootstrap node to the pods
1688
+ type: object
1689
+ properties:
1690
+ enabled:
1691
+ type: boolean
1692
+ taints:
1693
+ type: array
1694
+ items:
1695
+ type: string
1696
+ systemComponentSchedulerPolicy:
1697
+ type: string
1698
+ enum:
1699
+ - default
1700
+ - koordinator
1701
+ default: default
1702
+ koordinatorReservationResourceClass:
1703
+ type: string
1704
+ enum:
1705
+ - database
1706
+ - business
1707
+ schedulingConfig:
1708
+ type: object
1709
+ title: SchedulingConfig
1710
+ description: Configuration of resource scheduling for this environment
1711
+ properties:
1712
+ clusterSchedulingPolicy:
1713
+ $ref: '#/components/schemas/clusterSchedulingPolicy'
1714
+ additionalTopologyKeys:
1715
+ type: array
1716
+ nullable: true
1717
+ default: []
1718
+ description: Additional Kubernetes topology label keys used by pod anti-affinity and topology spread for subsequently created or re-rendered clusters; existing Pods are not migrated automatically. Omit or use null during environment creation to store an empty list. Values must be valid Kubernetes qualified label keys. Infrastructure integrations or administrators must label all eligible nodes consistently; missing labels can cause unintended scheduling behavior and undermine failure-domain isolation. Too few eligible topology domains can leave Pods Pending under hard anti-affinity. If the Kubernetes LimitPodHardAntiAffinityTopology admission plugin is enabled, Pod creation is rejected for required anti-affinity using topology keys other than kubernetes.io/hostname, which can prevent the database cluster from becoming ready.
1719
+ items:
1720
+ type: string
1721
+ tolerateDefaultTaints:
1722
+ $ref: '#/components/schemas/tolerateDefaultTaints'
1723
+ systemComponentSchedulerPolicy:
1724
+ $ref: '#/components/schemas/systemComponentSchedulerPolicy'
1725
+ description: Scheduler policy used by internal system component clusters, including MinIO, VictoriaMetrics, and Victoria Logs. The persisted policy is resolved to the current scheduler name when a component is created.
1726
+ systemComponentReservationResourceClass:
1727
+ nullable: true
1728
+ $ref: '#/components/schemas/koordinatorReservationResourceClass'
1729
+ description: Optional Reservation resource class used by internal system component clusters when the Koordinator scheduler is selected. No Reservation label is added unless the user explicitly selects a resource class. The value is persisted on the environment.
1730
+ environmentRegisterType:
1731
+ type: string
1732
+ description: Configuration for privisoining environment resources
1733
+ enum:
1734
+ - kubeconfig
1735
+ register:
1736
+ type: object
1737
+ description: Register manifest for environment
1738
+ required:
1739
+ - type
1740
+ properties:
1741
+ type:
1742
+ $ref: '#/components/schemas/environmentRegisterType'
1743
+ kubeconfig:
1744
+ description: The base64 encoded kubeconfig file contents to connect to this environment
1745
+ format: byte
1746
+ type: string
1747
+ component:
1748
+ type: object
1749
+ description: Component info in environment
1750
+ required:
1751
+ - defaultStorageClass
1752
+ properties:
1753
+ kubernetesVersion:
1754
+ type: string
1755
+ description: Kubernetes version of the environment
1756
+ kbVersion:
1757
+ type: string
1758
+ description: KubeBlocks version of the environment
1759
+ geminiVersion:
1760
+ type: string
1761
+ description: Gemini version of the environment
1762
+ oteldVersion:
1763
+ type: string
1764
+ description: Oteld version of the environment
1765
+ imageRegistry:
1766
+ type: string
1767
+ description: Image registry URL used by the environment. Must match image_registries.url, not image_registries.name.
1768
+ defaultStorageClass:
1769
+ description: Default storage class that used by KubeBlocks to create cluster
1770
+ type: string
1771
+ cpuOvercommitRatio:
1772
+ description: CPU overcommit ratio of this environment
1773
+ type: number
1774
+ format: double
1775
+ memoryOvercommitRatio:
1776
+ description: Memory overcommit ratio of this environment
1777
+ type: number
1778
+ format: double
1779
+ replicas:
1780
+ description: the replicas of core component, such as kubeblocks and gemini
1781
+ type: integer
1782
+ minimum: 1
1783
+ default: 1
1784
+ namespaces:
1785
+ items:
1786
+ type: string
1787
+ default:
1788
+ - kubeblocks-cloud-ns
1789
+ type: array
1790
+ description: Namespace info for environment
1791
+ nodePoolNode:
1792
+ title: NodePoolNode
1793
+ description: Node info for environment
1794
+ type: object
1795
+ required:
1796
+ - name
1797
+ - availabilityZone
1798
+ properties:
1799
+ name:
1800
+ type: string
1801
+ availabilityZone:
1802
+ type: string
1803
+ markControlPlane:
1804
+ type: boolean
1805
+ default: false
1806
+ markDataPlane:
1807
+ description: Mark the node as a data plane, which will always be true when markControlPlane is not specified
1808
+ type: boolean
1809
+ default: true
1810
+ nodeGroup:
1811
+ description: The node group to assign this node to
1812
+ type: string
1813
+ nodePool:
1814
+ title: NodePool
1815
+ description: Create your node plan, and the selected nodes will be used for pod scheduling
1816
+ type: array
1817
+ items:
1818
+ $ref: '#/components/schemas/nodePoolNode'
1819
+ minItems: 1
1820
+ environmentStorageType:
1821
+ description: the storage type
1822
+ type: string
1823
+ enum:
1824
+ - remote
1825
+ - local
1826
+ storageCreate:
1827
+ description: storageCreate is the schema for the storage create request
1828
+ type: object
1829
+ required:
1830
+ - storageProvider
1831
+ properties:
1832
+ name:
1833
+ type: string
1834
+ description: Name of the storage
1835
+ storageProvider:
1836
+ type: string
1837
+ minLength: 1
1838
+ x-nullable: false
1839
+ description: Name of the storage provider
1840
+ params:
1841
+ type: object
1842
+ description: the parameters to create the storage
1843
+ additionalProperties:
1844
+ type: string
1845
+ clusterID:
1846
+ type: string
1847
+ description: the id of cluster that storage used
1848
+ tags:
1849
+ type: object
1850
+ description: the tags for the storage
1851
+ additionalProperties:
1852
+ type: string
1853
+ staticClusterComponent:
1854
+ type: object
1855
+ required:
1856
+ - component
1857
+ properties:
1858
+ component:
1859
+ type: string
1860
+ minLength: 1
1861
+ description: Exact component name supported by the selected engine during environment installation. Each component may appear only once.
1862
+ replicas:
1863
+ type: integer
1864
+ format: int64
1865
+ nullable: true
1866
+ minimum: 1
1867
+ description: Number of replicas. Omit to keep the installer default.
1868
+ classCode:
1869
+ type: string
1870
+ description: Resource class for this exact engine, mode and component. Omit to keep the installer default.
1871
+ storage:
1872
+ type: number
1873
+ format: double
1874
+ nullable: true
1875
+ minimum: 1
1876
+ description: Disk capacity in Gi. Only vm-storage, vlstorage and minio accept this field.
1877
+ staticCluster:
1878
+ type: object
1879
+ properties:
1880
+ components:
1881
+ type: array
1882
+ maxItems: 3
1883
+ description: Optional component overrides. Unknown, duplicate or other-engine components are rejected. Must be omitted when reusedClusterName is set; adding an environment does not resize an existing cluster.
1884
+ items:
1885
+ $ref: '#/components/schemas/staticClusterComponent'
1886
+ reusedClusterName:
1887
+ type: string
1888
+ description: Kubernetes name of an existing cluster to attach. Set together with reusedClusterNamespace. The existing cluster's actual resources are used, and component overrides are rejected.
1889
+ reusedClusterNamespace:
1890
+ type: string
1891
+ description: Namespace of the cluster named by reusedClusterName. Required when reusedClusterName is set.
1892
+ environmentStorage:
1893
+ type: object
1894
+ description: Storage config
1895
+ properties:
1896
+ name:
1897
+ description: the storage name
1898
+ type: string
1899
+ type:
1900
+ $ref: '#/components/schemas/environmentStorageType'
1901
+ reusedClusterName:
1902
+ description: the existed cluster name for creating storage
1903
+ type: string
1904
+ reusedClusterNamespace:
1905
+ description: the existed cluster namespace for creating storage
1906
+ type: string
1907
+ config:
1908
+ $ref: '#/components/schemas/storageCreate'
1909
+ cluster:
1910
+ $ref: '#/components/schemas/staticCluster'
1911
+ storageConfig:
1912
+ type: object
1913
+ description: Storage config for environment
1914
+ required:
1915
+ - storages
1916
+ properties:
1917
+ storages:
1918
+ type: array
1919
+ description: these storages will be created
1920
+ items:
1921
+ $ref: '#/components/schemas/environmentStorage'
1922
+ backup:
1923
+ type: object
1924
+ description: the storage config for backup
1925
+ properties:
1926
+ storageIndex:
1927
+ type: integer
1928
+ format: int64
1929
+ nullable: true
1930
+ minimum: 0
1931
+ description: Zero-based index of the default backup storage. Required for multiple storages when storageName is omitted.
1932
+ storageName:
1933
+ nullable: true
1934
+ type: string
1935
+ description: the name of storage
1936
+ backupRepoName:
1937
+ nullable: true
1938
+ type: string
1939
+ description: the backup repo name which will be init
1940
+ defaultBackupRepo:
1941
+ nullable: true
1942
+ type: boolean
1943
+ description: judge whether to set the backup is default which will be init
1944
+ victoriaLogsConfig:
1945
+ type: object
1946
+ allOf:
1947
+ - $ref: '#/components/schemas/staticCluster'
1948
+ - type: object
1949
+ properties:
1950
+ retentionPeriod:
1951
+ type: string
1952
+ x-nullable: false
1953
+ description: Environment installation log retention, explicitly overriding the addon default. Defaults to 100y when omitted. Accepts a number with s (seconds), h (hours), d (days), w (weeks), M (months), or y (years); a bare number means months. Must be between 1d and 100y. Disk usage retention limits still apply.
1954
+ retentionMaxDiskUsagePercent:
1955
+ type: integer
1956
+ nullable: true
1957
+ minimum: 1
1958
+ maximum: 100
1959
+ description: Maximum disk usage percentage before VictoriaLogs deletes older log partitions. Defaults to 80 when omitted. Applies independently of retentionPeriod.
1960
+ environmentModuleStatus:
1961
+ type: string
1962
+ description: Status of an environment module. Enabled is only used as the desired state when creating an environment. NotInstalled, Installing, and InstallationFailed describe quick installation; Upgradeable, Upgrading, and UpgradeFailed describe quick upgrade. Upgradeable means the component is running but an ApeCloud-bundled newer version is available. Unknown means the current state could not be determined.
1963
+ enum:
1964
+ - Running
1965
+ - Updating
1966
+ - Error
1967
+ - Disabled
1968
+ - Enabled
1969
+ - NotInstalled
1970
+ - Installing
1971
+ - InstallationFailed
1972
+ - Upgradeable
1973
+ - Upgrading
1974
+ - UpgradeFailed
1975
+ - Uninstalling
1976
+ - UninstallationFailed
1977
+ - Unknown
1978
+ clusterInfo:
1979
+ type: object
1980
+ description: Cluster information
1981
+ properties:
1982
+ clusterName:
1983
+ type: string
1984
+ description: The name of the cluster
1985
+ clusterDefinition:
1986
+ type: string
1987
+ description: The definition of the cluster
1988
+ orgName:
1989
+ type: string
1990
+ description: The organization name
1991
+ localizedDescription:
1992
+ type: object
1993
+ properties:
1994
+ zh-CN:
1995
+ type: string
1996
+ x-nullable: true
1997
+ en-US:
1998
+ type: string
1999
+ x-nullable: true
2000
+ environmentModule:
2001
+ type: object
2002
+ description: Single environment module information
2003
+ properties:
2004
+ name:
2005
+ type: string
2006
+ description: Environment module name
2007
+ version:
2008
+ type: string
2009
+ description: Currently installed environment module version
2010
+ status:
2011
+ $ref: '#/components/schemas/environmentModuleStatus'
2012
+ replicas:
2013
+ type: integer
2014
+ description: Number of replicas
2015
+ location:
2016
+ type: string
2017
+ description: Deployment location
2018
+ operationTaskId:
2019
+ type: string
2020
+ description: ID of the asynchronous task associated with the module's current operation state. It is omitted when the current state is not associated with a task.
2021
+ clusterInfo:
2022
+ $ref: '#/components/schemas/clusterInfo'
2023
+ description: Cluster information
2024
+ description:
2025
+ $ref: '#/components/schemas/localizedDescription'
2026
+ description: Module description in multiple languages
2027
+ displayName:
2028
+ $ref: '#/components/schemas/localizedDescription'
2029
+ description: Module display name in multiple languages
2030
+ optional:
2031
+ type: boolean
2032
+ description: indicate module is optional. If false, the module is required and must be installed
2033
+ defaultEnabled:
2034
+ type: boolean
2035
+ description: indicate whether module is enabled by default when creating environment. Only effective when optional is true
2036
+ actionWarning:
2037
+ $ref: '#/components/schemas/localizedDescription'
2038
+ description: Localized business-impact warning for the component action represented by the current status.
2039
+ uninstallSupported:
2040
+ type: boolean
2041
+ description: Whether the module supports the Uninstall action. A dry run checks whether it is currently safe to uninstall.
2042
+ uninstallWarning:
2043
+ $ref: '#/components/schemas/localizedDescription'
2044
+ description: Localized warning about resources and data removed by uninstallation.
2045
+ required:
2046
+ - name
2047
+ - status
2048
+ provisionConfig:
2049
+ title: ProvisionConfig
2050
+ description: Configuration to provision infrastructure for this environment
2051
+ type: object
2052
+ required:
2053
+ - register
2054
+ - component
2055
+ properties:
2056
+ register:
2057
+ $ref: '#/components/schemas/register'
2058
+ component:
2059
+ $ref: '#/components/schemas/component'
2060
+ nodePool:
2061
+ $ref: '#/components/schemas/nodePool'
2062
+ storage:
2063
+ $ref: '#/components/schemas/storageConfig'
2064
+ victoriaMetrics:
2065
+ description: Create VictoriaMetrics with optional per-component resources, or attach an existing cluster by reusedClusterName and reusedClusterNamespace. Omitted components keep installer defaults on create. Reuse uses the existing cluster's actual resources and does not resize it.
2066
+ $ref: '#/components/schemas/staticCluster'
2067
+ victoriaLogs:
2068
+ description: Create VictoriaLogs with optional per-component resources and retention, or attach an existing cluster by reusedClusterName and reusedClusterNamespace. Omitted components keep installer defaults on create. Reuse uses the existing cluster's actual resources and retention, and does not resize or reconfigure it.
2069
+ $ref: '#/components/schemas/victoriaLogsConfig'
2070
+ modules:
2071
+ type: array
2072
+ description: option modules of environment
2073
+ items:
2074
+ $ref: '#/components/schemas/environmentModule'
2075
+ environmentDeletePolicy:
2076
+ type: string
2077
+ description: Environment delete policy to protect environment from false delete
2078
+ enum:
2079
+ - Delete
2080
+ - DoNotDelete
2081
+ default: DoNotDelete
2082
+ dns:
2083
+ type: object
2084
+ properties:
2085
+ serviceName:
2086
+ type: string
2087
+ description: the name of the DNS service
2088
+ serviceNamespace:
2089
+ type: string
2090
+ description: the namespace of the DNS service
2091
+ required:
2092
+ - serviceName
2093
+ - serviceNamespace
2094
+ ipPoolProvider:
2095
+ type: string
2096
+ description: KBE provider used for Pod IP pool discovery and explicit selection.
2097
+ enum:
2098
+ - spiderpool
2099
+ environmentCreate:
2100
+ required:
2101
+ - provider
2102
+ - region
2103
+ - name
2104
+ - displayName
2105
+ - type
2106
+ - organizations
2107
+ - provisionConfig
2108
+ type: object
2109
+ description: Environment creation info
2110
+ properties:
2111
+ name:
2112
+ type: string
2113
+ description: The full, unique name of this Object in the format environments/{name}, set during creation. name must be a valid RFC 1123 compliant DNS label
2114
+ type:
2115
+ description: Environment type
2116
+ $ref: '#/components/schemas/environmentType'
2117
+ schedulingConfig:
2118
+ description: Configuration for resource schduling for an environment
2119
+ $ref: '#/components/schemas/schedulingConfig'
2120
+ provisionConfig:
2121
+ description: Configuration for provisioning an environment
2122
+ $ref: '#/components/schemas/provisionConfig'
2123
+ organizations:
2124
+ items:
2125
+ type: string
2126
+ type: array
2127
+ description: Organizations that have access for this environment
2128
+ provider:
2129
+ title: Cloud Provider
2130
+ type: string
2131
+ description: Cloud Provider
2132
+ region:
2133
+ title: Cloud Region
2134
+ type: string
2135
+ description: Cloud Region
2136
+ availabilityZones:
2137
+ title: Availability Zones
2138
+ description: Availability Zones
2139
+ items:
2140
+ type: string
2141
+ minItems: 1
2142
+ type: array
2143
+ description:
2144
+ type: string
2145
+ description: The description of the organization
2146
+ displayName:
2147
+ type: string
2148
+ description: The display name of the environment
2149
+ id:
2150
+ type: string
2151
+ format: uuid
2152
+ extraInfo:
2153
+ type: string
2154
+ description: Extra info for environment
2155
+ deletePolicy:
2156
+ $ref: '#/components/schemas/environmentDeletePolicy'
2157
+ overwrite:
2158
+ type: boolean
2159
+ description: overwrite a environment if it has been added before
2160
+ default: false
2161
+ dns:
2162
+ $ref: '#/components/schemas/dns'
2163
+ sla:
2164
+ description: whether to enable calculate the cluster SLA for the environment
2165
+ type: boolean
2166
+ default: false
2167
+ koordinatorEnabled:
2168
+ description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
2169
+ type: boolean
2170
+ default: false
2171
+ ipPoolProviders:
2172
+ description: KBE Pod IP pool providers enabled for discovery and explicit pool selection.
2173
+ type: array
2174
+ default: []
2175
+ items:
2176
+ $ref: '#/components/schemas/ipPoolProvider'
2177
+ logBackendType:
2178
+ type: string
2179
+ description: Log query backend configured for this environment.
2180
+ enum:
2181
+ - loki
2182
+ - victoria-logs
2183
+ networkMode:
2184
+ enum:
2185
+ - HostNetwork
2186
+ - NodePort
2187
+ - FixedPodIP
2188
+ - HeadlessService
2189
+ - LoadBalancer
2190
+ type: string
2191
+ networkConfig:
2192
+ type: object
2193
+ title: NetworkConfig
2194
+ description: Configuration of networking for this environment
2195
+ properties:
2196
+ nodePortEnabled:
2197
+ description: Enable node port service for this environment
2198
+ type: boolean
2199
+ default: true
2200
+ lbEnabled:
2201
+ description: Enable load balancer service for this environment
2202
+ type: boolean
2203
+ default: true
2204
+ domainEnabled:
2205
+ description: Enable domain service for this environment
2206
+ type: boolean
2207
+ default: false
2208
+ internetLBEnabled:
2209
+ description: Enable the Internet load balancer service for this environment
2210
+ type: boolean
2211
+ default: true
2212
+ networkModes:
2213
+ type: array
2214
+ items:
2215
+ $ref: '#/components/schemas/networkMode'
2216
+ description: Network modes of the environment
2217
+ environmentState:
2218
+ type: string
2219
+ description: Output only. State of the Environment resource
2220
+ enum:
2221
+ - PENDING
2222
+ - REGISTERED
2223
+ - PROVISIONING
2224
+ - NOTREADY
2225
+ - READY
2226
+ - WARNING
2227
+ - UNREACHABLE
2228
+ - DELETING
2229
+ - OUTOFSTOCK
2230
+ - UPDATING
2231
+ autohealingConfig:
2232
+ type: object
2233
+ description: cluster instance autohealing process config
2234
+ required:
2235
+ - enableAutoHealing
2236
+ - rebuildStartDelaySecondsWhenNodeFail
2237
+ - rebuildStartDelaySecondsWhenInMaintenance
2238
+ - minClusterRebuildIntervalSeconds
2239
+ - rebuildConcurrencyPerNode
2240
+ - rebuildConcurrencyGlobally
2241
+ properties:
2242
+ enableAutoHealing:
2243
+ type: boolean
2244
+ description: Set to true to enable the auto-healing process, which automatically rebuilds instances when a node fails or is in maintenance mode.
2245
+ rebuildStartDelaySecondsWhenNodeFail:
2246
+ type: integer
2247
+ format: int32
2248
+ description: The number of seconds to wait before starting a rebuild when a node fails.
2249
+ rebuildStartDelaySecondsWhenInMaintenance:
2250
+ type: integer
2251
+ format: int32
2252
+ description: The number of seconds to wait before starting a rebuild when a node is in maintenance mode.
2253
+ minClusterRebuildIntervalSeconds:
2254
+ type: integer
2255
+ format: int32
2256
+ description: The minimum time in seconds between consecutive rebuild jobs for one cluster.
2257
+ rebuildConcurrencyPerNode:
2258
+ type: integer
2259
+ format: int32
2260
+ description: The maximum number of rebuild jobs that can run simultaneously for a single node.
2261
+ rebuildConcurrencyGlobally:
2262
+ type: integer
2263
+ format: int32
2264
+ description: The maximum number of rebuild jobs that can run simultaneously for the whole k8s cluster.
2265
+ clusterValidationPolicy:
2266
+ type: string
2267
+ description: Cluster operation validation policy, such as create, hscale, vscale, etc.
2268
+ enum:
2269
+ - Disabled
2270
+ - ValidateOnly
2271
+ - ForbiddenExecute
2272
+ default: ValidateOnly
2273
+ environmentArchitecture:
2274
+ title: EnvironmentArchitecture
2275
+ type: string
2276
+ description: Architecture of the environment data plane nodes (arm64, amd64, or multiarch for multiple architectures)
2277
+ enum:
2278
+ - arm64
2279
+ - amd64
2280
+ - multiarch
2281
+ environment:
2282
+ type: object
2283
+ description: Environment info
2284
+ required:
2285
+ - provider
2286
+ - region
2287
+ - availabilityZones
2288
+ - id
2289
+ - name
2290
+ - displayName
2291
+ - type
2292
+ - state
2293
+ - organizations
2294
+ - provisionConfig
2295
+ - createdAt
2296
+ - updatedAt
2297
+ - ipPoolProviders
2298
+ properties:
2299
+ taskId:
2300
+ type: string
2301
+ description: Installation task ID, returned when environment creation starts a task.
2302
+ logBackend:
2303
+ $ref: '#/components/schemas/logBackendType'
2304
+ provider:
2305
+ description: Cloud Provider
2306
+ title: Cloud Provider
2307
+ type: string
2308
+ region:
2309
+ description: Cloud Region
2310
+ title: Cloud Region
2311
+ type: string
2312
+ availabilityZones:
2313
+ title: Availability Zones
2314
+ description: Availability Zones
2315
+ items:
2316
+ type: string
2317
+ minItems: 1
2318
+ type: array
2319
+ schedulingConfig:
2320
+ $ref: '#/components/schemas/schedulingConfig'
2321
+ networkConfig:
2322
+ $ref: '#/components/schemas/networkConfig'
2323
+ description:
2324
+ description: The description of the organization
2325
+ type: string
2326
+ displayName:
2327
+ description: The display name of the context
2328
+ type: string
2329
+ id:
2330
+ format: uuid
2331
+ type: string
2332
+ name:
2333
+ description: The full, unique name of this Object in the format contexts/{name}, set during creation. name must be a valid RFC 1123 compliant DNS label
2334
+ type: string
2335
+ organizations:
2336
+ items:
2337
+ type: string
2338
+ type: array
2339
+ description: Organizations that have access for this environment
2340
+ metricsMonitorEnabled:
2341
+ description: The native VM cluster is deployed in environment or not.
2342
+ type: boolean
2343
+ state:
2344
+ $ref: '#/components/schemas/environmentState'
2345
+ type:
2346
+ $ref: '#/components/schemas/environmentType'
2347
+ provisionConfig:
2348
+ $ref: '#/components/schemas/provisionConfig'
2349
+ autohealingConfig:
2350
+ $ref: '#/components/schemas/autohealingConfig'
2351
+ createdAt:
2352
+ description: CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
2353
+ format: date-time
2354
+ type: string
2355
+ updatedAt:
2356
+ description: UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
2357
+ format: date-time
1445
2358
  type: string
1446
- generatorURL:
2359
+ extraInfo:
2360
+ type: string
2361
+ description: Extra info for environment
2362
+ deletePolicy:
2363
+ $ref: '#/components/schemas/environmentDeletePolicy'
2364
+ clusterValidationPolicy:
2365
+ $ref: '#/components/schemas/clusterValidationPolicy'
2366
+ architecture:
2367
+ $ref: '#/components/schemas/environmentArchitecture'
2368
+ dns:
2369
+ $ref: '#/components/schemas/dns'
2370
+ slaEnabled:
2371
+ description: whether to enable calculate the cluster SLA for the environment
2372
+ type: boolean
2373
+ default: false
2374
+ koordinatorEnabled:
2375
+ description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
2376
+ type: boolean
2377
+ default: false
2378
+ ipPoolProviders:
2379
+ description: KBE Pod IP pool providers enabled for discovery and explicit pool selection.
2380
+ type: array
2381
+ items:
2382
+ $ref: '#/components/schemas/ipPoolProvider'
2383
+ taskStatus:
2384
+ type: string
2385
+ enum:
2386
+ - Pending
2387
+ - Running
2388
+ - Stopped
2389
+ - Succeed
2390
+ - Failed
2391
+ - Cancelling
2392
+ - Cancelled
2393
+ - Aborted
2394
+ description: Current status of the task
2395
+ internalTask:
2396
+ type: object
2397
+ description: Task identity and status, excluding task messages, inputs and outputs.
2398
+ required:
2399
+ - taskId
2400
+ - taskType
2401
+ - resourceType
2402
+ - resourceId
2403
+ - status
2404
+ properties:
2405
+ taskId:
1447
2406
  type: string
1448
- labels:
1449
- additionalProperties:
1450
- type: string
1451
- type: object
1452
- startsAt:
1453
- format: date-time
2407
+ taskType:
1454
2408
  type: string
1455
- formattedStartsAt:
2409
+ resourceType:
1456
2410
  type: string
1457
- formattedEndsAt:
2411
+ resourceId:
1458
2412
  type: string
1459
2413
  status:
1460
- $ref: '#/components/schemas/alertStatus'
1461
- Reason:
1462
- type: string
1463
- nullable: true
2414
+ $ref: '#/components/schemas/taskStatus'
2415
+ steps:
2416
+ description: Step status included in task detail and retry responses.
2417
+ type: array
2418
+ items:
2419
+ type: object
2420
+ properties:
2421
+ name:
2422
+ type: string
2423
+ status:
2424
+ $ref: '#/components/schemas/taskStatus'
2425
+ paginationResult:
2426
+ description: Pagination information
2427
+ properties:
2428
+ page:
2429
+ description: Current page number (1-based)
2430
+ type: integer
2431
+ minimum: 1
2432
+ pageSize:
2433
+ description: Number of records per page
2434
+ type: integer
2435
+ minimum: 1
2436
+ total:
2437
+ description: Total number of records
2438
+ type: integer
2439
+ minimum: 0
2440
+ required:
2441
+ - page
2442
+ - pageSize
2443
+ - total
1464
2444
  type: object
1465
- postableAlert:
2445
+ internalTaskList:
2446
+ type: object
2447
+ required:
2448
+ - items
2449
+ - pagination
1466
2450
  properties:
1467
- alerts:
1468
- items:
1469
- $ref: '#/components/schemas/alert'
2451
+ items:
1470
2452
  type: array
1471
- commonAnnotations:
1472
- additionalProperties:
1473
- type: string
1474
- type: object
1475
- commonLabels:
1476
- additionalProperties:
1477
- type: string
1478
- type: object
1479
- externalURL:
1480
- type: string
1481
- groupKey:
1482
- type: string
1483
- groupLabels:
1484
- additionalProperties:
1485
- type: string
1486
- type: object
1487
- receiver:
1488
- type: string
1489
- status:
1490
- $ref: '#/components/schemas/alertStatus'
1491
- truncatedAlerts:
1492
- format: double
1493
- type: number
1494
- version:
1495
- type: string
2453
+ items:
2454
+ $ref: '#/components/schemas/internalTask'
2455
+ pagination:
2456
+ $ref: '#/components/schemas/paginationResult'
2457
+ taskRetryMode:
2458
+ type: string
2459
+ enum:
2460
+ - restart
2461
+ - resume
2462
+ default: restart
2463
+ description: restart reruns all steps; resume preserves successful steps.
2464
+ internalImageRegistry:
1496
2465
  type: object
1497
- httpBody:
1498
- description: Represents an HTTP request or response body.
2466
+ description: Image registry identity for selecting the environment image source.
2467
+ required:
2468
+ - name
2469
+ - url
1499
2470
  properties:
1500
- contentType:
1501
- description: The HTTP Content-Type header value specifying the content type of the body.
2471
+ name:
1502
2472
  type: string
1503
- data:
1504
- description: The HTTP request/response body as raw binary.
1505
- format: byte
1506
- pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
2473
+ url:
1507
2474
  type: string
1508
- title: ''
2475
+ internalImageRegistryList:
1509
2476
  type: object
2477
+ required:
2478
+ - items
2479
+ properties:
2480
+ items:
2481
+ type: array
2482
+ items:
2483
+ $ref: '#/components/schemas/internalImageRegistry'
1510
2484
  imageRegistry:
1511
2485
  type: object
1512
2486
  description: Represents an image registry.
@@ -1540,6 +2514,19 @@ components:
1540
2514
  required:
1541
2515
  - name
1542
2516
  - url
2517
+ httpBody:
2518
+ description: Represents an HTTP request or response body.
2519
+ properties:
2520
+ contentType:
2521
+ description: The HTTP Content-Type header value specifying the content type of the body.
2522
+ type: string
2523
+ data:
2524
+ description: The HTTP request/response body as raw binary.
2525
+ format: byte
2526
+ pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
2527
+ type: string
2528
+ title: ''
2529
+ type: object
1543
2530
  grafanaDatasourceCreate:
1544
2531
  description: GrafanaDatasource create option
1545
2532
  type: object
@@ -1597,97 +2584,6 @@ components:
1597
2584
  basicAuth:
1598
2585
  type: boolean
1599
2586
  description: Indicates if basic authentication is enabled for the Grafana datasource
1600
- environmentStorageType:
1601
- description: the storage type
1602
- type: string
1603
- enum:
1604
- - remote
1605
- - local
1606
- storageCreate:
1607
- description: storageCreate is the schema for the storage create request
1608
- type: object
1609
- required:
1610
- - storageProvider
1611
- properties:
1612
- name:
1613
- type: string
1614
- description: Name of the storage
1615
- storageProvider:
1616
- type: string
1617
- minLength: 1
1618
- x-nullable: false
1619
- description: Name of the storage provider
1620
- params:
1621
- type: object
1622
- description: the parameters to create the storage
1623
- additionalProperties:
1624
- type: string
1625
- clusterID:
1626
- type: string
1627
- description: the id of cluster that storage used
1628
- tags:
1629
- type: object
1630
- description: the tags for the storage
1631
- additionalProperties:
1632
- type: string
1633
- staticClusterComponent:
1634
- type: object
1635
- required:
1636
- - component
1637
- properties:
1638
- component:
1639
- type: string
1640
- minLength: 1
1641
- description: Exact component name supported by the selected engine during environment installation. Each component may appear only once.
1642
- replicas:
1643
- type: integer
1644
- format: int64
1645
- nullable: true
1646
- minimum: 1
1647
- description: Number of replicas. Omit to keep the installer default.
1648
- classCode:
1649
- type: string
1650
- description: Resource class for this exact engine, mode and component. Omit to keep the installer default.
1651
- storage:
1652
- type: number
1653
- format: double
1654
- nullable: true
1655
- minimum: 1
1656
- description: Disk capacity in Gi. Only vm-storage, vlstorage and minio accept this field.
1657
- staticCluster:
1658
- type: object
1659
- properties:
1660
- components:
1661
- type: array
1662
- maxItems: 3
1663
- description: Optional component overrides. Unknown, duplicate or other-engine components are rejected. Must be omitted when reusedClusterName is set; adding an environment does not resize an existing cluster.
1664
- items:
1665
- $ref: '#/components/schemas/staticClusterComponent'
1666
- reusedClusterName:
1667
- type: string
1668
- description: Kubernetes name of an existing cluster to attach. Set together with reusedClusterNamespace. The existing cluster's actual resources are used, and component overrides are rejected.
1669
- reusedClusterNamespace:
1670
- type: string
1671
- description: Namespace of the cluster named by reusedClusterName. Required when reusedClusterName is set.
1672
- environmentStorage:
1673
- type: object
1674
- description: Storage config
1675
- properties:
1676
- name:
1677
- description: the storage name
1678
- type: string
1679
- type:
1680
- $ref: '#/components/schemas/environmentStorageType'
1681
- reusedClusterName:
1682
- description: the existed cluster name for creating storage
1683
- type: string
1684
- reusedClusterNamespace:
1685
- description: the existed cluster namespace for creating storage
1686
- type: string
1687
- config:
1688
- $ref: '#/components/schemas/storageCreate'
1689
- cluster:
1690
- $ref: '#/components/schemas/staticCluster'
1691
2587
  clusterType:
1692
2588
  title: ClusterType
1693
2589
  type: string
@@ -1841,11 +2737,6 @@ components:
1841
2737
  $ref: '#/components/schemas/ioQuantity'
1842
2738
  ioReserves:
1843
2739
  $ref: '#/components/schemas/ioQuantity'
1844
- ipPoolProvider:
1845
- type: string
1846
- description: KBE provider used for Pod IP pool discovery and explicit selection.
1847
- enum:
1848
- - spiderpool
1849
2740
  ipPoolSelection:
1850
2741
  type: object
1851
2742
  description: Provider-qualified Pod IP pool selection for component pod IP allocation.
@@ -2009,14 +2900,6 @@ components:
2009
2900
  description: the crop expression for incremental backup schedule
2010
2901
  type: string
2011
2902
  type: object
2012
- networkMode:
2013
- enum:
2014
- - HostNetwork
2015
- - NodePort
2016
- - FixedPodIP
2017
- - HeadlessService
2018
- - LoadBalancer
2019
- type: string
2020
2903
  serviceDescriptor:
2021
2904
  type: object
2022
2905
  description: serviceDescriptor that will be used in serviceRef. The field definition is in line with kubeblocks.
@@ -2115,11 +2998,6 @@ components:
2115
2998
  * `HardAntiAffinity` - Strictly enforce pod anti-affinity across nodes. Pods will not be scheduled when the anti-affinity constraints cannot be satisfied.
2116
2999
  * `SoftAntiAffinity` - Prefer to spread pods across nodes using anti-affinity, but allow scheduling on the same node when constraints cannot be fully satisfied.
2117
3000
  * `Disabled` - Do not apply pod anti-affinity constraints on nodes.
2118
- koordinatorReservationResourceClass:
2119
- type: string
2120
- enum:
2121
- - database
2122
- - business
2123
3001
  cluster:
2124
3002
  required:
2125
3003
  - engine
@@ -2348,29 +3226,6 @@ components:
2348
3226
  description: the tags for the storage
2349
3227
  additionalProperties:
2350
3228
  type: string
2351
- victoriaLogsConfig:
2352
- type: object
2353
- allOf:
2354
- - $ref: '#/components/schemas/staticCluster'
2355
- - type: object
2356
- properties:
2357
- retentionPeriod:
2358
- type: string
2359
- x-nullable: false
2360
- description: Environment installation log retention, explicitly overriding the addon default. Defaults to 100y when omitted. Accepts a number with s (seconds), h (hours), d (days), w (weeks), M (months), or y (years); a bare number means months. Must be between 1d and 100y. Disk usage retention limits still apply.
2361
- retentionMaxDiskUsagePercent:
2362
- type: integer
2363
- nullable: true
2364
- minimum: 1
2365
- maximum: 100
2366
- description: Maximum disk usage percentage before VictoriaLogs deletes older log partitions. Defaults to 80 when omitted. Applies independently of retentionPeriod.
2367
- environmentType:
2368
- type: string
2369
- description: Type of this environment
2370
- enum:
2371
- - public
2372
- - private
2373
- default: public
2374
3229
  tag:
2375
3230
  description: tag info
2376
3231
  properties:
@@ -2976,15 +3831,6 @@ components:
2976
3831
  platformParameterCategory:
2977
3832
  type: string
2978
3833
  description: platformParameter category, representing the platformParameter group
2979
- localizedDescription:
2980
- type: object
2981
- properties:
2982
- zh-CN:
2983
- type: string
2984
- x-nullable: true
2985
- en-US:
2986
- type: string
2987
- x-nullable: true
2988
3834
  platformParameter:
2989
3835
  description: platformParameter item
2990
3836
  type: object