kb-cloud-client-typescript 2.3.69 → 2.3.70

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 (134) hide show
  1. package/dist/adminapi/apis/backup-api.d.ts +3 -3
  2. package/dist/adminapi/apis/backup-api.js +2 -2
  3. package/dist/adminapi/apis/diagnostics-api.d.ts +79 -0
  4. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
  5. package/dist/adminapi/apis/diagnostics-api.js +84 -0
  6. package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
  7. package/dist/adminapi/apis/dolphindb-api.d.ts +225 -0
  8. package/dist/adminapi/apis/dolphindb-api.d.ts.map +1 -1
  9. package/dist/adminapi/apis/dolphindb-api.js +243 -0
  10. package/dist/adminapi/apis/dolphindb-api.js.map +1 -1
  11. package/dist/adminapi/apis/shared-api.d.ts +227 -3
  12. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  13. package/dist/adminapi/apis/shared-api.js +245 -2
  14. package/dist/adminapi/apis/shared-api.js.map +1 -1
  15. package/dist/adminapi/models/dolphin-dbdistribution.d.ts +39 -0
  16. package/dist/adminapi/models/dolphin-dbdistribution.d.ts.map +1 -0
  17. package/dist/adminapi/models/dolphin-dbdistribution.js +16 -0
  18. package/dist/adminapi/models/dolphin-dbdistribution.js.map +1 -0
  19. package/dist/adminapi/models/dolphin-dbmigration.d.ts +43 -0
  20. package/dist/adminapi/models/dolphin-dbmigration.d.ts.map +1 -0
  21. package/dist/adminapi/models/dolphin-dbmigration.js +16 -0
  22. package/dist/adminapi/models/dolphin-dbmigration.js.map +1 -0
  23. package/dist/adminapi/models/dolphin-dbrebalance-preview.d.ts +50 -0
  24. package/dist/adminapi/models/dolphin-dbrebalance-preview.d.ts.map +1 -0
  25. package/dist/adminapi/models/dolphin-dbrebalance-preview.js +16 -0
  26. package/dist/adminapi/models/dolphin-dbrebalance-preview.js.map +1 -0
  27. package/dist/adminapi/models/dolphin-dbrebalance-request.d.ts +31 -0
  28. package/dist/adminapi/models/dolphin-dbrebalance-request.d.ts.map +1 -0
  29. package/dist/adminapi/models/dolphin-dbrebalance-request.js +16 -0
  30. package/dist/adminapi/models/dolphin-dbrebalance-request.js.map +1 -0
  31. package/dist/adminapi/models/dolphin-dbreplica-distribution.d.ts +31 -0
  32. package/dist/adminapi/models/dolphin-dbreplica-distribution.d.ts.map +1 -0
  33. package/dist/adminapi/models/dolphin-dbreplica-distribution.js +16 -0
  34. package/dist/adminapi/models/dolphin-dbreplica-distribution.js.map +1 -0
  35. package/dist/adminapi/models/dolphin-dbvolume-usage.d.ts +43 -0
  36. package/dist/adminapi/models/dolphin-dbvolume-usage.d.ts.map +1 -0
  37. package/dist/adminapi/models/dolphin-dbvolume-usage.js +16 -0
  38. package/dist/adminapi/models/dolphin-dbvolume-usage.js.map +1 -0
  39. package/dist/adminapi/models/environment-delete.d.ts +6 -0
  40. package/dist/adminapi/models/environment-delete.d.ts.map +1 -1
  41. package/dist/adminapi/models/index.d.ts +7 -0
  42. package/dist/adminapi/models/index.d.ts.map +1 -1
  43. package/dist/adminapi/models/index.js +7 -0
  44. package/dist/adminapi/models/index.js.map +1 -1
  45. package/dist/adminapi/models/selected-object-conversion-strategy.d.ts +22 -0
  46. package/dist/adminapi/models/selected-object-conversion-strategy.d.ts.map +1 -0
  47. package/dist/adminapi/models/selected-object-conversion-strategy.js +26 -0
  48. package/dist/adminapi/models/selected-object-conversion-strategy.js.map +1 -0
  49. package/dist/adminapi/models/selected-object-option-tree.d.ts +1 -1
  50. package/dist/adminapi/models/selected-object-option.d.ts +7 -0
  51. package/dist/adminapi/models/selected-object-option.d.ts.map +1 -1
  52. package/dist/openapi/apis/backup-api.d.ts +3 -3
  53. package/dist/openapi/apis/backup-api.js +2 -2
  54. package/dist/openapi/apis/diagnostics-api.d.ts +79 -0
  55. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
  56. package/dist/openapi/apis/diagnostics-api.js +84 -0
  57. package/dist/openapi/apis/diagnostics-api.js.map +1 -1
  58. package/dist/openapi/apis/dolphindb-api.d.ts +225 -0
  59. package/dist/openapi/apis/dolphindb-api.d.ts.map +1 -1
  60. package/dist/openapi/apis/dolphindb-api.js +243 -0
  61. package/dist/openapi/apis/dolphindb-api.js.map +1 -1
  62. package/dist/openapi/apis/shared-api.d.ts +227 -3
  63. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  64. package/dist/openapi/apis/shared-api.js +245 -2
  65. package/dist/openapi/apis/shared-api.js.map +1 -1
  66. package/dist/openapi/models/dolphin-dbdistribution.d.ts +39 -0
  67. package/dist/openapi/models/dolphin-dbdistribution.d.ts.map +1 -0
  68. package/dist/openapi/models/dolphin-dbdistribution.js +16 -0
  69. package/dist/openapi/models/dolphin-dbdistribution.js.map +1 -0
  70. package/dist/openapi/models/dolphin-dbmigration.d.ts +43 -0
  71. package/dist/openapi/models/dolphin-dbmigration.d.ts.map +1 -0
  72. package/dist/openapi/models/dolphin-dbmigration.js +16 -0
  73. package/dist/openapi/models/dolphin-dbmigration.js.map +1 -0
  74. package/dist/openapi/models/dolphin-dbrebalance-preview.d.ts +50 -0
  75. package/dist/openapi/models/dolphin-dbrebalance-preview.d.ts.map +1 -0
  76. package/dist/openapi/models/dolphin-dbrebalance-preview.js +16 -0
  77. package/dist/openapi/models/dolphin-dbrebalance-preview.js.map +1 -0
  78. package/dist/openapi/models/dolphin-dbrebalance-request.d.ts +31 -0
  79. package/dist/openapi/models/dolphin-dbrebalance-request.d.ts.map +1 -0
  80. package/dist/openapi/models/dolphin-dbrebalance-request.js +16 -0
  81. package/dist/openapi/models/dolphin-dbrebalance-request.js.map +1 -0
  82. package/dist/openapi/models/dolphin-dbreplica-distribution.d.ts +31 -0
  83. package/dist/openapi/models/dolphin-dbreplica-distribution.d.ts.map +1 -0
  84. package/dist/openapi/models/dolphin-dbreplica-distribution.js +16 -0
  85. package/dist/openapi/models/dolphin-dbreplica-distribution.js.map +1 -0
  86. package/dist/openapi/models/dolphin-dbvolume-usage.d.ts +43 -0
  87. package/dist/openapi/models/dolphin-dbvolume-usage.d.ts.map +1 -0
  88. package/dist/openapi/models/dolphin-dbvolume-usage.js +16 -0
  89. package/dist/openapi/models/dolphin-dbvolume-usage.js.map +1 -0
  90. package/dist/openapi/models/index.d.ts +7 -0
  91. package/dist/openapi/models/index.d.ts.map +1 -1
  92. package/dist/openapi/models/index.js +7 -0
  93. package/dist/openapi/models/index.js.map +1 -1
  94. package/dist/openapi/models/selected-object-conversion-strategy.d.ts +22 -0
  95. package/dist/openapi/models/selected-object-conversion-strategy.d.ts.map +1 -0
  96. package/dist/openapi/models/selected-object-conversion-strategy.js +26 -0
  97. package/dist/openapi/models/selected-object-conversion-strategy.js.map +1 -0
  98. package/dist/openapi/models/selected-object-option-tree.d.ts +1 -1
  99. package/dist/openapi/models/selected-object-option.d.ts +7 -0
  100. package/dist/openapi/models/selected-object-option.d.ts.map +1 -1
  101. package/package.json +1 -1
  102. package/src/adminapi/.openapi-generator/FILES +7 -0
  103. package/src/adminapi/apis/backup-api.ts +3 -3
  104. package/src/adminapi/apis/diagnostics-api.ts +138 -0
  105. package/src/adminapi/apis/dolphindb-api.ts +397 -0
  106. package/src/adminapi/apis/shared-api.ts +398 -3
  107. package/src/adminapi/models/dolphin-dbdistribution.ts +48 -0
  108. package/src/adminapi/models/dolphin-dbmigration.ts +48 -0
  109. package/src/adminapi/models/dolphin-dbrebalance-preview.ts +57 -0
  110. package/src/adminapi/models/dolphin-dbrebalance-request.ts +36 -0
  111. package/src/adminapi/models/dolphin-dbreplica-distribution.ts +36 -0
  112. package/src/adminapi/models/dolphin-dbvolume-usage.ts +48 -0
  113. package/src/adminapi/models/environment-delete.ts +6 -0
  114. package/src/adminapi/models/index.ts +7 -0
  115. package/src/adminapi/models/selected-object-conversion-strategy.ts +31 -0
  116. package/src/adminapi/models/selected-object-option-tree.ts +1 -1
  117. package/src/adminapi/models/selected-object-option.ts +11 -0
  118. package/src/adminapi.yaml +319 -28
  119. package/src/openapi/.openapi-generator/FILES +7 -0
  120. package/src/openapi/apis/backup-api.ts +3 -3
  121. package/src/openapi/apis/diagnostics-api.ts +138 -0
  122. package/src/openapi/apis/dolphindb-api.ts +397 -0
  123. package/src/openapi/apis/shared-api.ts +398 -3
  124. package/src/openapi/models/dolphin-dbdistribution.ts +48 -0
  125. package/src/openapi/models/dolphin-dbmigration.ts +48 -0
  126. package/src/openapi/models/dolphin-dbrebalance-preview.ts +57 -0
  127. package/src/openapi/models/dolphin-dbrebalance-request.ts +36 -0
  128. package/src/openapi/models/dolphin-dbreplica-distribution.ts +36 -0
  129. package/src/openapi/models/dolphin-dbvolume-usage.ts +48 -0
  130. package/src/openapi/models/index.ts +7 -0
  131. package/src/openapi/models/selected-object-conversion-strategy.ts +31 -0
  132. package/src/openapi/models/selected-object-option-tree.ts +1 -1
  133. package/src/openapi/models/selected-object-option.ts +11 -0
  134. package/src/openapi.yaml +316 -28
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { DolphinDBMigration } from './dolphin-dbmigration';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface DolphinDBRebalancePreview
24
+ */
25
+ export interface DolphinDBRebalancePreview {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof DolphinDBRebalancePreview
30
+ */
31
+ 'observedAt'?: string;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof DolphinDBRebalancePreview
36
+ */
37
+ 'updatedBeforeDays'?: number;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof DolphinDBRebalancePreview
42
+ */
43
+ 'total'?: number;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof DolphinDBRebalancePreview
48
+ */
49
+ 'offset'?: number;
50
+ /**
51
+ *
52
+ * @type {Array<DolphinDBMigration>}
53
+ * @memberof DolphinDBRebalancePreview
54
+ */
55
+ 'entries'?: Array<DolphinDBMigration>;
56
+ }
57
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface DolphinDBRebalanceRequest
21
+ */
22
+ export interface DolphinDBRebalanceRequest {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof DolphinDBRebalanceRequest
27
+ */
28
+ 'updatedBeforeDays'?: number;
29
+ /**
30
+ * Addon wait timeout. Expiry does not cancel native migrations.
31
+ * @type {number}
32
+ * @memberof DolphinDBRebalanceRequest
33
+ */
34
+ 'timeoutSeconds'?: number;
35
+ }
36
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface DolphinDBReplicaDistribution
21
+ */
22
+ export interface DolphinDBReplicaDistribution {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof DolphinDBReplicaDistribution
27
+ */
28
+ 'node'?: string;
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof DolphinDBReplicaDistribution
33
+ */
34
+ 'replicaCount'?: number;
35
+ }
36
+
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface DolphinDBVolumeUsage
21
+ */
22
+ export interface DolphinDBVolumeUsage {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof DolphinDBVolumeUsage
27
+ */
28
+ 'node'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof DolphinDBVolumeUsage
33
+ */
34
+ 'volumePath'?: string;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof DolphinDBVolumeUsage
39
+ */
40
+ 'usage'?: number;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof DolphinDBVolumeUsage
45
+ */
46
+ 'capacity'?: number;
47
+ }
48
+
@@ -370,17 +370,23 @@ export * from './dms-unique-key';
370
370
  export * from './dms-view-metadata';
