kb-cloud-client-typescript 2.3.0-alpha.122 → 2.3.0-alpha.124
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.
- package/dist/adminapi/apis/account-api.d.ts +406 -0
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +427 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.d.ts +10 -2
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +10 -5
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/apis/rdbms-api.d.ts +406 -0
- package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/rdbms-api.js +427 -0
- package/dist/adminapi/apis/rdbms-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +406 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +427 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history-instance.d.ts +56 -0
- package/dist/adminapi/models/cluster-storage-usage-history-instance.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-storage-usage-history-instance.js +16 -0
- package/dist/adminapi/models/cluster-storage-usage-history-instance.js.map +1 -0
- package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +6 -0
- package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history.d.ts +4 -4
- package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -1
- package/dist/adminapi/models/dms-service-account-create-request.d.ts +55 -0
- package/dist/adminapi/models/dms-service-account-create-request.d.ts.map +1 -0
- package/dist/adminapi/models/dms-service-account-create-request.js +16 -0
- package/dist/adminapi/models/dms-service-account-create-request.js.map +1 -0
- package/dist/adminapi/models/dms-service-account-status.d.ts +22 -0
- package/dist/adminapi/models/dms-service-account-status.d.ts.map +1 -0
- package/dist/adminapi/models/dms-service-account-status.js +26 -0
- package/dist/adminapi/models/dms-service-account-status.js.map +1 -0
- package/dist/adminapi/models/dms-service-account-update-request.d.ts +32 -0
- package/dist/adminapi/models/dms-service-account-update-request.d.ts.map +1 -0
- package/dist/adminapi/models/dms-service-account-update-request.js +16 -0
- package/dist/adminapi/models/dms-service-account-update-request.js.map +1 -0
- package/dist/adminapi/models/dms-service-account.d.ts +73 -0
- package/dist/adminapi/models/dms-service-account.d.ts.map +1 -0
- package/dist/adminapi/models/dms-service-account.js +16 -0
- package/dist/adminapi/models/dms-service-account.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +6 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +6 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/postgresql-space-analysis.d.ts +10 -4
- package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-storage-instance-usage.d.ts +79 -0
- package/dist/adminapi/models/postgresql-storage-instance-usage.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-storage-instance-usage.js +16 -0
- package/dist/adminapi/models/postgresql-storage-instance-usage.js.map +1 -0
- package/dist/adminapi/models/postgresql-storage-overview.d.ts +6 -29
- package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.d.ts +10 -2
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +10 -5
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/models/cluster-storage-usage-history-instance.d.ts +56 -0
- package/dist/openapi/models/cluster-storage-usage-history-instance.d.ts.map +1 -0
- package/dist/openapi/models/cluster-storage-usage-history-instance.js +16 -0
- package/dist/openapi/models/cluster-storage-usage-history-instance.js.map +1 -0
- package/dist/openapi/models/cluster-storage-usage-history-point.d.ts +6 -0
- package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -1
- package/dist/openapi/models/cluster-storage-usage-history.d.ts +4 -4
- package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/postgresql-space-analysis.d.ts +10 -4
- package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-storage-instance-usage.d.ts +79 -0
- package/dist/openapi/models/postgresql-storage-instance-usage.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-storage-instance-usage.js +16 -0
- package/dist/openapi/models/postgresql-storage-instance-usage.js.map +1 -0
- package/dist/openapi/models/postgresql-storage-overview.d.ts +6 -29
- package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +6 -0
- package/src/adminapi/apis/account-api.ts +703 -0
- package/src/adminapi/apis/diagnostics-api.ts +18 -5
- package/src/adminapi/apis/rdbms-api.ts +703 -0
- package/src/adminapi/apis/shared-api.ts +703 -0
- package/src/adminapi/models/cluster-storage-usage-history-instance.ts +63 -0
- package/src/adminapi/models/cluster-storage-usage-history-point.ts +6 -0
- package/src/adminapi/models/cluster-storage-usage-history.ts +4 -4
- package/src/adminapi/models/dms-service-account-create-request.ts +60 -0
- package/src/adminapi/models/dms-service-account-status.ts +31 -0
- package/src/adminapi/models/dms-service-account-update-request.ts +41 -0
- package/src/adminapi/models/dms-service-account.ts +78 -0
- package/src/adminapi/models/index.ts +6 -0
- package/src/adminapi/models/postgresql-space-analysis.ts +10 -4
- package/src/adminapi/models/postgresql-storage-instance-usage.ts +84 -0
- package/src/adminapi/models/postgresql-storage-overview.ts +8 -29
- package/src/adminapi.yaml +408 -11
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/apis/diagnostics-api.ts +18 -5
- package/src/openapi/models/cluster-storage-usage-history-instance.ts +63 -0
- package/src/openapi/models/cluster-storage-usage-history-point.ts +6 -0
- package/src/openapi/models/cluster-storage-usage-history.ts +4 -4
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi/models/postgresql-space-analysis.ts +10 -4
- package/src/openapi/models/postgresql-storage-instance-usage.ts +84 -0
- package/src/openapi/models/postgresql-storage-overview.ts +8 -29
- package/src/openapi.yaml +78 -11
package/src/adminapi.yaml
CHANGED
|
@@ -18790,6 +18790,257 @@ paths:
|
|
|
18790
18790
|
- rdbms
|
|
18791
18791
|
- shared
|
|
18792
18792
|
x-codegen-request-body-name: body
|
|
18793
|
+
/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys:
|
|
18794
|
+
get:
|
|
18795
|
+
description: list MinIO service account access keys
|
|
18796
|
+
summary: List MinIO access keys
|
|
18797
|
+
operationId: listServiceAccounts
|
|
18798
|
+
parameters:
|
|
18799
|
+
- description: name of the engine
|
|
18800
|
+
in: path
|
|
18801
|
+
name: engineName
|
|
18802
|
+
required: true
|
|
18803
|
+
schema:
|
|
18804
|
+
type: string
|
|
18805
|
+
- description: name of the organization
|
|
18806
|
+
in: path
|
|
18807
|
+
name: orgName
|
|
18808
|
+
required: true
|
|
18809
|
+
schema:
|
|
18810
|
+
type: string
|
|
18811
|
+
- description: name of the cluster
|
|
18812
|
+
in: path
|
|
18813
|
+
name: clusterName
|
|
18814
|
+
required: true
|
|
18815
|
+
schema:
|
|
18816
|
+
type: string
|
|
18817
|
+
- description: MinIO user that owns the service accounts
|
|
18818
|
+
in: query
|
|
18819
|
+
name: userName
|
|
18820
|
+
required: false
|
|
18821
|
+
schema:
|
|
18822
|
+
type: string
|
|
18823
|
+
responses:
|
|
18824
|
+
'200':
|
|
18825
|
+
description: list MinIO access keys success
|
|
18826
|
+
content:
|
|
18827
|
+
application/json:
|
|
18828
|
+
schema:
|
|
18829
|
+
$ref: '#/components/schemas/DmsServiceAccountList'
|
|
18830
|
+
'401':
|
|
18831
|
+
$ref: '#/components/responses/401'
|
|
18832
|
+
'403':
|
|
18833
|
+
$ref: '#/components/responses/403'
|
|
18834
|
+
'404':
|
|
18835
|
+
$ref: '#/components/responses/404'
|
|
18836
|
+
'500':
|
|
18837
|
+
$ref: '#/components/responses/500'
|
|
18838
|
+
tags:
|
|
18839
|
+
- account
|
|
18840
|
+
- rdbms
|
|
18841
|
+
- shared
|
|
18842
|
+
post:
|
|
18843
|
+
description: create a MinIO service account access key
|
|
18844
|
+
summary: Create MinIO access key
|
|
18845
|
+
operationId: createServiceAccount
|
|
18846
|
+
parameters:
|
|
18847
|
+
- description: name of the engine
|
|
18848
|
+
in: path
|
|
18849
|
+
name: engineName
|
|
18850
|
+
required: true
|
|
18851
|
+
schema:
|
|
18852
|
+
type: string
|
|
18853
|
+
- description: name of the organization
|
|
18854
|
+
in: path
|
|
18855
|
+
name: orgName
|
|
18856
|
+
required: true
|
|
18857
|
+
schema:
|
|
18858
|
+
type: string
|
|
18859
|
+
- description: name of the cluster
|
|
18860
|
+
in: path
|
|
18861
|
+
name: clusterName
|
|
18862
|
+
required: true
|
|
18863
|
+
schema:
|
|
18864
|
+
type: string
|
|
18865
|
+
requestBody:
|
|
18866
|
+
content:
|
|
18867
|
+
application/json:
|
|
18868
|
+
schema:
|
|
18869
|
+
$ref: '#/components/schemas/DmsServiceAccountCreateRequest'
|
|
18870
|
+
required: true
|
|
18871
|
+
responses:
|
|
18872
|
+
'201':
|
|
18873
|
+
description: create MinIO access key success
|
|
18874
|
+
content:
|
|
18875
|
+
application/json:
|
|
18876
|
+
schema:
|
|
18877
|
+
$ref: '#/components/schemas/DmsServiceAccount'
|
|
18878
|
+
'400':
|
|
18879
|
+
$ref: '#/components/responses/400'
|
|
18880
|
+
'401':
|
|
18881
|
+
$ref: '#/components/responses/401'
|
|
18882
|
+
'403':
|
|
18883
|
+
$ref: '#/components/responses/403'
|
|
18884
|
+
'404':
|
|
18885
|
+
$ref: '#/components/responses/404'
|
|
18886
|
+
'500':
|
|
18887
|
+
$ref: '#/components/responses/500'
|
|
18888
|
+
tags:
|
|
18889
|
+
- account
|
|
18890
|
+
- rdbms
|
|
18891
|
+
- shared
|
|
18892
|
+
x-codegen-request-body-name: body
|
|
18893
|
+
/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}:
|
|
18894
|
+
get:
|
|
18895
|
+
description: get a MinIO service account access key
|
|
18896
|
+
summary: Get MinIO access key
|
|
18897
|
+
operationId: getServiceAccount
|
|
18898
|
+
parameters:
|
|
18899
|
+
- description: name of the engine
|
|
18900
|
+
in: path
|
|
18901
|
+
name: engineName
|
|
18902
|
+
required: true
|
|
18903
|
+
schema:
|
|
18904
|
+
type: string
|
|
18905
|
+
- description: name of the organization
|
|
18906
|
+
in: path
|
|
18907
|
+
name: orgName
|
|
18908
|
+
required: true
|
|
18909
|
+
schema:
|
|
18910
|
+
type: string
|
|
18911
|
+
- description: name of the cluster
|
|
18912
|
+
in: path
|
|
18913
|
+
name: clusterName
|
|
18914
|
+
required: true
|
|
18915
|
+
schema:
|
|
18916
|
+
type: string
|
|
18917
|
+
- description: MinIO access key
|
|
18918
|
+
in: path
|
|
18919
|
+
name: accessKey
|
|
18920
|
+
required: true
|
|
18921
|
+
schema:
|
|
18922
|
+
type: string
|
|
18923
|
+
responses:
|
|
18924
|
+
'200':
|
|
18925
|
+
description: get MinIO access key success
|
|
18926
|
+
content:
|
|
18927
|
+
application/json:
|
|
18928
|
+
schema:
|
|
18929
|
+
$ref: '#/components/schemas/DmsServiceAccount'
|
|
18930
|
+
'401':
|
|
18931
|
+
$ref: '#/components/responses/401'
|
|
18932
|
+
'403':
|
|
18933
|
+
$ref: '#/components/responses/403'
|
|
18934
|
+
'404':
|
|
18935
|
+
$ref: '#/components/responses/404'
|
|
18936
|
+
'500':
|
|
18937
|
+
$ref: '#/components/responses/500'
|
|
18938
|
+
tags:
|
|
18939
|
+
- account
|
|
18940
|
+
- rdbms
|
|
18941
|
+
- shared
|
|
18942
|
+
patch:
|
|
18943
|
+
description: update a MinIO service account access key
|
|
18944
|
+
summary: Update MinIO access key
|
|
18945
|
+
operationId: updateServiceAccount
|
|
18946
|
+
parameters:
|
|
18947
|
+
- description: name of the engine
|
|
18948
|
+
in: path
|
|
18949
|
+
name: engineName
|
|
18950
|
+
required: true
|
|
18951
|
+
schema:
|
|
18952
|
+
type: string
|
|
18953
|
+
- description: name of the organization
|
|
18954
|
+
in: path
|
|
18955
|
+
name: orgName
|
|
18956
|
+
required: true
|
|
18957
|
+
schema:
|
|
18958
|
+
type: string
|
|
18959
|
+
- description: name of the cluster
|
|
18960
|
+
in: path
|
|
18961
|
+
name: clusterName
|
|
18962
|
+
required: true
|
|
18963
|
+
schema:
|
|
18964
|
+
type: string
|
|
18965
|
+
- description: MinIO access key
|
|
18966
|
+
in: path
|
|
18967
|
+
name: accessKey
|
|
18968
|
+
required: true
|
|
18969
|
+
schema:
|
|
18970
|
+
type: string
|
|
18971
|
+
requestBody:
|
|
18972
|
+
content:
|
|
18973
|
+
application/json:
|
|
18974
|
+
schema:
|
|
18975
|
+
$ref: '#/components/schemas/DmsServiceAccountUpdateRequest'
|
|
18976
|
+
required: true
|
|
18977
|
+
responses:
|
|
18978
|
+
'200':
|
|
18979
|
+
description: update MinIO access key success
|
|
18980
|
+
content:
|
|
18981
|
+
application/json:
|
|
18982
|
+
schema:
|
|
18983
|
+
$ref: '#/components/schemas/DmsServiceAccount'
|
|
18984
|
+
'400':
|
|
18985
|
+
$ref: '#/components/responses/400'
|
|
18986
|
+
'401':
|
|
18987
|
+
$ref: '#/components/responses/401'
|
|
18988
|
+
'403':
|
|
18989
|
+
$ref: '#/components/responses/403'
|
|
18990
|
+
'404':
|
|
18991
|
+
$ref: '#/components/responses/404'
|
|
18992
|
+
'500':
|
|
18993
|
+
$ref: '#/components/responses/500'
|
|
18994
|
+
tags:
|
|
18995
|
+
- account
|
|
18996
|
+
- rdbms
|
|
18997
|
+
- shared
|
|
18998
|
+
x-codegen-request-body-name: body
|
|
18999
|
+
delete:
|
|
19000
|
+
description: delete a MinIO service account access key
|
|
19001
|
+
summary: Delete MinIO access key
|
|
19002
|
+
operationId: deleteServiceAccount
|
|
19003
|
+
parameters:
|
|
19004
|
+
- description: name of the engine
|
|
19005
|
+
in: path
|
|
19006
|
+
name: engineName
|
|
19007
|
+
required: true
|
|
19008
|
+
schema:
|
|
19009
|
+
type: string
|
|
19010
|
+
- description: name of the organization
|
|
19011
|
+
in: path
|
|
19012
|
+
name: orgName
|
|
19013
|
+
required: true
|
|
19014
|
+
schema:
|
|
19015
|
+
type: string
|
|
19016
|
+
- description: name of the cluster
|
|
19017
|
+
in: path
|
|
19018
|
+
name: clusterName
|
|
19019
|
+
required: true
|
|
19020
|
+
schema:
|
|
19021
|
+
type: string
|
|
19022
|
+
- description: MinIO access key
|
|
19023
|
+
in: path
|
|
19024
|
+
name: accessKey
|
|
19025
|
+
required: true
|
|
19026
|
+
schema:
|
|
19027
|
+
type: string
|
|
19028
|
+
responses:
|
|
19029
|
+
'204':
|
|
19030
|
+
content: {}
|
|
19031
|
+
description: Returned when access key is deleted successfully.
|
|
19032
|
+
'401':
|
|
19033
|
+
$ref: '#/components/responses/401'
|
|
19034
|
+
'403':
|
|
19035
|
+
$ref: '#/components/responses/403'
|
|
19036
|
+
'404':
|
|
19037
|
+
$ref: '#/components/responses/404'
|
|
19038
|
+
'500':
|
|
19039
|
+
$ref: '#/components/responses/500'
|
|
19040
|
+
tags:
|
|
19041
|
+
- account
|
|
19042
|
+
- rdbms
|
|
19043
|
+
- shared
|
|
18793
19044
|
/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/root-password:
|
|
18794
19045
|
get:
|
|
18795
19046
|
description: get root account password
|
|
@@ -19144,6 +19395,12 @@ paths:
|
|
|
19144
19395
|
required: true
|
|
19145
19396
|
schema:
|
|
19146
19397
|
type: string
|
|
19398
|
+
- name: databaseName
|
|
19399
|
+
in: query
|
|
19400
|
+
description: Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database.
|
|
19401
|
+
required: false
|
|
19402
|
+
schema:
|
|
19403
|
+
type: string
|
|
19147
19404
|
responses:
|
|
19148
19405
|
'200':
|
|
19149
19406
|
description: OK
|
|
@@ -19157,6 +19414,8 @@ paths:
|
|
|
19157
19414
|
$ref: '#/components/responses/401'
|
|
19158
19415
|
'403':
|
|
19159
19416
|
$ref: '#/components/responses/403'
|
|
19417
|
+
'404':
|
|
19418
|
+
$ref: '#/components/responses/404'
|
|
19160
19419
|
'500':
|
|
19161
19420
|
$ref: '#/components/responses/500'
|
|
19162
19421
|
/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}/lockAnalysis:
|
|
@@ -23662,6 +23921,7 @@ components:
|
|
|
23662
23921
|
- timestamp
|
|
23663
23922
|
- usedBytes
|
|
23664
23923
|
- totalBytes
|
|
23924
|
+
- availableBytes
|
|
23665
23925
|
- usageRatio
|
|
23666
23926
|
properties:
|
|
23667
23927
|
timestamp:
|
|
@@ -23672,17 +23932,43 @@ components:
|
|
|
23672
23932
|
totalBytes:
|
|
23673
23933
|
type: integer
|
|
23674
23934
|
format: int64
|
|
23935
|
+
availableBytes:
|
|
23936
|
+
type: integer
|
|
23937
|
+
format: int64
|
|
23675
23938
|
usageRatio:
|
|
23676
23939
|
type: number
|
|
23677
23940
|
format: double
|
|
23941
|
+
clusterStorageUsageHistoryInstance:
|
|
23942
|
+
type: object
|
|
23943
|
+
required:
|
|
23944
|
+
- points
|
|
23945
|
+
properties:
|
|
23946
|
+
instanceName:
|
|
23947
|
+
type: string
|
|
23948
|
+
description: Kubernetes pod name for this storage usage series.
|
|
23949
|
+
pvcName:
|
|
23950
|
+
type: string
|
|
23951
|
+
description: PersistentVolumeClaim name when it can be read from metrics labels.
|
|
23952
|
+
role:
|
|
23953
|
+
type: string
|
|
23954
|
+
description: Raw database replica role value read from metrics labels, kept aligned with instance detail display.
|
|
23955
|
+
componentName:
|
|
23956
|
+
type: string
|
|
23957
|
+
description: Optional KubeBlocks component name when it can be read from metrics labels.
|
|
23958
|
+
points:
|
|
23959
|
+
type: array
|
|
23960
|
+
items:
|
|
23961
|
+
$ref: '#/components/schemas/clusterStorageUsageHistoryPoint'
|
|
23962
|
+
source:
|
|
23963
|
+
type: string
|
|
23678
23964
|
clusterStorageUsageHistory:
|
|
23679
23965
|
type: object
|
|
23680
|
-
description:
|
|
23966
|
+
description: Per-instance cluster storage usage history collected from backend-owned fixed metrics.
|
|
23681
23967
|
required:
|
|
23682
23968
|
- timeRange
|
|
23683
23969
|
- start
|
|
23684
23970
|
- end
|
|
23685
|
-
-
|
|
23971
|
+
- instances
|
|
23686
23972
|
- source
|
|
23687
23973
|
- collectedAt
|
|
23688
23974
|
properties:
|
|
@@ -23695,10 +23981,10 @@ components:
|
|
|
23695
23981
|
end:
|
|
23696
23982
|
type: string
|
|
23697
23983
|
description: History query end timestamp in UTC.
|
|
23698
|
-
|
|
23984
|
+
instances:
|
|
23699
23985
|
type: array
|
|
23700
23986
|
items:
|
|
23701
|
-
$ref: '#/components/schemas/
|
|
23987
|
+
$ref: '#/components/schemas/clusterStorageUsageHistoryInstance'
|
|
23702
23988
|
source:
|
|
23703
23989
|
type: string
|
|
23704
23990
|
description: Metrics source used to build the history.
|
|
@@ -35684,6 +35970,85 @@ components:
|
|
|
35684
35970
|
- name
|
|
35685
35971
|
- role
|
|
35686
35972
|
type: object
|
|
35973
|
+
DmsServiceAccount:
|
|
35974
|
+
description: MinIO service account access-key
|
|
35975
|
+
type: object
|
|
35976
|
+
properties:
|
|
35977
|
+
userName:
|
|
35978
|
+
type: string
|
|
35979
|
+
description: MinIO user that owns the service account.
|
|
35980
|
+
accessKey:
|
|
35981
|
+
type: string
|
|
35982
|
+
description: Service account access key.
|
|
35983
|
+
secretKey:
|
|
35984
|
+
type: string
|
|
35985
|
+
description: Secret key returned only by create.
|
|
35986
|
+
status:
|
|
35987
|
+
type: string
|
|
35988
|
+
description: Service account status.
|
|
35989
|
+
name:
|
|
35990
|
+
type: string
|
|
35991
|
+
description: Display name of the service account.
|
|
35992
|
+
description:
|
|
35993
|
+
type: string
|
|
35994
|
+
description: Description of the service account.
|
|
35995
|
+
expiration:
|
|
35996
|
+
type: string
|
|
35997
|
+
format: date-time
|
|
35998
|
+
description: Service account expiration time.
|
|
35999
|
+
policy:
|
|
36000
|
+
type: string
|
|
36001
|
+
description: Service account policy text.
|
|
36002
|
+
impliedPolicy:
|
|
36003
|
+
type: boolean
|
|
36004
|
+
description: Whether the policy is implied from the parent user.
|
|
36005
|
+
DmsServiceAccountList:
|
|
36006
|
+
description: MinIO service account access-key list
|
|
36007
|
+
type: array
|
|
36008
|
+
items:
|
|
36009
|
+
$ref: '#/components/schemas/DmsServiceAccount'
|
|
36010
|
+
DmsServiceAccountCreateRequest:
|
|
36011
|
+
description: MinIO service account access-key create request
|
|
36012
|
+
type: object
|
|
36013
|
+
required:
|
|
36014
|
+
- userName
|
|
36015
|
+
properties:
|
|
36016
|
+
userName:
|
|
36017
|
+
type: string
|
|
36018
|
+
description: MinIO user that owns the service account.
|
|
36019
|
+
accessKey:
|
|
36020
|
+
type: string
|
|
36021
|
+
description: Optional fixed access key. If omitted, MinIO generates it.
|
|
36022
|
+
secretKey:
|
|
36023
|
+
type: string
|
|
36024
|
+
description: Optional fixed secret key. If omitted, MinIO generates it.
|
|
36025
|
+
name:
|
|
36026
|
+
type: string
|
|
36027
|
+
description: Display name of the service account.
|
|
36028
|
+
description:
|
|
36029
|
+
type: string
|
|
36030
|
+
description: Description of the service account.
|
|
36031
|
+
expiration:
|
|
36032
|
+
type: string
|
|
36033
|
+
format: date-time
|
|
36034
|
+
description: Optional service account expiration time.
|
|
36035
|
+
DmsServiceAccountStatus:
|
|
36036
|
+
description: MinIO service account status.
|
|
36037
|
+
type: string
|
|
36038
|
+
enum:
|
|
36039
|
+
- enabled
|
|
36040
|
+
- disabled
|
|
36041
|
+
DmsServiceAccountUpdateRequest:
|
|
36042
|
+
description: MinIO service account access-key update request
|
|
36043
|
+
type: object
|
|
36044
|
+
properties:
|
|
36045
|
+
status:
|
|
36046
|
+
$ref: '#/components/schemas/DmsServiceAccountStatus'
|
|
36047
|
+
description: Optional service account status.
|
|
36048
|
+
expiration:
|
|
36049
|
+
type: string
|
|
36050
|
+
format: date-time
|
|
36051
|
+
description: Optional service account expiration time. Use the Unix epoch to clear expiration.
|
|
35687
36052
|
postgresqlSession:
|
|
35688
36053
|
type: object
|
|
35689
36054
|
required:
|
|
@@ -35781,32 +36146,56 @@ components:
|
|
|
35781
36146
|
type: boolean
|
|
35782
36147
|
indexListTruncated:
|
|
35783
36148
|
type: boolean
|
|
35784
|
-
|
|
36149
|
+
postgresqlStorageInstanceUsage:
|
|
35785
36150
|
type: object
|
|
35786
|
-
required:
|
|
35787
|
-
- source
|
|
35788
36151
|
properties:
|
|
36152
|
+
instanceName:
|
|
36153
|
+
type: string
|
|
36154
|
+
description: Kubernetes pod name for this PostgreSQL replica storage sample.
|
|
36155
|
+
pvcName:
|
|
36156
|
+
type: string
|
|
36157
|
+
description: PersistentVolumeClaim name when it can be read from metrics labels.
|
|
36158
|
+
role:
|
|
36159
|
+
type: string
|
|
36160
|
+
description: Raw PostgreSQL replica role value read from metrics labels, kept aligned with instance detail display.
|
|
36161
|
+
componentName:
|
|
36162
|
+
type: string
|
|
36163
|
+
description: Optional KubeBlocks component name when it can be read from metrics labels.
|
|
35789
36164
|
totalBytes:
|
|
35790
36165
|
type: integer
|
|
35791
36166
|
format: int64
|
|
35792
|
-
description:
|
|
36167
|
+
description: Physical PVC capacity in bytes for this replica storage sample.
|
|
35793
36168
|
usedBytes:
|
|
35794
36169
|
type: integer
|
|
35795
36170
|
format: int64
|
|
35796
|
-
description:
|
|
36171
|
+
description: Physical PVC used bytes for this replica storage sample.
|
|
35797
36172
|
availableBytes:
|
|
35798
36173
|
type: integer
|
|
35799
36174
|
format: int64
|
|
35800
|
-
description:
|
|
36175
|
+
description: Available bytes derived from totalBytes - usedBytes when both values are available.
|
|
35801
36176
|
usageRatio:
|
|
35802
36177
|
type: number
|
|
35803
36178
|
format: double
|
|
35804
|
-
|
|
36179
|
+
nullable: true
|
|
36180
|
+
description: usedBytes / totalBytes for this replica storage sample when both values are available.
|
|
35805
36181
|
updatedAt:
|
|
35806
36182
|
type: string
|
|
35807
36183
|
description: Metrics collection timestamp in UTC.
|
|
35808
36184
|
source:
|
|
35809
36185
|
type: string
|
|
36186
|
+
postgresqlStorageOverview:
|
|
36187
|
+
type: object
|
|
36188
|
+
required:
|
|
36189
|
+
- source
|
|
36190
|
+
- instances
|
|
36191
|
+
properties:
|
|
36192
|
+
source:
|
|
36193
|
+
type: string
|
|
36194
|
+
instances:
|
|
36195
|
+
type: array
|
|
36196
|
+
description: Physical PostgreSQL replica storage usage split by pod/PVC/role.
|
|
36197
|
+
items:
|
|
36198
|
+
$ref: '#/components/schemas/postgresqlStorageInstanceUsage'
|
|
35810
36199
|
postgresqlDatabaseSpace:
|
|
35811
36200
|
type: object
|
|
35812
36201
|
properties:
|
|
@@ -35937,6 +36326,7 @@ components:
|
|
|
35937
36326
|
- summary
|
|
35938
36327
|
- storageOverview
|
|
35939
36328
|
- databases
|
|
36329
|
+
- selectedDatabase
|
|
35940
36330
|
- tables
|
|
35941
36331
|
- indexes
|
|
35942
36332
|
- toastRelations
|
|
@@ -35949,18 +36339,25 @@ components:
|
|
|
35949
36339
|
$ref: '#/components/schemas/postgresqlStorageOverview'
|
|
35950
36340
|
databases:
|
|
35951
36341
|
type: array
|
|
36342
|
+
description: Sizes of all connectable non-template databases in the PostgreSQL instance.
|
|
35952
36343
|
items:
|
|
35953
36344
|
$ref: '#/components/schemas/postgresqlDatabaseSpace'
|
|
36345
|
+
selectedDatabase:
|
|
36346
|
+
type: string
|
|
36347
|
+
description: Database used for tables, indexes, and toastRelations in this response.
|
|
35954
36348
|
tables:
|
|
35955
36349
|
type: array
|
|
36350
|
+
description: Top tables from selectedDatabase.
|
|
35956
36351
|
items:
|
|
35957
36352
|
$ref: '#/components/schemas/postgresqlTableSpace'
|
|
35958
36353
|
indexes:
|
|
35959
36354
|
type: array
|
|
36355
|
+
description: Top indexes from selectedDatabase.
|
|
35960
36356
|
items:
|
|
35961
36357
|
$ref: '#/components/schemas/postgresqlIndexSpace'
|
|
35962
36358
|
toastRelations:
|
|
35963
36359
|
type: array
|
|
36360
|
+
description: Toast relations derived from selectedDatabase table space data.
|
|
35964
36361
|
items:
|
|
35965
36362
|
$ref: '#/components/schemas/postgresqlToastRelationSpace'
|
|
35966
36363
|
sources:
|
|
@@ -256,6 +256,7 @@ models/cluster-slow-log-explain-response.ts
|
|
|
256
256
|
models/cluster-slow-log-stats.ts
|
|
257
257
|
models/cluster-slow-log-template-list.ts
|
|
258
258
|
models/cluster-slow-log-template.ts
|
|
259
|
+
models/cluster-storage-usage-history-instance.ts
|
|
259
260
|
models/cluster-storage-usage-history-point.ts
|
|
260
261
|
models/cluster-storage-usage-history.ts
|
|
261
262
|
models/cluster-tags.ts
|
|
@@ -665,6 +666,7 @@ models/postgresql-session.ts
|
|
|
665
666
|
models/postgresql-space-analysis.ts
|
|
666
667
|
models/postgresql-space-source.ts
|
|
667
668
|
models/postgresql-space-summary.ts
|
|
669
|
+
models/postgresql-storage-instance-usage.ts
|
|
668
670
|
models/postgresql-storage-overview.ts
|
|
669
671
|
models/postgresql-table-space.ts
|
|
670
672
|
models/postgresql-toast-relation-space.ts
|
|
@@ -138,10 +138,11 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
138
138
|
* @summary Get PostgreSQL space analysis
|
|
139
139
|
* @param {string} orgName Organization name
|
|
140
140
|
* @param {string} clusterName Cluster name
|
|
141
|
+
* @param {string} [databaseName] Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database.
|
|
141
142
|
* @param {*} [options] Override http request option.
|
|
142
143
|
* @throws {RequiredError}
|
|
143
144
|
*/
|
|
144
|
-
getDiagnosticsPostgresqlSpaceAnalysis: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145
|
+
getDiagnosticsPostgresqlSpaceAnalysis: async (orgName: string, clusterName: string, databaseName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145
146
|
// verify required parameter 'orgName' is not null or undefined
|
|
146
147
|
assertParamExists('getDiagnosticsPostgresqlSpaceAnalysis', 'orgName', orgName)
|
|
147
148
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -167,6 +168,10 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
167
168
|
// authentication DigestAuth required
|
|
168
169
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
169
170
|
|
|
171
|
+
if (databaseName !== undefined) {
|
|
172
|
+
localVarQueryParameter['databaseName'] = databaseName;
|
|
173
|
+
}
|
|
174
|
+
|
|
170
175
|
|
|
171
176
|
|
|
172
177
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -273,11 +278,12 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
|
273
278
|
* @summary Get PostgreSQL space analysis
|
|
274
279
|
* @param {string} orgName Organization name
|
|
275
280
|
* @param {string} clusterName Cluster name
|
|
281
|
+
* @param {string} [databaseName] Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database.
|
|
276
282
|
* @param {*} [options] Override http request option.
|
|
277
283
|
* @throws {RequiredError}
|
|
278
284
|
*/
|
|
279
|
-
async getDiagnosticsPostgresqlSpaceAnalysis(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostgresqlSpaceAnalysis>> {
|
|
280
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSpaceAnalysis(orgName, clusterName, options);
|
|
285
|
+
async getDiagnosticsPostgresqlSpaceAnalysis(orgName: string, clusterName: string, databaseName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostgresqlSpaceAnalysis>> {
|
|
286
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSpaceAnalysis(orgName, clusterName, databaseName, options);
|
|
281
287
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
282
288
|
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
283
289
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -335,7 +341,7 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
|
|
|
335
341
|
* @throws {RequiredError}
|
|
336
342
|
*/
|
|
337
343
|
getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSpaceAnalysis> {
|
|
338
|
-
return localVarFp.getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
344
|
+
return localVarFp.getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(axios, basePath));
|
|
339
345
|
},
|
|
340
346
|
/**
|
|
341
347
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
@@ -473,6 +479,13 @@ export interface DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest {
|
|
|
473
479
|
* @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis
|
|
474
480
|
*/
|
|
475
481
|
readonly clusterName: string
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database.
|
|
485
|
+
* @type {string}
|
|
486
|
+
* @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis
|
|
487
|
+
*/
|
|
488
|
+
readonly databaseName?: string
|
|
476
489
|
}
|
|
477
490
|
|
|
478
491
|
/**
|
|
@@ -543,7 +556,7 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
|
|
|
543
556
|
* @memberof DiagnosticsApi
|
|
544
557
|
*/
|
|
545
558
|
public getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig) {
|
|
546
|
-
return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
559
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath));
|
|
547
560
|
}
|
|
548
561
|
|
|
549
562
|
/**
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { ClusterStorageUsageHistoryPoint } from './cluster-storage-usage-history-point';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ClusterStorageUsageHistoryInstance
|
|
24
|
+
*/
|
|
25
|
+
export interface ClusterStorageUsageHistoryInstance {
|
|
26
|
+
/**
|
|
27
|
+
* Kubernetes pod name for this storage usage series.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ClusterStorageUsageHistoryInstance
|
|
30
|
+
*/
|
|
31
|
+
'instanceName'?: string;
|
|
32
|
+
/**
|
|
33
|
+
* PersistentVolumeClaim name when it can be read from metrics labels.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ClusterStorageUsageHistoryInstance
|
|
36
|
+
*/
|
|
37
|
+
'pvcName'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Raw database replica role value read from metrics labels, kept aligned with instance detail display.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ClusterStorageUsageHistoryInstance
|
|
42
|
+
*/
|
|
43
|
+
'role'?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Optional KubeBlocks component name when it can be read from metrics labels.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ClusterStorageUsageHistoryInstance
|
|
48
|
+
*/
|
|
49
|
+
'componentName'?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<ClusterStorageUsageHistoryPoint>}
|
|
53
|
+
* @memberof ClusterStorageUsageHistoryInstance
|
|
54
|
+
*/
|
|
55
|
+
'points': Array<ClusterStorageUsageHistoryPoint>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ClusterStorageUsageHistoryInstance
|
|
60
|
+
*/
|
|
61
|
+
'source'?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -38,6 +38,12 @@ export interface ClusterStorageUsageHistoryPoint {
|
|
|
38
38
|
* @memberof ClusterStorageUsageHistoryPoint
|
|
39
39
|
*/
|
|
40
40
|
'totalBytes': number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof ClusterStorageUsageHistoryPoint
|
|
45
|
+
*/
|
|
46
|
+
'availableBytes': number;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {number}
|