kb-cloud-client-typescript 2.3.31-beta.0 → 2.3.32

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 (146) hide show
  1. package/dist/adminapi/apis/environment-api.d.ts +95 -0
  2. package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/environment-api.js +93 -0
  4. package/dist/adminapi/apis/environment-api.js.map +1 -1
  5. package/dist/adminapi/apis/parameter-template-api.d.ts +18 -10
  6. package/dist/adminapi/apis/parameter-template-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/parameter-template-api.js +16 -11
  8. package/dist/adminapi/apis/parameter-template-api.js.map +1 -1
  9. package/dist/adminapi/apis/vip-pool-api.d.ts +72 -0
  10. package/dist/adminapi/apis/vip-pool-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/vip-pool-api.js +80 -0
  12. package/dist/adminapi/apis/vip-pool-api.js.map +1 -1
  13. package/dist/adminapi/models/cluster-create.d.ts +6 -0
  14. package/dist/adminapi/models/cluster-create.d.ts.map +1 -1
  15. package/dist/adminapi/models/component-item-create.d.ts +8 -1
  16. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  17. package/dist/adminapi/models/engine-option-history.d.ts +5 -4
  18. package/dist/adminapi/models/engine-option-history.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.d.ts +8 -0
  20. package/dist/adminapi/models/index.d.ts.map +1 -1
  21. package/dist/adminapi/models/index.js +8 -0
  22. package/dist/adminapi/models/index.js.map +1 -1
  23. package/dist/adminapi/models/instance-template-attribute.d.ts +23 -0
  24. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -0
  25. package/dist/adminapi/models/instance-template-attribute.js +27 -0
  26. package/dist/adminapi/models/instance-template-attribute.js.map +1 -0
  27. package/dist/adminapi/models/instance-template-create-env-inner.d.ts +31 -0
  28. package/dist/adminapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  29. package/dist/adminapi/models/instance-template-create-env-inner.js +16 -0
  30. package/dist/adminapi/models/instance-template-create-env-inner.js.map +1 -0
  31. package/dist/adminapi/models/instance-template-create.d.ts +54 -0
  32. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -0
  33. package/dist/adminapi/models/instance-template-create.js +16 -0
  34. package/dist/adminapi/models/instance-template-create.js.map +1 -0
  35. package/dist/adminapi/models/instance-template-env.d.ts +50 -0
  36. package/dist/adminapi/models/instance-template-env.d.ts.map +1 -0
  37. package/dist/adminapi/models/instance-template-env.js +16 -0
  38. package/dist/adminapi/models/instance-template-env.js.map +1 -0
  39. package/dist/adminapi/models/instance-template-op.d.ts +22 -0
  40. package/dist/adminapi/models/instance-template-op.d.ts.map +1 -0
  41. package/dist/adminapi/models/instance-template-op.js +26 -0
  42. package/dist/adminapi/models/instance-template-op.js.map +1 -0
  43. package/dist/adminapi/models/instance-template-replicas.d.ts +31 -0
  44. package/dist/adminapi/models/instance-template-replicas.d.ts.map +1 -0
  45. package/dist/adminapi/models/instance-template-replicas.js +16 -0
  46. package/dist/adminapi/models/instance-template-replicas.js.map +1 -0
  47. package/dist/adminapi/models/mode-component-instance-template.d.ts +46 -0
  48. package/dist/adminapi/models/mode-component-instance-template.d.ts.map +1 -0
  49. package/dist/adminapi/models/mode-component-instance-template.js +16 -0
  50. package/dist/adminapi/models/mode-component-instance-template.js.map +1 -0
  51. package/dist/adminapi/models/mode-component.d.ts +7 -0
  52. package/dist/adminapi/models/mode-component.d.ts.map +1 -1
  53. package/dist/adminapi/models/ops-hscale.d.ts +8 -1
  54. package/dist/adminapi/models/ops-hscale.d.ts.map +1 -1
  55. package/dist/adminapi/models/ops-vscale.d.ts +1 -1
  56. package/dist/adminapi/models/vip-pool-create.d.ts +6 -0
  57. package/dist/adminapi/models/vip-pool-create.d.ts.map +1 -1
  58. package/dist/adminapi/models/vip-pool-update.d.ts +25 -0
  59. package/dist/adminapi/models/vip-pool-update.d.ts.map +1 -0
  60. package/dist/adminapi/models/vip-pool-update.js +16 -0
  61. package/dist/adminapi/models/vip-pool-update.js.map +1 -0
  62. package/dist/adminapi/models/vip-pool.d.ts +12 -0
  63. package/dist/adminapi/models/vip-pool.d.ts.map +1 -1
  64. package/dist/openapi/models/cluster-create.d.ts +6 -0
  65. package/dist/openapi/models/cluster-create.d.ts.map +1 -1
  66. package/dist/openapi/models/component-item-create.d.ts +8 -1
  67. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  68. package/dist/openapi/models/index.d.ts +7 -0
  69. package/dist/openapi/models/index.d.ts.map +1 -1
  70. package/dist/openapi/models/index.js +7 -0
  71. package/dist/openapi/models/index.js.map +1 -1
  72. package/dist/openapi/models/instance-template-attribute.d.ts +23 -0
  73. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -0
  74. package/dist/openapi/models/instance-template-attribute.js +27 -0
  75. package/dist/openapi/models/instance-template-attribute.js.map +1 -0
  76. package/dist/openapi/models/instance-template-create-env-inner.d.ts +31 -0
  77. package/dist/openapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  78. package/dist/openapi/models/instance-template-create-env-inner.js +16 -0
  79. package/dist/openapi/models/instance-template-create-env-inner.js.map +1 -0
  80. package/dist/openapi/models/instance-template-create.d.ts +54 -0
  81. package/dist/openapi/models/instance-template-create.d.ts.map +1 -0
  82. package/dist/openapi/models/instance-template-create.js +16 -0
  83. package/dist/openapi/models/instance-template-create.js.map +1 -0
  84. package/dist/openapi/models/instance-template-env.d.ts +50 -0
  85. package/dist/openapi/models/instance-template-env.d.ts.map +1 -0
  86. package/dist/openapi/models/instance-template-env.js +16 -0
  87. package/dist/openapi/models/instance-template-env.js.map +1 -0
  88. package/dist/openapi/models/instance-template-op.d.ts +22 -0
  89. package/dist/openapi/models/instance-template-op.d.ts.map +1 -0
  90. package/dist/openapi/models/instance-template-op.js +26 -0
  91. package/dist/openapi/models/instance-template-op.js.map +1 -0
  92. package/dist/openapi/models/instance-template-replicas.d.ts +31 -0
  93. package/dist/openapi/models/instance-template-replicas.d.ts.map +1 -0
  94. package/dist/openapi/models/instance-template-replicas.js +16 -0
  95. package/dist/openapi/models/instance-template-replicas.js.map +1 -0
  96. package/dist/openapi/models/mode-component-instance-template.d.ts +46 -0
  97. package/dist/openapi/models/mode-component-instance-template.d.ts.map +1 -0
  98. package/dist/openapi/models/mode-component-instance-template.js +16 -0
  99. package/dist/openapi/models/mode-component-instance-template.js.map +1 -0
  100. package/dist/openapi/models/mode-component.d.ts +7 -0
  101. package/dist/openapi/models/mode-component.d.ts.map +1 -1
  102. package/dist/openapi/models/ops-hscale.d.ts +8 -1
  103. package/dist/openapi/models/ops-hscale.d.ts.map +1 -1
  104. package/dist/openapi/models/ops-vscale.d.ts +1 -1
  105. package/dist/openapi/models/vip-pool.d.ts +12 -0
  106. package/dist/openapi/models/vip-pool.d.ts.map +1 -1
  107. package/package.json +1 -1
  108. package/src/adminapi/.openapi-generator/FILES +8 -0
  109. package/src/adminapi/apis/environment-api.ts +155 -0
  110. package/src/adminapi/apis/parameter-template-api.ts +26 -13
  111. package/src/adminapi/apis/vip-pool-api.ts +128 -0
  112. package/src/adminapi/models/cluster-create.ts +6 -0
  113. package/src/adminapi/models/component-item-create.ts +10 -1
  114. package/src/adminapi/models/engine-option-history.ts +3 -6
  115. package/src/adminapi/models/index.ts +8 -0
  116. package/src/adminapi/models/instance-template-attribute.ts +32 -0
  117. package/src/adminapi/models/instance-template-create-env-inner.ts +36 -0
  118. package/src/adminapi/models/instance-template-create.ts +57 -0
  119. package/src/adminapi/models/instance-template-env.ts +57 -0
  120. package/src/adminapi/models/instance-template-op.ts +31 -0
  121. package/src/adminapi/models/instance-template-replicas.ts +36 -0
  122. package/src/adminapi/models/mode-component-instance-template.ts +57 -0
  123. package/src/adminapi/models/mode-component.ts +9 -0
  124. package/src/adminapi/models/ops-hscale.ts +10 -1
  125. package/src/adminapi/models/ops-vscale.ts +1 -1
  126. package/src/adminapi/models/vip-pool-create.ts +6 -0
  127. package/src/adminapi/models/vip-pool-update.ts +30 -0
  128. package/src/adminapi/models/vip-pool.ts +12 -0
  129. package/src/adminapi.yaml +369 -69
  130. package/src/internalapi.yaml +2 -4
  131. package/src/openapi/.openapi-generator/FILES +7 -0
  132. package/src/openapi/models/cluster-create.ts +6 -0
  133. package/src/openapi/models/component-item-create.ts +10 -1
  134. package/src/openapi/models/index.ts +7 -0
  135. package/src/openapi/models/instance-template-attribute.ts +32 -0
  136. package/src/openapi/models/instance-template-create-env-inner.ts +36 -0
  137. package/src/openapi/models/instance-template-create.ts +57 -0
  138. package/src/openapi/models/instance-template-env.ts +57 -0
  139. package/src/openapi/models/instance-template-op.ts +31 -0
  140. package/src/openapi/models/instance-template-replicas.ts +36 -0
  141. package/src/openapi/models/mode-component-instance-template.ts +57 -0
  142. package/src/openapi/models/mode-component.ts +9 -0
  143. package/src/openapi/models/ops-hscale.ts +10 -1
  144. package/src/openapi/models/ops-vscale.ts +1 -1
  145. package/src/openapi/models/vip-pool.ts +12 -0
  146. package/src/openapi.yaml +240 -62