371
371
  export * from './dms-visual-explain-request';
372
372
  export * from './dolphin-dbcapabilities';
373
+ export * from './dolphin-dbdistribution';
373
374
  export * from './dolphin-dbgroup';
374
375
  export * from './dolphin-dbgroup-create';
375
376
  export * from './dolphin-dbgroup-permissions';
376
377
  export * from './dolphin-dbmembership-change';
378
+ export * from './dolphin-dbmigration';
377
379
  export * from './dolphin-dbpassword-change';
378
380
  export * from './dolphin-dbpermission-change';
379
381
  export * from './dolphin-dbpermission-snapshot';
380
382
  export * from './dolphin-dbpermission-state';
381
383
  export * from './dolphin-dbprivilege-capability';
384
+ export * from './dolphin-dbrebalance-preview';
385
+ export * from './dolphin-dbrebalance-request';
386
+ export * from './dolphin-dbreplica-distribution';
382
387
  export * from './dolphin-dbuser';
383
388
  export * from './dolphin-dbuser-create';
389
+ export * from './dolphin-dbvolume-usage';
384
390
  export * from './esput-security-user-request';
385
391
  export * from './essecurity-application-privileges';
386
392
  export * from './essecurity-field-security';
@@ -879,6 +885,7 @@ export * from './role-update';
879
885
  export * from './scheduler-option';