package/src/adminapi.yaml CHANGED
@@ -116,7 +116,7 @@ paths:
116
116
  '404':
117
117
  $ref: '#/components/responses/404'
118
118
  '409':
119
- $ref: '#/components/responses/400'
119
+ $ref: '#/components/responses/409'
120
120
  '500':
121
121
  $ref: '#/components/responses/500'
122
122
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars:
@@ -159,7 +159,7 @@ paths:
159
159
  '404':
160
160
  $ref: '#/components/responses/404'
161
161
  '409':
162
- $ref: '#/components/responses/400'
162
+ $ref: '#/components/responses/409'
163
163
  '500':
164
164
  $ref: '#/components/responses/500'
165
165
  post:
@@ -208,9 +208,9 @@ paths:
208
208
  '404':
209
209
  $ref: '#/components/responses/404'
210
210
  '409':
211
- $ref: '#/components/responses/400'
211
+ $ref: '#/components/responses/409'
212
212
  '413':
213
- description: Upload exceeds the configured size limit
213
+ $ref: '#/components/responses/413'
214
214
  '500':
215
215
  $ref: '#/components/responses/500'
216
216
  requestBody:
@@ -274,7 +274,7 @@ paths:
274
274
  '404':
275
275
  $ref: '#/components/responses/404'
276
276
  '409':
277
- $ref: '#/components/responses/400'
277
+ $ref: '#/components/responses/409'
278
278
  '500':
279
279
  $ref: '#/components/responses/500'
280
280
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/download:
@@ -323,7 +323,7 @@ paths:
323
323
  '404':
324
324
  $ref: '#/components/responses/404'
325
325
  '409':
326
- $ref: '#/components/responses/400'
326
+ $ref: '#/components/responses/409'
327
327
  '500':
328
328
  $ref: '#/components/responses/500'
329
329
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/distribute:
@@ -371,7 +371,7 @@ paths:
371
371
  '404':
372
372
  $ref: '#/components/responses/404'
373
373
  '409':
374
- $ref: '#/components/responses/400'
374
+ $ref: '#/components/responses/409'
375
375
  '500':
376
376
  $ref: '#/components/responses/500'
377
377
  requestBody:
@@ -425,7 +425,7 @@ paths:
425
425
  '404':
426
426
  $ref: '#/components/responses/404'
427
427
  '409':
428
- $ref: '#/components/responses/400'
428
+ $ref: '#/components/responses/409'
429
429
  '500':
430
430
  $ref: '#/components/responses/500'
431
431
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/archive:
@@ -469,7 +469,7 @@ paths:
469
469
  '404':
470
470
  $ref: '#/components/responses/404'
471
471
  '409':
472
- $ref: '#/components/responses/400'
472
+ $ref: '#/components/responses/409'
473
473
  '500':
474
474
  $ref: '#/components/responses/500'
475
475
  /admin/v1/user:
@@ -4650,13 +4650,20 @@ paths:
4650
4650
  post:
4651
4651
  operationId: createParameterTemplate
4652
4652
  summary: Create parameter template
4653
+ description: Create a parameter template in the target organization from an existing template. To copy a custom template from another organization, specify oriOrgName and provide a new name. Cross-organization creation only supports non-private custom source templates. The created template is always non-private; any isPrivate value in the request body is ignored.
4653
4654
  parameters:
4654
- - description: name of the Org
4655
+ - description: Name of the target organization
4655
4656
  in: query
4656
4657
  name: orgName
4657
4658
  required: true
4658
4659
  schema:
4659
4660
  type: string
4661
+ - description: 'Name of the source organization. When omitted, empty, or equal to orgName, existing creation behavior is preserved: custom templates are read from the target organization and default templates from the system organization. A different source organization requires oriPartition to be custom and name to differ from oriName. Both organizations must be active. The source may be the system organization, but the target must not be the system organization. A non-empty value containing only whitespace is invalid.'
4662
+ in: query
4663
+ name: oriOrgName
4664
+ required: false
4665
+ schema:
4666
+ type: string
4660
4667
  requestBody:
4661
4668
  content:
4662
4669
  application/json:
@@ -4670,12 +4677,16 @@ paths:
4670
4677
  schema:
4671
4678
  $ref: '#/components/schemas/paramTplListItem'
4672
4679
  description: create parameter template successfully
4680
+ '400':
4681
+ $ref: '#/components/responses/400'
4673
4682
  '401':
4674
4683
  $ref: '#/components/responses/401'
4675
4684
  '403':
4676
4685
  $ref: '#/components/responses/403'
4677
4686
  '404':
4678
4687
  $ref: '#/components/responses/404'
4688
+ '409':
4689
+ $ref: '#/components/responses/409'
4679
4690
  tags:
4680
4691
  - parameterTemplate
4681
4692
  x-codegen-request-body-name: body
@@ -10102,6 +10113,58 @@ paths:
10102
10113
  $ref: '#/components/responses/403'
10103
10114
  '404':
10104
10115
  $ref: '#/components/responses/404'