880
886
  export * from './scheduling-policy-type';
881
887
  export * from './select-module-mode';
888
+ export * from './selected-object-conversion-strategy';
882
889
  export * from './selected-object-option';
883
890
  export * from './selected-object-option-convert-to-parameters-inner';
884
891
  export * from './selected-object-option-tree';
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * Strategy for converting the selected tree to parameters. levelMapping maps every configured level and applies skipWhenParentLevelsSelectedAll. wholeObject merges duplicate branches and maps only whole selected nodes (selectedAll or leaves), omitting covered descendants. Defaults to levelMapping when omitted.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const SelectedObjectConversionStrategy = {
24
+ levelMapping: 'levelMapping',
25
+ wholeObject: 'wholeObject'
26
+ } as const;
27
+
28
+ export type SelectedObjectConversionStrategy = typeof SelectedObjectConversionStrategy[keyof typeof SelectedObjectConversionStrategy];
29
+
30
+
31
+
@@ -30,7 +30,7 @@ export interface SelectedObjectOptionTree {
30
30
  */
31
31
  'switchWithDatabase'?: boolean;
32
32
  /**
33
- * The SQL query to retrieve the object tree
33
+ * The engine-native query returning the columns used to build the object tree.
34
34
  * @type {string}
35
35
  * @memberof SelectedObjectOptionTree
36
36
  */
@@ -13,6 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { SelectedObjectConversionStrategy } from './selected-object-conversion-strategy';
16
19
  // May contain unused imports in some cases
17
20
  // @ts-ignore
18
21
  import type { SelectedObjectOptionConvertToParametersInner } from './selected-object-option-convert-to-parameters-inner';
@@ -26,6 +29,12 @@ import type { SelectedObjectOptionTree } from './selected-object-option-tree';
26
29
  * @interface SelectedObjectOption
27
30
  */
28
31
  export interface SelectedObjectOption {
32
+ /**
33
+ *
34
+ * @type {SelectedObjectConversionStrategy}
35
+ * @memberof SelectedObjectOption
36
+ */
37
+ 'conversionStrategy'?: SelectedObjectConversionStrategy;
29
38
  /**
30
39
  *
31
40
  * @type {SelectedObjectOptionTree}
@@ -40,3 +49,5 @@ export interface SelectedObjectOption {
40
49
  'convertToParameters'?: Array<SelectedObjectOptionConvertToParametersInner>;
41
50
  }
42
51
 
52
+
53
+
package/src/openapi.yaml CHANGED
@@ -114,6 +114,147 @@ tags:
114
114
  - name: blueGreenDeployment
115
115
  description: Blue Green Deployment APIs
116
116
  paths:
117
+ /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/preview:
118
+ get:
119
+ summary: DolphinDB PreviewRebalance
120
+ operationId: dolphinDBPreviewRebalance
121
+ tags:
122
+ - dolphindb
123
+ - shared
124
+ description: Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
125
+ parameters:
126
+ - name: orgName
127
+ in: path
128
+ required: true
129
+ schema:
130
+ type: string
131
+ - name: clusterName
132
+ in: path
133
+ required: true
134
+ schema:
135
+ type: string
136
+ - name: offset
137
+ in: query
138
+ schema:
139
+ type: integer
140
+ minimum: 0
141
+ maximum: 10000000
142
+ default: 0
143
+ - name: limit
144
+ in: query
145
+ schema:
146
+ type: integer
147
+ minimum: 1
148
+ maximum: 1000
149
+ default: 100
150
+ - name: updatedBeforeDays
151
+ in: query
152
+ schema:
153
+ type: number
154
+ minimum: 0
155
+ maximum: 36500
156
+ default: 7
157
+ responses:
158
+ '200':
159
+ description: Operation result
160
+ content:
161
+ application/json:
162
+ schema:
163
+ $ref: '#/components/schemas/DolphinDBRebalancePreview'
164
+ '400':
165
+ $ref: '#/components/responses/400'
166
+ '401':
167
+ $ref: '#/components/responses/401'
168
+ '403':
169
+ $ref: '#/components/responses/403'
170
+ '404':
171
+ $ref: '#/components/responses/404'
172
+ '409':
173
+ $ref: '#/components/responses/409'
174
+ '500':
175
+ $ref: '#/components/responses/500'
176
+ /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/distribution:
177
+ get:
178
+ summary: DolphinDB GetDistribution
179
+ operationId: dolphinDBGetDistribution
180
+ tags:
181
+ - dolphindb
182
+ - shared
183
+ description: Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
184
+ parameters:
185
+ - name: orgName
186
+ in: path
187
+ required: true
188
+ schema:
189
+ type: string
190
+ - name: clusterName
191
+ in: path
192
+ required: true
193
+ schema:
194
+ type: string
195
+ responses:
196
+ '200':
197
+ description: Operation result
198
+ content:
199
+ application/json:
200
+ schema:
201
+ $ref: '#/components/schemas/DolphinDBDistribution'
202
+ '400':
203
+ $ref: '#/components/responses/400'
204
+ '401':
205
+ $ref: '#/components/responses/401'
206
+ '403':
207
+ $ref: '#/components/responses/403'
208
+ '404':
209
+ $ref: '#/components/responses/404'
210
+ '409':
211
+ $ref: '#/components/responses/409'
212
+ '500':
213
+ $ref: '#/components/responses/500'
214
+ /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/operations:
215
+ post:
216
+ summary: DolphinDB CreateRebalance
217
+ operationId: dolphinDBCreateRebalance
218
+ tags:
219
+ - dolphindb
220
+ - shared
221
+ description: Submit the built-in dolphindb-rebalance Custom Ops through the platform scheduler. Returns the unified taskId; use platform task APIs for history and status. A timeout or cancellation does not cancel native migrations. Do not automatically resubmit a timed-out request.
222
+ parameters:
223
+ - name: orgName
224
+ in: path
225
+ required: true
226
+ schema:
227
+ type: string
228
+ - name: clusterName
229
+ in: path
230
+ required: true
231
+ schema:
232
+ type: string
233
+ responses:
234
+ '202':
235
+ description: Operation result
236
+ content:
237
+ application/json:
238
+ schema:
239
+ $ref: '#/components/schemas/opsRequestName'
240
+ '400':
241
+ $ref: '#/components/responses/400'
242
+ '401':
243
+ $ref: '#/components/responses/401'
244
+ '403':
245
+ $ref: '#/components/responses/403'
246
+ '404':
247
+ $ref: '#/components/responses/404'
248
+ '409':
249
+ $ref: '#/components/responses/409'
250
+ '500':
251
+ $ref: '#/components/responses/500'
252
+ requestBody:
253
+ required: true
254
+ content:
255
+ application/json:
256
+ schema:
257
+ $ref: '#/components/schemas/DolphinDBRebalanceRequest'
117
258
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/accounts:
118
259
  get:
119
260
  summary: DolphinDB ListUsers
@@ -7440,6 +7581,61 @@ paths:
7440
7581
  $ref: '#/components/responses/404'
7441
7582
  '500':
7442
7583
  $ref: '#/components/responses/500'
7584
+ /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/performanceTrends:
7585
+ get:
7586
+ tags:
7587
+ - diagnostics
7588
+ summary: Get Kingbase performance trends
7589
+ description: |
7590
+ Get read-only Kingbase performance trends from backend-owned metrics. The response covers resource, connection, workload, database, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials.
7591
+ V9 queries.perSecond requires track_sql=on and track_sql_item either empty (all items) or containing the complete sqltime item. Each QPS sample must have matching settings from the same scrape target and timestamp; disabled, missing, stale, or conflicting settings exclude that sample from both series and summaries. V8 QPS does not depend on these V9 settings. Unknown or unverified major versions (including V10) omit QPS without querying it.
7592
+ An absent QPS series means collection availability cannot be confirmed; it does not mean zero load or prove that SQL tracking is disabled. Check the database version, SQL tracking settings, and collection of same-scrape settings metrics. Source success describes queries with displayable results, not the availability of every metric. Empty metrics do not produce query-failure warnings.
7593
+ xid.age, database.sizeBytes, and locks.observedSessionCount cover user databases only, excluding esrep, kingbase, security, template0, template1, and empty or placeholder (-) database names. xid.age is not an instance-wide wraparound safety check: system database ages are not shown. Its 150M/180M warning/critical thresholds are static references, not the cluster's freeze settings or database limits.
7594
+ operationId: getDiagnosticsKingbasePerformanceTrends
7595
+ parameters:
7596
+ - name: orgName
7597
+ in: path
7598
+ description: Organization name
7599
+ required: true
7600
+ schema:
7601
+ type: string
7602
+ - name: clusterName
7603
+ in: path
7604
+ description: Cluster name
7605
+ required: true
7606
+ schema:
7607
+ type: string
7608
+ - name: range
7609
+ in: query
7610
+ description: Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h.
7611
+ required: false
7612
+ schema:
7613
+ type: string
7614
+ - name: step
7615
+ in: query
7616
+ description: Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. For range 7d, step must be at least 5m; the default is 1h.
7617
+ required: false
7618
+ schema:
7619
+ type: string
7620
+ responses:
7621
+ '200':
7622
+ description: OK
7623
+ content:
7624
+ application/json:
7625
+ schema:
7626
+ $ref: '#/components/schemas/performanceTrends'
7627
+ '400':
7628
+ $ref: '#/components/responses/400'
7629
+ '401':
7630
+ $ref: '#/components/responses/401'
7631
+ '403':
7632
+ $ref: '#/components/responses/403'
7633
+ '404':
7634
+ $ref: '#/components/responses/404'
7635
+ '429':
7636
+ $ref: '#/components/responses/429'
7637
+ '500':
7638
+ $ref: '#/components/responses/500'
7443
7639
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/sessions:
7444
7640
  get:
7445
7641
  tags:
@@ -8028,7 +8224,7 @@ paths:
8028
8224
  type: string
8029
8225
  - name: database
8030
8226
  in: query
8031
- description: database name
8227
+ description: Database name for engines configured to switch the object tree by database.
8032
8228
  schema:
8033
8229
  type: string
8034
8230
  responses:
@@ -24030,25 +24226,39 @@ components:
24030
24226
  curl --digest -u "accessKey:secretKey" https://api.example.com/api/v1/user
24031
24227
  ```
24032
24228
  schemas:
24033
- DolphinDBUser:
24229
+ DolphinDBMigration:
24034
24230
  type: object
24035
24231
  properties:
24036
- name:
24232
+ chunkId:
24037
24233
  type: string
24038
- isAdmin:
24039
- type: boolean
24040
- groups:
24234
+ srcNode:
24235
+ type: string
24236
+ destNode:
24237
+ type: string
24238
+ destVolume:
24239
+ type: string
24240
+ required:
24241
+ - chunkId
24242
+ - srcNode
24243
+ - destNode
24244
+ DolphinDBRebalancePreview:
24245
+ type: object
24246
+ properties:
24247
+ observedAt:
24248
+ type: string
24249
+ format: date-time
24250
+ updatedBeforeDays:
24251
+ type: number
24252
+ total:
24253
+ type: integer
24254
+ format: int64
24255
+ offset:
24256
+ type: integer
24257
+ format: int64
24258
+ entries:
24041
24259
  type: array
24042
24260
  items:
24043
- type: string
24044
- readOnly:
24045
- type: boolean
24046
- description: Built-in admin and management account are protected from mutation.
24047
- required:
24048
- - name
24049
- - isAdmin
24050
- - groups
24051
- - readOnly
24261
+ $ref: '#/components/schemas/DolphinDBMigration'
24052
24262
  APIErrorResponse:
24053
24263
  description: API error response.
24054
24264
  properties:
@@ -24064,6 +24274,87 @@ components:
24064
24274
  required:
24065
24275
  - code
24066
24276
  type: object
24277
+ DolphinDBVolumeUsage:
24278
+ type: object
24279
+ properties:
24280
+ node:
24281
+ type: string
24282
+ volumePath:
24283
+ type: string
24284
+ usage:
24285
+ type: integer
24286
+ format: int64
24287
+ capacity:
24288
+ type: integer
24289
+ format: int64
24290
+ DolphinDBReplicaDistribution:
24291
+ type: object
24292
+ properties:
24293
+ node:
24294
+ type: string
24295
+ replicaCount:
24296
+ type: integer
24297
+ format: int64
24298
+ DolphinDBDistribution:
24299
+ type: object
24300
+ properties:
24301
+ observedAt:
24302
+ type: string
24303
+ format: date-time
24304
+ volumes:
24305
+ type: array
24306
+ items:
24307
+ $ref: '#/components/schemas/DolphinDBVolumeUsage'
24308
+ replicas:
24309
+ type: array
24310
+ items:
24311
+ $ref: '#/components/schemas/DolphinDBReplicaDistribution'
24312
+ DolphinDBRebalanceRequest:
24313
+ type: object
24314
+ properties:
24315
+ updatedBeforeDays:
24316
+ type: number
24317
+ minimum: 0
24318
+ maximum: 36500
24319
+ default: 7
24320
+ timeoutSeconds:
24321
+ type: integer
24322
+ format: int32
24323
+ minimum: 1
24324
+ maximum: 86400
24325
+ default: 3600
24326
+ description: Addon wait timeout. Expiry does not cancel native migrations.
24327
+ opsRequestName:
24328
+ description: OpsRequestName is the name of a KubeBlocks OpsRequest response
24329
+ properties:
24330
+ opsRequestName:
24331
+ type: string
24332
+ clusterTaskId:
24333
+ type: string
24334
+ taskId:
24335
+ type: string
24336
+ required:
24337
+ - taskId
24338
+ type: object
24339
+ DolphinDBUser:
24340
+ type: object
24341
+ properties:
24342
+ name:
24343
+ type: string
24344
+ isAdmin:
24345
+ type: boolean
24346
+ groups:
24347
+ type: array
24348
+ items:
24349
+ type: string
24350
+ readOnly:
24351
+ type: boolean
24352
+ description: Built-in admin and management account are protected from mutation.
24353
+ required:
24354
+ - name
24355
+ - isAdmin
24356
+ - groups
24357
+ - readOnly
24067
24358
  DolphinDBUserCreate:
24068
24359
  type: object
24069
24360
  properties:
@@ -27891,18 +28182,6 @@ components:
27891
28182
  networkMode:
27892
28183
  description: Specify the network mode the cluster transitions to. Defaults to the network mode of the cluster when omitted.
27893
28184
  $ref: '#/components/schemas/networkMode'
27894
- opsRequestName:
27895
- description: OpsRequestName is the name of a KubeBlocks OpsRequest response
27896
- properties:
27897
- opsRequestName:
27898
- type: string
27899
- clusterTaskId:
27900
- type: string
27901
- taskId:
27902
- type: string
27903
- required:
27904
- - taskId
27905
- type: object
27906
28185
  sortType:
27907
28186
  description: Represents the type of sorting.
27908
28187
  enum:
@@ -34896,9 +35175,18 @@ components:
34896
35175
  type: string
34897
35176
  description:
34898
35177
  $ref: '#/components/schemas/localizedDescription'
35178
+ selectedObjectConversionStrategy:
35179
+ type: string
35180
+ enum:
35181
+ - levelMapping
35182
+ - wholeObject
35183
+ default: levelMapping
35184
+ description: Strategy for converting the selected tree to parameters. levelMapping maps every configured level and applies skipWhenParentLevelsSelectedAll. wholeObject merges duplicate branches and maps only whole selected nodes (selectedAll or leaves), omitting covered descendants. Defaults to levelMapping when omitted.
34899
35185
  selectedObjectOption:
34900
35186
  type: object
34901
35187
  properties:
35188
+ conversionStrategy:
35189
+ $ref: '#/components/schemas/selectedObjectConversionStrategy'
34902
35190
  tree:
34903
35191
  type: object
34904
35192
  required:
@@ -34910,7 +35198,7 @@ components:
34910
35198
  description: if set to true, the tree will switch when database is switched. This is used for database-level backup, and the root level of the tree is database. If not set or set to false, the tree will not switch when database is switched, and the root level of the tree is instance.
34911
35199
  sql:
34912
35200
  type: string
34913
- description: The SQL query to retrieve the object tree
35201
+ description: The engine-native query returning the columns used to build the object tree.
34914
35202
  levelOrder:
34915
35203
  type: array
34916
35204
  description: The order of object types in the hierarchy