10116
+ /admin/v1/environments/{environmentName}/resources/{resourceName}:
10117
+ get:
10118
+ operationId: getEnvironmentResource
10119
+ summary: Get a live Kubernetes resource
10120
+ description: Returns one named Kubernetes object, excluding metadata.managedFields. The code allowlist currently permits only apiVersion v1 with kind PersistentVolumeClaim; other valid resource types return 403 before Kubernetes access. Requires Admin environment read permission. Does not support lists, subresources or writes.
10121
+ tags:
10122
+ - environment
10123
+ parameters:
10124
+ - in: path
10125
+ name: environmentName
10126
+ required: true
10127
+ schema:
10128
+ type: string
10129
+ - in: path
10130
+ name: resourceName
10131
+ required: true
10132
+ schema:
10133
+ type: string
10134
+ - in: query
10135
+ name: apiVersion
10136
+ description: Kubernetes API version. Currently only v1 with kind PersistentVolumeClaim is allowed.
10137
+ required: true
10138
+ schema:
10139
+ type: string
10140
+ - in: query
10141
+ name: kind
10142
+ description: Kubernetes kind. Currently only PersistentVolumeClaim with apiVersion v1 is allowed.
10143
+ required: true
10144
+ schema:
10145
+ type: string
10146
+ - in: query
10147
+ name: namespace
10148
+ description: Required for namespaced kinds; must be omitted for cluster-scoped kinds.
10149
+ schema:
10150
+ type: string
10151
+ responses:
10152
+ '200':
10153
+ description: The live Kubernetes resource, including metadata, spec and status when present.
10154
+ content:
10155
+ application/json:
10156
+ schema:
10157
+ $ref: '#/components/schemas/jsonBody'
10158
+ '400':
10159
+ $ref: '#/components/responses/400'
10160
+ '401':
10161
+ $ref: '#/components/responses/401'
10162
+ '403':
10163
+ $ref: '#/components/responses/403'
10164
+ '404':
10165
+ $ref: '#/components/responses/404'
10166
+ '500':
10167
+ $ref: '#/components/responses/500'
10105
10168
  /admin/v1/environments:
10106
10169
  get:
10107
10170
  operationId: listEnvironment
@@ -11372,6 +11435,44 @@ paths:
11372
11435
  $ref: '#/components/responses/404'
11373
11436
  tags:
11374
11437
  - vipPool
11438
+ put:
11439
+ operationId: updateVIPPool
11440
+ summary: Update environment VIP Pool
11441
+ parameters:
11442
+ - description: name of the environment
11443
+ in: path
11444
+ name: environmentName
11445
+ required: true
11446
+ schema:
11447
+ type: string
11448
+ - description: id of the VIP Pool
11449
+ in: path
11450
+ name: poolID
11451
+ required: true
11452
+ schema:
11453
+ type: string
11454
+ requestBody:
11455
+ content:
11456
+ application/json:
11457
+ schema:
11458
+ $ref: '#/components/schemas/vipPoolUpdate'
11459
+ required: true
11460
+ responses:
11461
+ '200':
11462
+ content:
11463
+ application/json:
11464
+ schema:
11465
+ $ref: '#/components/schemas/vipPool'
11466
+ description: A successful response.
11467
+ '400':
11468
+ $ref: '#/components/responses/400'
11469
+ '403':
11470
+ $ref: '#/components/responses/403'
11471
+ '404':
11472
+ $ref: '#/components/responses/404'
11473
+ tags:
11474
+ - vipPool
11475
+ x-codegen-request-body-name: body
11375
11476
  /admin/v1/environments/{environmentName}/storageClasses:
11376
11477
  get:
11377
11478
  description: Provides a summary of storage class statistics.
@@ -16585,7 +16686,7 @@ paths:
16585
16686
  description: Inspection tasks created and accepted for asynchronous execution.
16586
16687
  content: {}
16587
16688
  '400':
16588
- description: Invalid request, invalid cluster selection, or no eligible clusters.
16689
+ $ref: '#/components/responses/400'
16589
16690
  '401':
16590
16691
  $ref: '#/components/responses/401'
16591
16692
  '403':
@@ -22460,7 +22561,7 @@ paths:
22460
22561
  $ref: '#/components/schemas/accountList'
22461
22562
  description: Success
22462
22563
  '400':
22463
- description: Invalid request
22564
+ $ref: '#/components/responses/400'
22464
22565
  '401':
22465
22566
  $ref: '#/components/responses/401'
22466
22567
  '403':
@@ -22468,9 +22569,9 @@ paths:
22468
22569
  '404':
22469
22570
  $ref: '#/components/responses/404'
22470
22571
  '409':
22471
- description: Resource conflict or policy in use
22572
+ $ref: '#/components/responses/409'
22472
22573
  '503':
22473
- description: IAM unavailable; mutation outcome may be unknown
22574
+ $ref: '#/components/responses/503'
22474
22575
  tags:
22475
22576
  - account
22476
22577
  - seaweedfs
@@ -22507,7 +22608,7 @@ paths:
22507
22608
  schema:
22508
22609
  $ref: '#/components/schemas/account'
22509
22610
  '400':
22510
- description: Invalid request
22611
+ $ref: '#/components/responses/400'
22511
22612
  '401':
22512
22613
  $ref: '#/components/responses/401'
22513
22614
  '403':
@@ -22515,9 +22616,9 @@ paths:
22515
22616
  '404':
22516
22617
  $ref: '#/components/responses/404'
22517
22618
  '409':
22518
- description: Resource conflict or policy in use
22619
+ $ref: '#/components/responses/409'
22519
22620
  '503':
22520
- description: IAM unavailable; mutation outcome may be unknown
22621
+ $ref: '#/components/responses/503'
22521
22622
  tags:
22522
22623
  - account
22523
22624
  - seaweedfs
@@ -22552,7 +22653,7 @@ paths:
22552
22653
  content: {}
22553
22654
  description: Identity deleted
22554
22655
  '400':
22555
- description: Invalid request
22656
+ $ref: '#/components/responses/400'
22556
22657
  '401':
22557
22658
  $ref: '#/components/responses/401'
22558
22659
  '403':
@@ -22560,9 +22661,9 @@ paths:
22560
22661
  '404':
22561
22662
  $ref: '#/components/responses/404'
22562
22663
  '409':
22563
- description: Resource conflict or policy in use
22664
+ $ref: '#/components/responses/409'
22564
22665
  '503':
22565
- description: IAM unavailable; mutation outcome may be unknown
22666
+ $ref: '#/components/responses/503'
22566
22667
  tags:
22567
22668
  - account
22568
22669
  - seaweedfs
@@ -22604,7 +22705,7 @@ paths:
22604
22705
  schema:
22605
22706
  $ref: '#/components/schemas/account'
22606
22707
  '400':
22607
- description: Invalid request
22708
+ $ref: '#/components/responses/400'
22608
22709
  '401':
22609
22710
  $ref: '#/components/responses/401'
22610
22711
  '403':
@@ -22612,9 +22713,9 @@ paths:
22612
22713
  '404':
22613
22714
  $ref: '#/components/responses/404'
22614
22715
  '409':
22615
- description: Resource conflict or policy in use
22716
+ $ref: '#/components/responses/409'
22616
22717
  '503':
22617
- description: IAM unavailable; mutation outcome may be unknown
22718
+ $ref: '#/components/responses/503'
22618
22719
  tags:
22619
22720
  - account
22620
22721
  - seaweedfs
@@ -22703,7 +22804,7 @@ paths:
22703
22804
  required: true
22704
22805
  responses:
22705
22806
  '400':
22706
- description: SeaweedFS uses the named policy binding API
22807
+ $ref: '#/components/responses/400'
22707
22808
  tags:
22708
22809
  - account
22709
22810
  - seaweedfs
@@ -22752,17 +22853,17 @@ paths:
22752
22853
  type: object
22753
22854
  additionalProperties: true
22754
22855
  '400':
22755
- description: Invalid request
22856
+ $ref: '#/components/responses/400'
22756
22857
  '401':
22757
- description: Unauthenticated
22858
+ $ref: '#/components/responses/401'
22758
22859
  '403':
22759
- description: Permission denied or protected identity
22860
+ $ref: '#/components/responses/403'
22760
22861
  '404':
22761
- description: Resource not found
22862
+ $ref: '#/components/responses/404'
22762
22863
  '409':
22763
- description: Resource conflict or policy in use
22864
+ $ref: '#/components/responses/409'
22764
22865
  '503':
22765
- description: IAM unavailable; mutation outcome may be unknown
22866
+ $ref: '#/components/responses/503'
22766
22867
  /admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}:
22767
22868
  put:
22768
22869
  summary: putSeaweedFSPolicy
@@ -22791,17 +22892,17 @@ paths:
22791
22892
  '204':
22792
22893
  description: Successful response
22793
22894
  '400':
22794
- description: Invalid request
22895
+ $ref: '#/components/responses/400'
22795
22896
  '401':
22796
- description: Unauthenticated
22897
+ $ref: '#/components/responses/401'
22797
22898
  '403':
22798
- description: Permission denied or protected identity
22899
+ $ref: '#/components/responses/403'
22799
22900
  '404':
22800
- description: Resource not found
22901
+ $ref: '#/components/responses/404'
22801
22902
  '409':
22802
- description: Resource conflict or policy in use
22903
+ $ref: '#/components/responses/409'
22803
22904
  '503':
22804
- description: IAM unavailable; mutation outcome may be unknown
22905
+ $ref: '#/components/responses/503'
22805
22906
  requestBody:
22806
22907
  required: true
22807
22908
  content:
@@ -22837,17 +22938,17 @@ paths:
22837
22938
  '204':
22838
22939
  description: Successful response
22839
22940
  '400':
22840
- description: Invalid request
22941
+ $ref: '#/components/responses/400'
22841
22942
  '401':
22842
- description: Unauthenticated
22943
+ $ref: '#/components/responses/401'
22843
22944
  '403':
22844
- description: Permission denied or protected identity
22945
+ $ref: '#/components/responses/403'
22845
22946
  '404':
22846
- description: Resource not found
22947
+ $ref: '#/components/responses/404'
22847
22948
  '409':
22848
- description: Resource conflict or policy in use
22949
+ $ref: '#/components/responses/409'
22849
22950
  '503':
22850
- description: IAM unavailable; mutation outcome may be unknown
22951
+ $ref: '#/components/responses/503'
22851
22952
  description: Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
22852
22953
  /admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies:
22853
22954
  put:
@@ -22877,17 +22978,17 @@ paths:
22877
22978
  '204':
22878
22979
  description: Successful response
22879
22980
  '400':
22880
- description: Invalid request
22981
+ $ref: '#/components/responses/400'
22881
22982
  '401':
22882
- description: Unauthenticated
22983
+ $ref: '#/components/responses/401'
22883
22984
  '403':
22884
- description: Permission denied or protected identity
22985
+ $ref: '#/components/responses/403'
22885
22986
  '404':
22886
- description: Resource not found
22987
+ $ref: '#/components/responses/404'
22887
22988
  '409':
22888
- description: Resource conflict or policy in use
22989
+ $ref: '#/components/responses/409'
22889
22990
  '503':
22890
- description: IAM unavailable; mutation outcome may be unknown
22991
+ $ref: '#/components/responses/503'
22891
22992
  requestBody:
22892
22993
  required: true
22893
22994
  content:
@@ -22934,17 +23035,17 @@ paths:
22934
23035
  schema:
22935
23036
  $ref: '#/components/schemas/account'
22936
23037
  '400':
22937
- description: Invalid request
23038
+ $ref: '#/components/responses/400'
22938
23039
  '401':
22939
- description: Unauthenticated
23040
+ $ref: '#/components/responses/401'
22940
23041
  '403':
22941
- description: Permission denied or protected identity
23042
+ $ref: '#/components/responses/403'
22942
23043
  '404':
22943
- description: Resource not found
23044
+ $ref: '#/components/responses/404'
22944
23045
  '409':
22945
- description: Resource conflict or policy in use
23046
+ $ref: '#/components/responses/409'
22946
23047
  '503':
22947
- description: IAM unavailable; mutation outcome may be unknown
23048
+ $ref: '#/components/responses/503'
22948
23049
  requestBody:
22949
23050
  required: true
22950
23051
  content:
@@ -22985,17 +23086,17 @@ paths:
22985
23086
  '204':
22986
23087
  description: Successful response
22987
23088
  '400':
22988
- description: Invalid request
23089
+ $ref: '#/components/responses/400'
22989
23090
  '401':
22990
- description: Unauthenticated
23091
+ $ref: '#/components/responses/401'
22991
23092
  '403':
22992
- description: Permission denied or protected identity
23093
+ $ref: '#/components/responses/403'
22993
23094
  '404':
22994
- description: Resource not found
23095
+ $ref: '#/components/responses/404'
22995
23096
  '409':
22996
- description: Resource conflict or policy in use
23097
+ $ref: '#/components/responses/409'
22997
23098
  '503':
22998
- description: IAM unavailable; mutation outcome may be unknown
23099
+ $ref: '#/components/responses/503'
22999
23100
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts:
23000
23101
  get:
23001
23102
  description: list accounts in cluster
@@ -29850,6 +29951,48 @@ components:
29850
29951
  enum:
29851
29952
  - DoNotTerminate
29852
29953
  - Delete
29954
+ instanceTemplateCreate:
29955
+ type: object
29956
+ additionalProperties: false
29957
+ description: |
29958
+ Create assignment for one instance template. name and replicas are required. env, annotations, and labels are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once.
29959
+ required:
29960
+ - name
29961
+ - replicas
29962
+ properties:
29963
+ name:
29964
+ type: string
29965
+ minLength: 1
29966
+ description: Instance template name; must match a chart-rendered instance.
29967
+ replicas:
29968
+ type: integer
29969
+ minimum: 0
29970
+ description: Replica count for this instance template.
29971
+ env:
29972
+ type: array
29973
+ description: Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
29974
+ items:
29975
+ type: object
29976
+ required:
29977
+ - name
29978
+ - value
29979
+ properties:
29980
+ name:
29981
+ type: string
29982
+ value:
29983
+ type: string
29984
+ minLength: 1
29985
+ description: Plain string value only. valueFrom is not supported.
29986
+ annotations:
29987
+ type: object
29988
+ additionalProperties:
29989
+ type: string
29990
+ description: Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
29991
+ labels:
29992
+ type: object
29993
+ additionalProperties:
29994
+ type: string
29995
+ description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
29853
29996
  ioQuantity:
29854
29997
  description: IO Quantity describes IOPS and BPS of a volume
29855
29998
  properties:
@@ -29932,7 +30075,13 @@ components:
29932
30075
  replicas:
29933
30076
  title: Replicas
29934
30077
  type: integer
29935
- description: The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3.
30078
+ description: The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3. If the rendered component has instance templates, this must equal the sum of all template replica counts in the complete instanceTemplates list.
30079
+ instanceTemplates:
30080
+ type: array
30081
+ minItems: 1
30082
+ description: Per-template replicas and optional overlays (env, annotations, labels). Required when the chart renders instance templates. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
30083
+ items:
30084
+ $ref: '#/components/schemas/instanceTemplateCreate'
29936
30085
  skipResourceConstraints:
29937
30086
  type: boolean
29938
30087
  description: Whether to skip resource constraint validation when creating cluster
@@ -30226,6 +30375,10 @@ components:
30226
30375
  networkMode:
30227
30376
  description: Specify the network mode for intra-cluster communication
30228
30377
  $ref: '#/components/schemas/networkMode'
30378
+ vipPoolName:
30379
+ title: VIP Pool Name
30380
+ description: Name of the VIP Pool (VIP Pool poolName) used as the MetalLB address pool for LoadBalancer services. Only effective when networkMode is LoadBalancer.
30381
+ type: string
30229
30382
  serviceRefs:
30230
30383
  type: array
30231
30384
  items:
@@ -31344,8 +31497,23 @@ components:
31344
31497
  x-nullable: true
31345
31498
  required:
31346
31499
  - type
31500
+ instanceTemplateReplicas:
31501
+ type: object
31502
+ description: HScale assignment for one instance template. name and replicas only.
31503
+ required:
31504
+ - name
31505
+ - replicas
31506
+ properties:
31507
+ name:
31508
+ type: string
31509
+ minLength: 1
31510
+ description: Instance template name on the live Cluster spec.
31511
+ replicas:
31512
+ type: integer
31513
+ minimum: 0
31514
+ description: Target replica count for this instance template.
31347
31515
  opsHScale:
31348
- description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. It requires specifying either the number of replicas or the number of shards.
31516
+ description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. instanceTemplates is an optional overlay and requires top-level replicas.
31349
31517
  required:
31350
31518
  - component
31351
31519
  properties:
@@ -31361,6 +31529,12 @@ components:
31361
31529
  description: number of replicas
31362
31530
  type: integer
31363
31531
  nullable: true
31532
+ instanceTemplates:
31533
+ type: array
31534
+ minItems: 1
31535
+ description: Target replica count for named instance templates. Requires top-level replicas. Mapped onto the live Cluster spec to build scaleIn/scaleOut.instances. Required for replica scaling when the live component has instance templates. Names must exactly match all live instance templates, without missing, extra, or duplicate names; order does not matter. Top-level replicas must equal the sum of all requested template replica counts. Shard-count scaling does not check templates and cannot include this list.
31536
+ items:
31537
+ $ref: '#/components/schemas/instanceTemplateReplicas'
31364
31538
  onlineInstancesToOffline:
31365
31539
  type: array
31366
31540
  items:
@@ -35409,7 +35583,7 @@ components:
35409
35583
  description: memory size
35410
35584
  type: string
35411
35585
  classCode:
35412
- description: class code of the cluster
35586
+ description: Class code for component-level vertical scaling.
35413
35587
  type: string
35414
35588
  schedule:
35415
35589
  $ref: '#/components/schemas/taskSchedule'
@@ -35719,6 +35893,11 @@ components:
35719
35893
  required:
35720
35894
  - serviceName
35721
35895
  - serviceNamespace
35896
+ jsonBody:
35897
+ description: Represents a JSON body.
35898
+ properties: {}
35899
+ additionalProperties: true
35900
+ type: object
35722
35901
  logBackendType:
35723
35902
  type: string
35724
35903
  description: Log query backend configured for this environment.
@@ -36754,11 +36933,6 @@ components:
36754
36933
  - items
36755
36934
  - updatedAt
36756
36935
  type: object
36757
- jsonBody:
36758
- description: Represents a JSON body.
36759
- properties: {}
36760
- additionalProperties: true
36761
- type: object
36762
36936
  instanceResourceStatsType:
36763
36937
  description: Type of the instance, choose cluster, system, or other
36764
36938
  enum:
@@ -37015,6 +37189,14 @@ components:
37015
37189
  description: ID of VIP Pool
37016
37190
  title: ID
37017
37191
  type: string
37192
+ name:
37193
+ description: Name of VIP Pool. It is the MetalLB IPAddressPool resource name, generated as kb-<id>.
37194
+ title: Name
37195
+ type: string
37196
+ poolName:
37197
+ description: User facing name of the VIP Pool, used to select the pool when creating a cluster. It falls back to the IPAddressPool resource name.
37198
+ title: Pool Name
37199
+ type: string
37018
37200
  total:
37019
37201
  description: Total number of IP addresses
37020
37202
  format: int64
@@ -37051,6 +37233,21 @@ components:
37051
37233
  type: object
37052
37234
  vipPoolCreate:
37053
37235
  description: VIP Pool create
37236
+ properties:
37237
+ addresses:
37238
+ description: IP Addresses
37239
+ title: IP Addresses
37240
+ type: string
37241
+ poolName:
37242
+ description: Name of the VIP Pool. It is what a cluster selects the pool by, so it is not restricted by Kubernetes resource naming rules. The MetalLB IPAddressPool resource name stays the generated kb-<id>.
37243
+ title: Pool Name
37244
+ type: string
37245
+ required:
37246
+ - addresses
37247
+ - poolName
37248
+ type: object
37249
+ vipPoolUpdate:
37250
+ description: VIP Pool update
37054
37251
  properties:
37055
37252
  addresses:
37056
37253
  description: IP Addresses
@@ -39087,6 +39284,39 @@ components:
39087
39284
  enum:
39088
39285
  - '0.9'
39089
39286
  - '1.0'
39287
+ instanceTemplateOp:
39288
+ type: string
39289
+ description: Operation that can be declared on instanceTemplate.ops.
39290
+ enum:
39291
+ - hscale
39292
+ - vscale
39293
+ instanceTemplateAttribute:
39294
+ type: string
39295
+ description: Heterogeneous attribute the frontend may render on an instance template at create.
39296
+ enum:
39297
+ - env
39298
+ - annotations
39299
+ - labels
39300
+ instanceTemplateEnv:
39301
+ type: object
39302
+ description: One fillable env var on an instance template, for frontend rendering.
39303
+ required:
39304
+ - name
39305
+ properties:
39306
+ name:
39307
+ type: string
39308
+ minLength: 1
39309
+ description: Env var name written to the instance template.
39310
+ label:
39311
+ $ref: '#/components/schemas/localizedDescription'
39312
+ description:
39313
+ $ref: '#/components/schemas/localizedDescription'
39314
+ required:
39315
+ type: boolean
39316
+ description: If true, the frontend should treat this env as required. Create does not re-check.
39317
+ default:
39318
+ type: string
39319
+ description: Default value shown by the frontend.
39090
39320
  modeReadonlyEndpoint:
39091
39321
  type: object
39092
39322
  required:
@@ -39108,6 +39338,64 @@ components:
39108
39338
  type: boolean
39109
39339
  hideOnCreate:
39110
39340
  type: boolean
39341
+ instanceTemplate:
39342
+ type: object
39343
+ description: |
39344
+ Frontend catalog of instance templates for this mode component.
39345
+ names, ops, attributes, and env are for UI rendering. Create
39346
+ validates the request against chart-rendered Cluster instances,
39347
+ not this catalog. HScale does not re-check this catalog; it
39348
+ builds the OpsRequest from the request and the live Cluster.
39349
+ HScale instanceTemplates still requires top-level replicas.
39350
+ ops lists hscale and vscale for the UI (vscale is reserved;
39351
+ class stays component-level). Only HScale processes instance templates.
39352
+ VolumeExpansion, VScale, Upgrade, Restart, and other operations silently
39353
+ ignore instance templates and keep their component-level behavior.
39354
+ Template-level volumeexpansion is not implemented.
39355
+ The platform does not even-split or fill in missing templates.
39356
+ When absent, the frontend should use component-level operations.
39357
+ required:
39358
+ - names
39359
+ - ops
39360
+ properties:
39361
+ names:
39362
+ type: array
39363
+ minItems: 1
39364
+ uniqueItems: true
39365
+ items:
39366
+ type: string
39367
+ description: |
39368
+ Instance template names the frontend should render.
39369
+ Create and hscale check names against the chart or live Cluster,
39370
+ not this list.
39371
+ ops:
39372
+ type: array
39373
+ minItems: 1
39374
+ items:
39375
+ $ref: '#/components/schemas/instanceTemplateOp'
39376
+ description: |
39377
+ Operations the frontend should offer per template: hscale, vscale.
39378
+ Not re-checked when creating a cluster or building an hscale OpsRequest.
39379
+ Only hscale currently acts per template; vscale is reserved.
39380
+ VolumeExpansion, VScale, Upgrade, and Restart ignore instance templates
39381
+ and keep their component-level behavior.
39382
+ attributes:
39383
+ type: array
39384
+ uniqueItems: true
39385
+ items:
39386
+ $ref: '#/components/schemas/instanceTemplateAttribute'
39387
+ description: |
39388
+ Heterogeneous attributes the frontend should render on each
39389
+ instance template at create. Omitted or empty means only name
39390
+ and replicas. Create overlays the request onto the chart and
39391
+ does not re-check this list.
39392
+ env:
39393
+ type: array
39394
+ description: |
39395
+ Env vars the frontend may render when attributes includes env.
39396
+ Create does not re-check this list.
39397
+ items:
39398
+ $ref: '#/components/schemas/instanceTemplateEnv'
39111
39399
  serviceRef:
39112
39400
  type: string
39113
39401
  description: |
@@ -41338,7 +41626,13 @@ components:
41338
41626
  modifierEmail:
41339
41627
  type: string
41340
41628
  option:
41341
- $ref: '#/components/schemas/engineOption'
41629
+ description: |
41630
+ Engine option document stored when this history row was written.
41631
+ This is a point-in-time snapshot, not the current engineOption
41632
+ create/update contract. Nested fields such as endpoints.protocol
41633
+ may be absent on older rows.
41634
+ type: object
41635
+ additionalProperties: true
41342
41636
  createdAt:
41343
41637
  type: string
41344
41638
  format: date-time
@@ -50048,6 +50342,12 @@ components:
50048
50342
  schema:
50049
50343
  $ref: '#/components/schemas/APIErrorResponse'
50050
50344
  description: Conflict
50345
+ '413':
50346
+ content:
50347
+ application/json:
50348
+ schema:
50349
+ $ref: '#/components/schemas/APIErrorResponse'
50350
+ description: Payload Too Large
50051
50351
  '429':
50052
50352
  content:
50053
50353
  application/json: