openapi: 3.0.1
info:
  title: KubeBlocks Cloud API
  version: 1.0.0
  description: |
    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.
  contact:
    email: support@apecloud.com
    name: ApeCloud Support
    url: https://www.apecloud.com
servers:
  - url: http://127.0.0.1:8080
    description: local
  - url: https://api-dev.apecloud.cn
    description: dev
  - url: https://cloudapi.apecloud.cn
    description: demo
security:
  - BearerToken: []
  - DigestAuth: []
tags:
  - name: user
    description: User APIs
  - name: role
    description: Role Management APIs
  - name: environment
    description: Environment APIs
  - name: benchmark
    description: Benchmark APIs
  - name: cluster
    description: Cluster APIs
  - name: clusterLog
    description: Cluster Log APIs
  - name: account
    description: Cluster Account APIs
  - name: opsrequest
    description: Cluster Ops APIs
  - name: clusterTag
    description: Cluster Tag APIs
  - name: tls
    description: Cluster TLS APIs
  - name: ipWhitelist
    description: Cluster IP Whitelist APIs
  - name: backup
    description: Backup APIs
  - name: restore
    description: Restore APIs
  - name: backupRepo
    description: Backup Repo APIs
  - name: parameterTemplate
    description: Parameter Template APIs
  - name: engine
    description: Engine APIs
  - name: event
    description: Operation Events
  - name: dms
    description: Data Management System APIs
  - name: elasticsearch
    description: Elasticsearch Security APIs
  - name: clickhouse
    description: ClickHouse Account and Privilege Management APIs
  - name: database
    description: Cluster Database APIs
  - name: parameter
    description: Cluster Parameter APIs
  - name: alert
    description: Alert APIs
  - name: alertReceiver
    description: Alert Receiver APIs
  - name: alertRule
    description: Alert Rule APIs
  - name: alertMetrics
    description: Alert Metrics APIs
  - name: alertStrategy
    description: Alert Strategy APIs
  - name: alertObject
    description: Alert Object APIs
  - name: clusterAlertSwitch
    description: Cluster Alert switch APIs
  - name: alertConfig
    description: Alert Config APIs
  - name: alertInhibit
    description: Alert Inhibit APIs
  - name: class
    description: Engine Class APIs
  - name: feature
    description: Feature APIs
  - name: recycleBinCluster
    description: Cluster In Recycle Bin APIs
  - name: project
    description: Project APIs
  - name: disasterRecovery
    description: Cluster Disaster Recovery APIs
  - name: redisKeyAnalysis
    description: Redis Keys Analysis APIs
  - name: llm
    description: LLM APIs
  - name: AI Agent
    description: Chat With AI Agent APIs
  - name: organizationParameter
    description: Organization Parameter APIs
  - name: dataReplication
    description: Data Replication APIs
  - name: import
    description: Data Import APIs
  - name: SLA
    description: SLA APIs
  - name: metering
    description: Metering APIs
  - name: blueGreenDeployment
    description: Blue Green Deployment APIs
paths:
  /api/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      summary: InfluxDB ListUsers
      operationId: influxDBListUsers
      tags:
        - influxdb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/InfluxDBUser'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: InfluxDB CreateUser
      operationId: influxDBCreateUser
      tags:
        - influxdb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfluxDBUserCreate'
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluxDBUser'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts/{userID}:
    delete:
      summary: InfluxDB DeleteUser
      operationId: influxDBDeleteUser
      tags:
        - influxdb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: userID
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts/{userID}/password:
    patch:
      summary: InfluxDB ChangePassword
      operationId: influxDBChangePassword
      tags:
        - influxdb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: userID
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfluxDBPasswordChange'
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/organizations:
    get:
      summary: InfluxDB ListOrganizations
      operationId: influxDBListOrganizations
      tags:
        - influxdb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/InfluxDBOrganization'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/buckets:
    get:
      summary: InfluxDB ListBuckets
      operationId: influxDBListBuckets
      tags:
        - influxdb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: influxOrgID
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/InfluxDBBucket'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: InfluxDB CreateBucket
      operationId: influxDBCreateBucket
      tags:
        - influxdb
        - database
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluxDBBucket'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfluxDBBucketCreate'
  /api/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/buckets/{bucketID}:
    get:
      summary: InfluxDB GetBucket
      operationId: influxDBGetBucket
      tags:
        - influxdb
        - database
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: bucketID
          in: path
          required: true
          schema:
            type: string
        - name: influxOrgID
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluxDBBucket'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    patch:
      summary: InfluxDB UpdateBucket
      operationId: influxDBUpdateBucket
      tags:
        - influxdb
        - database
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: bucketID
          in: path
          required: true
          schema:
            type: string
        - name: influxOrgID
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluxDBBucket'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfluxDBBucketUpdate'
    delete:
      summary: InfluxDB DeleteBucket
      operationId: influxDBDeleteBucket
      tags:
        - influxdb
        - database
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: bucketID
          in: path
          required: true
          schema:
            type: string
        - name: influxOrgID
          in: query
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts/{userID}/tokens:
    get:
      summary: InfluxDB ListTokens
      operationId: influxDBListTokens
      tags:
        - influxdb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: userID
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/InfluxDBToken'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: InfluxDB CreateToken
      operationId: influxDBCreateToken
      tags:
        - influxdb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: userID
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfluxDBTokenCreate'
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfluxDBTokenCreated'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts/{userID}/tokens/{tokenID}:
    patch:
      summary: InfluxDB UpdateToken
      operationId: influxDBUpdateToken
      tags:
        - influxdb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: userID
          in: path
          required: true
          schema:
            type: string
        - name: tokenID
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfluxDBTokenUpdate'
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    delete:
      summary: InfluxDB DeleteToken
      operationId: influxDBDeleteToken
      tags:
        - influxdb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: userID
          in: path
          required: true
          schema:
            type: string
        - name: tokenID
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/drain-preview:
    post:
      summary: Preview DolphinDB data node evacuation
      operationId: dolphinDBPreviewDrain
      tags:
        - dolphindb
        - shared
      description: Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            maximum: 10000000
            default: 0
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DolphinDBDrainRequest'
      responses:
        '200':
          description: Observed evacuation plan
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DolphinDBDrainPreview'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/preview:
    get:
      summary: DolphinDB PreviewRebalance
      operationId: dolphinDBPreviewRebalance
      tags:
        - dolphindb
        - shared
      description: Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            maximum: 10000000
            default: 0
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
        - name: updatedBeforeDays
          in: query
          schema:
            type: number
            minimum: 0
            maximum: 36500
            default: 7
      responses:
        '200':
          description: Operation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DolphinDBRebalancePreview'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/distribution:
    get:
      summary: DolphinDB GetDistribution
      operationId: dolphinDBGetDistribution
      tags:
        - dolphindb
        - shared
      description: Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Operation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DolphinDBDistribution'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/operations:
    post:
      summary: DolphinDB CreateRebalance
      operationId: dolphinDBCreateRebalance
      tags:
        - dolphindb
        - shared
      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.
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Operation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DolphinDBRebalanceRequest'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      summary: DolphinDB ListUsers
      operationId: dolphinDBListUsers
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DolphinDBUser'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: DolphinDB CreateUser
      operationId: dolphinDBCreateUser
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DolphinDBUserCreate'
      responses:
        '204':
          description: Operation completed
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}:
    delete:
      summary: DolphinDB DeleteUser
      operationId: dolphinDBDeleteUser
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Operation completed
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/password:
    patch:
      summary: DolphinDB ChangePassword
      operationId: dolphinDBChangePassword
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DolphinDBPasswordChange'
      responses:
        '204':
          description: Operation completed
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/groups:
    get:
      summary: DolphinDB ListGroups
      operationId: dolphinDBListGroups
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DolphinDBGroup'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: DolphinDB CreateGroup
      operationId: dolphinDBCreateGroup
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DolphinDBGroupCreate'
      responses:
        '204':
          description: Operation completed
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/groups/{groupName}:
    delete:
      summary: DolphinDB DeleteGroup
      operationId: dolphinDBDeleteGroup
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Operation completed
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/groups/{groupName}/members:
    patch:
      summary: DolphinDB ChangeGroupMembers
      operationId: dolphinDBChangeGroupMembers
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DolphinDBMembershipChange'
      responses:
        '204':
          description: Operation completed
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/privileges/capabilities:
    get:
      summary: DolphinDB GetCapabilities
      operationId: dolphinDBGetCapabilities
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DolphinDBCapabilities'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/privileges/{subjectType}/{subjectName}:
    get:
      summary: DolphinDB GetPermissions
      operationId: dolphinDBGetPermissions
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: subjectType
          in: path
          required: true
          schema:
            type: string
            description: user or group
        - name: subjectName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DolphinDBPermissionSnapshot'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    patch:
      summary: DolphinDB ChangePermissions
      operationId: dolphinDBChangePermissions
      tags:
        - dolphindb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: subjectType
          in: path
          required: true
          schema:
            type: string
            description: user or group
        - name: subjectName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DolphinDBPermissionChange'
      responses:
        '204':
          description: Operation completed
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/password:
    put:
      summary: ChangeRBACUserPassword
      operationId: mongoChangeRBACUserPassword
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: path
          required: true
          schema:
            type: string
        - name: username
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoRBACPasswordChange'
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users:
    get:
      summary: ListRBACUsers
      operationId: mongoListRBACUsers
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          schema:
            type: string
            default: admin
        - name: allDatabases
          in: query
          description: List accounts from all authentication databases. Overrides database; returns role memberships without effective privileges. Use the user detail endpoint for privileges. Requires viewUser and viewRole on the relevant databases.
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MongoRBACUser'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: CreateRBACUser
      operationId: mongoCreateRBACUser
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoRBACUserCreate'
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/databases:
    get:
      summary: List MongoDB cluster databases
      description: Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
      operationId: mongoListClusterDatabases
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Database names, sorted; an empty result is an empty array.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/databases/{database}/collections:
    get:
      summary: List MongoDB cluster database objects
      description: Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
      operationId: mongoListClusterCollections
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Database objects; an empty database returns an empty array.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MongoCollectionInfo'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/capabilities:
    get:
      summary: GetRBACCapabilities
      operationId: mongoGetRBACCapabilities
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoRBACCapabilities'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles:
    get:
      summary: ListRBACRoles
      operationId: mongoListRBACRoles
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          schema:
            type: string
            default: admin
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MongoRBACRole'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: CreateRBACRole
      operationId: mongoCreateRBACRole
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoRBACRoleWrite'
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}:
    get:
      summary: GetRBACRole
      operationId: mongoGetRBACRole
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: path
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoRBACRole'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    put:
      summary: UpdateRBACRole
      operationId: mongoUpdateRBACRole
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: path
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoRBACRoleWrite'
    delete:
      summary: DeleteRBACRole
      operationId: mongoDeleteRBACRole
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: path
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
        - name: expectedRevision
          in: query
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}:
    get:
      summary: GetRBACUser
      operationId: mongoGetRBACUser
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: path
          required: true
          schema:
            type: string
        - name: username
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoRBACUser'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    delete:
      summary: DeleteRBACUser
      operationId: mongoDeleteRBACUser
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: path
          required: true
          schema:
            type: string
        - name: username
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/roles:
    patch:
      summary: ChangeRBACUserRoles
      operationId: mongoChangeRBACUserRoles
      tags:
        - mongodb
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: path
          required: true
          schema:
            type: string
        - name: username
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoRBACBindingChange'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/config:
    get:
      operationId: getClusterJarConfig
      summary: Get external JAR capability and configuration
      tags:
        - clusterJar
        - shared
      parameters:
        - name: engineName
          in: path
          required: true
          description: Doris or SelectDB engine of the target cluster.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterJarConfig'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars:
    get:
      operationId: listClusterJars
      summary: List external JAR versions with metadata and per-instance synchronization state
      tags:
        - clusterJar
        - shared
      parameters:
        - name: engineName
          in: path
          required: true
          description: Doris or SelectDB engine of the target cluster.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterJarList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    post:
      operationId: uploadClusterJar
      summary: Upload an immutable JAR version
      tags:
        - clusterJar
        - shared
      parameters:
        - name: engineName
          in: path
          required: true
          description: Doris or SelectDB engine of the target cluster.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterJarPackage'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '413':
          $ref: '#/components/responses/413'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 128
                kind:
                  $ref: '#/components/schemas/clusterJarKind'
                file:
                  type: string
                  format: binary
              required:
                - name
                - kind
                - file
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}:
    delete:
      operationId: deleteClusterJar
      summary: Delete an unpublished JAR version
      tags:
        - clusterJar
        - shared
      parameters:
        - name: engineName
          in: path
          required: true
          description: Doris or SelectDB engine of the target cluster.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: jarId
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/download:
    get:
      operationId: downloadClusterJar
      summary: Download the original JAR
      tags:
        - clusterJar
        - shared
      parameters:
        - name: engineName
          in: path
          required: true
          description: Doris or SelectDB engine of the target cluster.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: jarId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/java-archive:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/distribute:
    post:
      operationId: distributeClusterJar
      summary: Publish a JAR with optimistic manifest version checking
      tags:
        - clusterJar
        - shared
      parameters:
        - name: engineName
          in: path
          required: true
          description: Doris or SelectDB engine of the target cluster.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: jarId
          in: path
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterJarTask'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/clusterJarPublish'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/retry:
    post:
      operationId: retryClusterJar
      summary: Retry synchronization of published JARs
      tags:
        - clusterJar
        - shared
      parameters:
        - name: engineName
          in: path
          required: true
          description: Doris or SelectDB engine of the target cluster.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: jarId
          in: path
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterJarTask'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/user:
    get:
      description: Get authenticated login user info
      summary: Get authenticated user
      operationId: getAuthenticatedUser
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/user'
          description: OK
        '401':
          $ref: '#/components/responses/401'
      tags:
        - user
    patch:
      description: partially update the specified User. If you want to update phone number, you must request /api/v1/user/phone-verification-code first.
      operationId: patchAuthenticatedUser
      summary: Update user information
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/userUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/user'
          description: OK
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
      tags:
        - user
      x-codegen-request-body-name: body
  /api/v1/user/password:
    patch:
      description: Update current authenticated user password.
      summary: Update current authenticated user password
      operationId: updateAuthenticatedUserPassword
      requestBody:
        content:
          application/json:
            schema:
              properties:
                new_password:
                  description: The new password for the user.
                  type: string
              required:
                - new_password
              type: object
        required: true
      responses:
        '204':
          content: {}
          description: Password updated successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - user
      x-codegen-request-body-name: body
  /api/v1/user/phone-verification-code:
    post:
      description: to update user phone number, send verification code first
      summary: Send verification code to user's phone
      operationId: phoneVerification
      requestBody:
        content:
          application/json:
            schema:
              properties:
                phoneNumber:
                  $ref: '#/components/schemas/phoneNumber'
              type: object
        required: true
      responses:
        '204':
          content: {}
          description: Verification code sent to user's phone
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - user
      x-codegen-request-body-name: body
  /api/v1/user/apikey/{keyName}:
    patch:
      description: partially update the specified apikey
      operationId: patchAPIkey
      summary: Update apikey information
      parameters:
        - description: Name of the apikey
          in: path
          name: keyName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/apikeyCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apikey'
          description: OK
        '401':
          $ref: '#/components/responses/401'
      tags:
        - user
        - shared
      x-codegen-request-body-name: body
    delete:
      description: delete apikey
      summary: Delete apikey
      operationId: deleteApikey
      parameters:
        - description: Name of the Apikey
          in: path
          name: keyName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when apikey is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - user
        - shared
  /api/v1/user/apikeys:
    get:
      description: Get apikeys of the authenticated user
      summary: Get apikeys of the authenticated user
      operationId: readUserApikeys
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apikeyList'
          description: OK
        '401':
          $ref: '#/components/responses/401'
      tags:
        - user
        - shared
    post:
      description: Create apikey of the authenticated user
      summary: Create apikey of the authenticated user
      operationId: createUserApikey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/apikeyCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apikeyWithSK'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - user
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations:
    get:
      description: List organizations of current user
      summary: List organizations of current user
      operationId: listOrg
      parameters:
        - description: The pagination token in the List request
          in: query
          name: pageToken
          schema:
            type: string
        - description: The pagination size in the List request.
          in: query
          name: pageSize
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/userOrgList'
          description: OK
        '401':
          $ref: '#/components/responses/401'
      tags:
        - organization
    post:
      description: Create a new organization
      summary: Create organization
      operationId: createOrg
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/orgCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/org'
          description: OK
        '401':
          $ref: '#/components/responses/401'
      tags:
        - organization
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/deletionPreview:
    get:
      summary: Preview organization deletion or purge
      operationId: previewOrgDeletion
      tags:
        - organization
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: orgID
          in: query
          required: true
          schema:
            type: string
            pattern: ^[1-9][0-9]*$
        - name: action
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/orgDeletionAction'
      responses:
        '200':
          description: Read-only preview; actual mutations revalidate all conditions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgDeletionPreview'
        '400':
          $ref: '#/components/responses/400'
        '403':
          $ref: '#/components/responses/403'
        '409':
          $ref: '#/components/responses/409'
  /api/v1/organizations/{orgName}/restoreOrganization:
    post:
      summary: Restore organization
      operationId: restoreOrg
      tags:
        - organization
        - shared
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/orgLifecycleRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/org'
        '400':
          $ref: '#/components/responses/400'
        '403':
          $ref: '#/components/responses/403'
        '409':
          $ref: '#/components/responses/409'
  /api/v1/organizations/{orgName}/purge:
    post:
      summary: Purge organization
      operationId: purgeOrg
      tags:
        - organization
        - shared
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/orgLifecycleRequest'
      responses:
        '202':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgPurgeResult'
        '400':
          $ref: '#/components/responses/400'
        '403':
          $ref: '#/components/responses/403'
        '409':
          $ref: '#/components/responses/409'
  /api/v1/organizations/{orgName}:
    get:
      description: read the specified Org
      summary: Get organization
      operationId: readOrg
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/org'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - organization
        - shared
    patch:
      description: partially update the specified Org
      summary: Update organization
      operationId: patchOrg
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/orgUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/org'
          description: OK
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/org'
          description: Created
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - organization
        - shared
      x-codegen-request-body-name: body
    delete:
      description: partially delete the specified org
      summary: Delete organization
      operationId: deleteOrg
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: query
          name: orgID
          required: true
          schema:
            type: string
            pattern: ^[1-9][0-9]*$
      responses:
        '204':
          content: {}
          description: Returned when org is deleted successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - organization
        - shared
  /api/v1/organizations/{orgName}/members:
    get:
      description: list members of the specified Org
      summary: List members
      operationId: listOrgMember
      parameters:
        - description: Name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgMemberList'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - member
        - shared
    post:
      description: Add organization with specific role
      summary: Add member
      operationId: addOrgMember
      parameters:
        - description: Name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/orgMemberAdd'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgMember'
          description: OK
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - member
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/members/{memberId}:
    delete:
      description: delete a Org Member
      summary: Delete member
      operationId: deleteOrgMember
      parameters:
        - description: Name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: ID of the member
          in: path
          name: memberId
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - member
        - shared
    get:
      description: read the specified OrgMember
      summary: Get member
      operationId: readOrgMember
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: ID of the member
          in: path
          name: memberId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgMember'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - member
        - shared
    patch:
      description: Only authenticated organization admins can update the member's role
      summary: Update member role
      operationId: patchOrgMember
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: ID of the member
          in: path
          name: memberId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/orgMemberUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgMember'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - member
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/members/{memberId}/freeze:
    post:
      description: freeze the member in org
      summary: freeze the member in org
      operationId: freezeMember
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: ID of the member
          in: path
          name: memberId
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - organization
        - shared
  /api/v1/organizations/{orgName}/members/{memberId}/unfreeze:
    post:
      description: unfreeze the member in org
      summary: unfreeze the member in org
      operationId: unfreezeMember
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: ID of the member
          in: path
          name: memberId
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - organization
        - shared
  /api/v1/organizations/{orgName}/permissions:
    get:
      operationId: listOrgMemberPermission
      summary: List permissions of a member
      parameters:
        - description: The name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/permissionList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - member
        - role
  /api/v1/organizations/{orgName}/eventfilter/{filterType}:
    get:
      description: Query available filters for event listing
      summary: Query available filters for event listing
      operationId: getEventFilter
      parameters:
        - description: The orgName
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The event filter field you want to obtain. OpenAPI do not support orgName.
          in: path
          name: filterType
          required: true
          schema:
            $ref: '#/components/schemas/eventFilterType'
        - description: The resource type you want to obtain.
          in: query
          name: resourceType
          required: false
          schema:
            type: string
        - $ref: '#/components/parameters/startTime'
        - $ref: '#/components/parameters/endTime'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/eventFilterOptionList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - event
  /api/v1/organizations/{orgName}/events:
    get:
      description: List events
      summary: List events
      operationId: listOrgEvents
      parameters:
        - description: Organization Name
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: Advanced query conditions, supporting all types of filterType. Such as "operatorID:333 operatorID:444"
          in: query
          name: customQuery
          schema:
            type: string
        - description: the status of the event
          in: query
          name: status
          schema:
            $ref: '#/components/schemas/eventResultStatus'
        - description: the pageNumber of the query
          in: query
          name: pageNumber
          schema:
            type: integer
        - description: the pageSize of the query
          in: query
          name: pageSize
          schema:
            type: integer
        - $ref: '#/components/parameters/startTime'
        - $ref: '#/components/parameters/endTime'
        - $ref: '#/components/parameters/orderBy'
        - $ref: '#/components/parameters/sortDesc'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/eventList'
          description: Successful operation
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - event
        - shared
  /api/v1/organizations/{orgName}/events/{eventID}:
    get:
      description: Retrieves detailed information about an event based on the provided Event ID.
      summary: Query event detail by Event ID
      operationId: getOrgEvent
      parameters:
        - description: Organization Name
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: Unique identifier for the event.
          in: path
          name: eventID
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/event'
          description: Successful operation
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - event
  /api/v1/organizations/{orgName}/parameters:
    get:
      operationId: listOrgParameters
      summary: List parameters of an organization
      parameters:
        - description: The name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: the category of the parameters
          in: query
          name: category
          schema:
            type: string
        - description: the name of the parameter
          in: query
          name: name
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgParameterList'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - organizationParameter
        - shared
    post:
      operationId: batchUpdateOrgParameters
      summary: Batch update parameters of an organization
      description: Batch update parameters of an organization
      parameters:
        - description: The name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/orgParameterList'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgParameterList'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - organizationParameter
        - shared
  /api/v1/organizations/{orgName}/parameters/{parameterName}:
    get:
      operationId: getOrgParameter
      summary: Get a parameter of an organization
      parameters:
        - description: The name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The name of the parameter
          in: path
          name: parameterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgParameter'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - organizationParameter
        - shared
    patch:
      operationId: patchOrgParameter
      summary: Update a parameter of an organization
      description: Update a parameter of an organization
      parameters:
        - description: The name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The name of the parameter
          in: path
          name: parameterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/orgParameter'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgParameter'
          description: OK
      tags:
        - organizationParameter
        - shared
  /api/v1/organizations/{orgName}/resourceQuota:
    get:
      operationId: resourceQuotaAndUsage
      summary: Get the resource quota and usage of an organization
      parameters:
        - description: The name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgResourceQuotaAndUsage'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - organizationResourceQuota
  /api/v1/organizations/{orgName}/environments:
    get:
      operationId: listEnvironment
      description: List environments
      summary: List environments
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: engine name
          in: query
          name: engine
          schema:
            type: string
        - description: version of the engine
          in: query
          name: version
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/environmentList'
          description: A successful response.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - environment
  /api/v1/organizations/{orgName}/environments/{environmentName}:
    get:
      operationId: getEnvironment
      summary: Get environment
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/environment'
          description: A successful response.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - environment
  /api/v1/organizations/{orgName}/environments/{environmentName}/availableZones:
    get:
      tags:
        - environment
      summary: List the availability zones where the environment's nodes are located
      description: List available zones of an environment
      operationId: listEnvNodeZone
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/stringList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/environments/{environmentName}/network/ipPools:
    get:
      tags:
        - environment
      operationId: listEnvironmentIPPools
      summary: Discover Pod IP pools and explicit selection policy in an environment
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ipPoolList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/environments/{environmentName}/storageClasses:
    get:
      description: Provides a summary of storage class statistics, aggregated and organized by namespace.
      operationId: getStorageClassStats
      summary: Get storage class stats
      parameters:
        - description: name of the Organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/storageClassList'
          description: A successful response.
        '403':
          content:
            '*/*':
              schema:
                type: object
          description: Returned when the user does not have permission to access the resource.
        '404':
          content:
            '*/*':
              schema:
                type: string
          description: Returned when the resource does not exist.
      tags:
        - storageClass
  /api/v1/organizations/{orgName}/environments/{environmentName}/koordinatorReservations/summary:
    get:
      tags:
        - environment
      description: Get Koordinator Reservation summary for the cluster creation page.
      summary: List Koordinator Reservations
      operationId: listKoordinatorReservations
      parameters:
        - description: name of the Organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/koordinatorReservationSummary'
          description: Koordinator Reservation summary.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/environments/{environmentName}/loadbalancer:
    get:
      operationId: getLoadBalancer
      summary: Get the load balancer info in the environment
      parameters:
        - description: name of the Organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - name: environmentName
          in: path
          description: name of the environment
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/loadBalancer'
          description: A successful response.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - loadBalancer
      x-codegen-request-body-name: body
  /api/v1/environments/{environmentName}/loadbalancer/vipPool:
    get:
      operationId: listVIPPool
      summary: List environment VIP Pools
      parameters:
        - description: name of the environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/vipPoolList'
          description: A successful response.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - vipPool
  /api/v1/environments/{environmentName}/loadbalancer/vipPool/checkPorts:
    post:
      operationId: checkVIPPorts
      summary: Check whether ports are already used on a VIP
      parameters:
        - description: name of the environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/vipPortCheckRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/vipPortCheckResult'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - vipPool
  /api/v1/environments/{environmentName}/nodeGroups:
    get:
      operationId: listNodeGroup
      summary: List environment node group
      parameters:
        - name: environmentName
          in: path
          description: name of the environment
          required: true
          schema:
            type: string
        - name: zones
          in: query
          description: available zone for filtering node groups
          required: false
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/nodeGroup'
          description: Returned when environment is created successfully.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - environment
      x-codegen-request-body-name: body
  /api/v1/environments/{environmentName}/nodes/resourceStats:
    get:
      description: Returns aggregated resource statistics for the specified environment within an organization.
      summary: Get resource statistics of nodes
      operationId: listNodesResourceStats
      parameters:
        - description: The name of the environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/nodeResourceStatsList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - resourceStats
        - shared
  /api/v1/environments/{environmentName}/modules:
    get:
      operationId: getEnvironmentModuleInfo
      summary: Get environment module information in an environment
      parameters:
        - name: environmentName
          in: path
          required: true
          description: Environment Name
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/environmentModuleInfo'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - environment
  /api/v1/organizations/{orgName}/benchmark:
    get:
      tags:
        - benchmark
      operationId: listBenchmark
      summary: List benchmark tasks
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: cluster
          in: query
          description: name of the cluster
          schema:
            type: string
        - name: benchType
          in: query
          description: type of the benchmark
          schema:
            type: string
        - name: clusterID
          in: query
          description: id of the cluster
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/benchmarkList'
    delete:
      tags:
        - benchmark
      operationId: deleteBenchmark
      summary: Delete benchmark tasks
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        description: ids of the benchmark
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/deleteBenchOption'
        required: true
      responses:
        '204':
          description: Returned when project is deleted successfully.
          content:
            application/json:
              schema:
                type: object
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/benchmark/{benchmarkId}:
    get:
      tags:
        - benchmark
      operationId: getBenchmark
      summary: Get benchmark task info
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: benchmarkId
          in: path
          description: id of the benchmark
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/benchmark'
  /api/v1/organizations/{orgName}/benchmark/pgbench:
    post:
      tags:
        - benchmark
      operationId: createPgbench
      summary: Create a pgbench benchmark task
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pgbench'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/benchmark'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/benchmark/sysbench:
    post:
      tags:
        - benchmark
      operationId: createSysbench
      summary: Create a sysbench benchmark task
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sysbench'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/benchmark'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/benchmark/tpcc:
    post:
      tags:
        - benchmark
      operationId: createTpcc
      summary: Create a tpcc benchmark task
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/tpcc'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/benchmark'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/benchmark/ycsb:
    post:
      tags:
        - benchmark
      operationId: createYcsb
      summary: Create a ycsb benchmark task
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ycsb'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/benchmark'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/benchmark/esrally:
    post:
      tags:
        - benchmark
      operationId: createEsrally
      summary: Create an esrally benchmark task
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/esrally'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/benchmark'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters:
    get:
      tags:
        - cluster
        - shared
      operationId: listCluster
      summary: List clusters in the Org
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterDefinition
          in: query
          description: The clusterDefinition in the List request
          schema:
            type: string
        - name: environmentName
          in: query
          description: Environment Type
          schema:
            type: string
        - name: environmentType
          in: query
          description: Environment Type
          schema:
            $ref: '#/components/schemas/environmentType'
        - name: tagKey
          in: query
          description: Tag key; this parameter is deprecated, use tagKeys instead
          schema:
            type: string
        - name: tagValue
          in: query
          description: Tag value; this parameter is deprecated, use tagValues instead
          schema:
            type: string
        - name: tagKeys
          in: query
          description: A list of tags' keys
          schema:
            type: array
            items:
              type: string
        - name: tagValues
          in: query
          description: A list of tags' values corresponding to the tagKeys
          schema:
            type: array
            items:
              type: string
        - name: licenseId
          in: query
          description: license id
          schema:
            type: integer
        - name: refClusterName
          in: query
          description: list clusters referenced by this cluster
          schema:
            type: string
        - name: endpointHost
          in: query
          description: Case-insensitive substring to match against the host part of cached cluster endpoints
          schema:
            type: string
        - name: includeEndpoints
          in: query
          description: Whether to include cached user-visible endpoints in each cluster item
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    post:
      operationId: createCluster
      summary: Create new cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/clusterCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/cluster'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/batch:
    post:
      operationId: batchUpdateClusters
      summary: Batch update clusters
      description: Update multiple clusters with the same update information (displayName and/or maintainceWindow) in a single request
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/clusterBatchUpdate'
        required: true
      responses:
        '204':
          content: {}
          description: Returned when clusters are updated successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - cluster
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/validate:
    post:
      operationId: validateClusterCreation
      summary: Validate cluster creation
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/clusterCreate'
        required: true
      responses:
        '204':
          content: {}
          description: Return when cluster creation is validated successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}:
    get:
      operationId: getCluster
      summary: Get cluster details
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/cluster'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
      tags:
        - cluster
        - shared
    patch:
      description: Update the specified Cluster
      summary: Update cluster specified fields
      operationId: patchCluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/clusterUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/cluster'
          description: Returned when project is updated successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
      x-codegen-request-body-name: body
    delete:
      tags:
        - cluster
        - shared
      operationId: deleteCluster
      summary: Delete cluster
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the KubeBlocks cluster
          required: true
          schema:
            type: string
        - name: force
          in: query
          description: if it is true, the cluster will be deleted no matter what the termination policy is, and will not be moved to the recycle bin.
          schema:
            type: boolean
      responses:
        '204':
          description: Returned when project is deleted successfully.
          content:
            application/json:
              schema:
                type: object
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/clustersWithDelete/{clusterID}:
    get:
      operationId: getClusterByID
      summary: Get cluster details by ID
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: ID of the KubeBlocks cluster
          in: path
          name: clusterID
          required: true
          schema:
            type: string
        - description: Backup name to override cluster components from its snapshot
          in: query
          name: backupName
          required: false
          schema:
            type: string
        - description: Restore time to find latest continuous backup snapshot after this time
          in: query
          name: restoreTime
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/cluster'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/instances:
    get:
      operationId: listInstance
      summary: List cluster instances
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/instanceList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/offlineInstances:
    get:
      operationId: listOfflineInstance
      summary: List offline cluster instances
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/offlineInstanceList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/instances/{instanceName}/restart:
    post:
      operationId: restartInstance
      summary: Restart instance of cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the instance
          in: path
          name: instanceName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: restart instance of cluster successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/events:
    get:
      operationId: listClusterEvents
      tags:
        - cluster
        - shared
      summary: List Kubernetes events for the cluster, its components and InstanceSets
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of recent events to return
          schema:
            type: integer
            format: int32
            default: 100
            minimum: 1
            maximum: 500
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterEventList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/instances/{instanceName}/events:
    get:
      operationId: listInstanceEvents
      summary: List instance events
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the instance
          in: path
          name: instanceName
          required: true
          schema:
            type: string
        - description: return number of events
          in: query
          name: returnNumber
          schema:
            type: integer
            format: int32
            default: 10
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/instanceEventList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/instances/{instanceName}/log:
    get:
      description: read log of the specified cluster instance
      summary: Tail cluster instance container log
      operationId: getInstanceContainerLog
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the instance
          in: path
          name: instanceName
          required: true
          schema:
            type: string
        - description: specify container name to get specific container log, if not specified, will return the log of the default container
          in: query
          name: container
          schema:
            type: string
        - description: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
          in: query
          name: sinceSeconds
          schema:
            type: integer
        - description: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime
          in: query
          name: tailLines
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/instanceLog'
          description: OK
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/workloads/{workloadName}/log:
    get:
      description: read log of the specified cluster instance
      summary: Tail cluster instance container log
      operationId: getClusterInstanceLog
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the workload
          in: path
          name: workloadName
          required: true
          schema:
            type: string
        - description: type of the workload, supported values ["Pod", "Job"], default value is Pod.
          in: query
          name: workloadType
          schema:
            type: string
        - description: Return previous terminated container logs. Defaults to false.
          in: query
          name: previous
          schema:
            type: boolean
        - description: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
          in: query
          name: sinceSeconds
          schema:
            type: integer
        - description: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime
          in: query
          name: tailLines
          schema:
            type: integer
      responses:
        '200':
          content:
            text/plain:
              schema:
                type: string
          description: OK
        '401':
          $ref: '#/components/responses/401'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/haHistory:
    get:
      operationId: describeClusterHaHistory
      summary: describe cluster HA history
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the component
          in: query
          name: componentName
          schema:
            type: string
        - $ref: '#/components/parameters/startTime'
        - $ref: '#/components/parameters/endTime'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/haHistoryList'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/modeTransition:
    post:
      operationId: transitionClusterMode
      summary: Transition cluster engine mode
      description: Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/clusterModeTransition'
      responses:
        '202':
          description: Mode transition accepted. Returns the OpsRequest name and task ID when an hscale operation is created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/retention:
    get:
      summary: Get cluster log retention
      operationId: getClusterLogRetention
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
      tags:
        - clusterLog
      responses:
        '200':
          description: Log retention settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/logRetention'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    put:
      summary: Set cluster log retention
      description: Replaces the current settings. Applies to the next cleanup.
      operationId: putClusterLogRetention
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
      tags:
        - clusterLog
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/logRetention'
      responses:
        '200':
          description: Log retention settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/logRetention'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      summary: Reset cluster log retention
      description: Removes cluster overrides and returns the retention inherited from the environment.
      operationId: deleteClusterLogRetention
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
      tags:
        - clusterLog
      responses:
        '200':
          description: Effective log retention settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/logRetention'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/running:
    get:
      description: Query running logs of a cluster
      summary: Query cluster running logs
      operationId: queryRunningLogs
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: filename
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: limit
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: sortType
          schema:
            $ref: '#/components/schemas/sortType'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterRawLogResponse'
          description: Successful operation
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/slow:
    get:
      description: Query slow logs of a cluster
      summary: Query cluster slow logs
      operationId: querySlowLogs
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: limit
          schema:
            type: string
        - in: query
          name: sortType
          schema:
            $ref: '#/components/schemas/sortType'
        - in: query
          name: minExecutionTime
          description: Minimum execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: maxExecutionTime
          description: Maximum execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: minLockTime
          description: Minimum lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: maxLockTime
          description: Maximum lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: minRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: minRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: dbName
          description: Filter slow logs whose database name contains this value.
          schema:
            type: string
        - in: query
          name: userName
          description: Filter slow logs whose user name contains this value.
          schema:
            type: string
        - in: query
          name: clientIp
          description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
          schema:
            type: string
        - in: query
          name: appName
          description: Filter slow logs whose application name contains this value.
          schema:
            type: string
        - in: query
          name: templateId
          schema:
            type: string
        - in: query
          name: unclassifiedOnly
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterExecutionLog'
          description: Successful operation
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/slow/explain:
    post:
      description: Explain a concrete SQL from a slow log using the cluster default datasource.
      summary: Explain cluster slow log SQL
      operationId: explainSlowLog
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmsExplainRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterSlowLogExplainResponse'
          description: Successful operation
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/slow/templates:
    get:
      description: Query slow log templates of a cluster (VictoriaLogs backend only)
      summary: Query cluster slow log templates
      operationId: querySlowLogTemplates
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: topN
          schema:
            type: integer
            format: int32
        - in: query
          name: sortBy
          description: Sort templates by count or avgExecutionTime.
          schema:
            type: string
        - in: query
          name: sortType
          schema:
            $ref: '#/components/schemas/sortType'
        - in: query
          name: minExecutionTime
          description: Minimum execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: maxExecutionTime
          description: Maximum execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: minLockTime
          description: Minimum lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: maxLockTime
          description: Maximum lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: minRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: minRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: dbName
          description: Filter slow logs whose database name contains this value.
          schema:
            type: string
        - in: query
          name: userName
          description: Filter slow logs whose user name contains this value.
          schema:
            type: string
        - in: query
          name: clientIp
          description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
          schema:
            type: string
        - in: query
          name: appName
          description: Filter slow logs whose application name contains this value.
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterSlowLogTemplateList'
          description: Successful operation
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/slow/templates/{templateId}:
    get:
      description: Get a slow log template of a cluster (VictoriaLogs backend only)
      summary: Get cluster slow log template
      operationId: getSlowLogTemplate
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: path
          name: templateId
          required: true
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: minExecutionTime
          description: Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: maxExecutionTime
          description: Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: minLockTime
          description: Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: maxLockTime
          description: Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: minRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: minRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: dbName
          description: Filter slow logs whose database name contains this value.
          schema:
            type: string
        - in: query
          name: userName
          description: Filter slow logs whose user name contains this value.
          schema:
            type: string
        - in: query
          name: clientIp
          description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
          schema:
            type: string
        - in: query
          name: appName
          description: Filter slow logs whose application name contains this value.
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterSlowLogTemplate'
          description: Successful operation
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/slow/templates/{templateId}/explain:
    post:
      description: Explain a slow log template sample using DMS. The SQL is selected by templateId and time range; request body does not accept raw SQL. Only MySQL-compatible, PostgreSQL, and SQL Server SELECT samples are supported.
      summary: Explain cluster slow log template
      operationId: explainSlowLogTemplate
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: path
          name: templateId
          required: true
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: minExecutionTime
          description: Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: maxExecutionTime
          description: Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: minLockTime
          description: Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: maxLockTime
          description: Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: minRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: minRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: dbName
          description: Filter slow logs whose database name contains this value.
          schema:
            type: string
        - in: query
          name: userName
          description: Filter slow logs whose user name contains this value.
          schema:
            type: string
        - in: query
          name: clientIp
          description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
          schema:
            type: string
        - in: query
          name: appName
          description: Filter slow logs whose application name contains this value.
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterSlowLogExplainResponse'
          description: Successful operation
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/slow/templates/{templateId}/samples:
    get:
      description: Query slow log samples for a template
      summary: Query cluster slow log template samples
      operationId: querySlowLogTemplateSamples
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: path
          name: templateId
          required: true
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: limit
          schema:
            type: string
        - in: query
          name: sortType
          schema:
            $ref: '#/components/schemas/sortType'
        - in: query
          name: minExecutionTime
          description: Minimum execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: maxExecutionTime
          description: Maximum execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: minLockTime
          description: Minimum lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: maxLockTime
          description: Maximum lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: minRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: minRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: dbName
          description: Filter slow logs whose database name contains this value.
          schema:
            type: string
        - in: query
          name: userName
          description: Filter slow logs whose user name contains this value.
          schema:
            type: string
        - in: query
          name: clientIp
          description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
          schema:
            type: string
        - in: query
          name: appName
          description: Filter slow logs whose application name contains this value.
          schema:
            type: string
        - in: query
          name: unclassifiedOnly
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterExecutionLog'
          description: Successful operation
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/slow/aggregate:
    get:
      description: Aggregate slow logs of a cluster over the full requested time range (Victoria Logs backend only). The result is not limited by the slow log list page size.
      summary: Aggregate cluster slow logs
      operationId: aggregateSlowLogs
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: limit
          schema:
            type: string
        - in: query
          name: sortType
          schema:
            $ref: '#/components/schemas/sortType'
        - in: query
          name: groupBy
          schema:
            type: string
        - in: query
          name: topN
          schema:
            type: integer
            format: int32
        - in: query
          name: minExecutionTime
          description: Minimum execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: maxExecutionTime
          description: Maximum execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: minLockTime
          description: Minimum lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: maxLockTime
          description: Maximum lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: minRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: minRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: dbName
          description: Filter slow logs whose database name contains this value.
          schema:
            type: string
        - in: query
          name: userName
          description: Filter slow logs whose user name contains this value.
          schema:
            type: string
        - in: query
          name: clientIp
          description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
          schema:
            type: string
        - in: query
          name: appName
          description: Filter slow logs whose application name contains this value.
          schema:
            type: string
        - in: query
          name: templateId
          schema:
            type: string
        - in: query
          name: unclassifiedOnly
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterExecutionLogAggregateResponse'
          description: Successful operation
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/slow/stats:
    get:
      description: Get statistics summary for slow logs of a cluster. When the same slow log filters are supplied, totalSlowLogs can be used as the filtered list preview count.
      summary: Get cluster slow log statistics
      operationId: getSlowLogStats
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: minExecutionTime
          description: Minimum execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: maxExecutionTime
          description: Maximum execution time in seconds. Decimal values are supported, for example 0.5.
          schema:
            type: number
            format: double
        - in: query
          name: minLockTime
          description: Minimum lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: maxLockTime
          description: Maximum lock time in seconds. Decimal values are supported, for example 0.001.
          schema:
            type: number
            format: double
        - in: query
          name: minRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: minRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: dbName
          description: Filter slow logs whose database name contains this value.
          schema:
            type: string
        - in: query
          name: userName
          description: Filter slow logs whose user name contains this value.
          schema:
            type: string
        - in: query
          name: clientIp
          description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
          schema:
            type: string
        - in: query
          name: appName
          description: Filter slow logs whose application name contains this value.
          schema:
            type: string
        - in: query
          name: templateId
          schema:
            type: string
        - in: query
          name: unclassifiedOnly
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterSlowLogStats'
          description: Successful operation
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/audit:
    get:
      description: Query audit logs of a cluster
      summary: Query cluster audit logs
      operationId: queryAuditLogs
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: limit
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: filename
          schema:
            type: string
        - in: query
          name: sortType
          schema:
            $ref: '#/components/schemas/sortType'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterExecutionLog'
          description: Successful operation
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/audit/aggregate:
    get:
      description: Aggregate audit logs of a cluster (Victoria Logs backend only)
      summary: Aggregate cluster audit logs
      operationId: aggregateAuditLogs
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: limit
          schema:
            type: string
        - in: query
          name: sortType
          schema:
            $ref: '#/components/schemas/sortType'
        - in: query
          name: groupBy
          schema:
            type: string
        - in: query
          name: topN
          schema:
            type: integer
            format: int32
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterExecutionLogAggregateResponse'
          description: Successful operation
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/hits:
    get:
      description: Query log hits histogram for time-bucketed log counts (VictoriaLogs only). When logType=slow, buckets also include avgExecutionTime in seconds; templateId can be supplied for slow template trends.
      summary: Query log hits histogram
      operationId: queryLogHits
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: step
          required: true
          description: Time bucket size, e.g. 5s, 30s, 1m, 5m, 30m, 1h
          schema:
            type: string
            default: 1m
        - in: query
          name: logType
          required: true
          description: 'Log type: runninglog, errorlog, slow, auditlog'
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: minExecutionTime
          description: Minimum slow log execution time in seconds. Only applies when logType=slow.
          schema:
            type: number
            format: double
        - in: query
          name: maxExecutionTime
          description: Maximum slow log execution time in seconds. Only applies when logType=slow.
          schema:
            type: number
            format: double
        - in: query
          name: minLockTime
          description: Minimum slow log lock time in seconds. Only applies when logType=slow.
          schema:
            type: number
            format: double
        - in: query
          name: maxLockTime
          description: Maximum slow log lock time in seconds. Only applies when logType=slow.
          schema:
            type: number
            format: double
        - in: query
          name: minRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: minRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: dbName
          description: Filter slow logs whose database name contains this value.
          schema:
            type: string
        - in: query
          name: userName
          description: Filter slow logs whose user name contains this value.
          schema:
            type: string
        - in: query
          name: clientIp
          description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
          schema:
            type: string
        - in: query
          name: appName
          description: Filter slow logs whose application name contains this value.
          schema:
            type: string
        - in: query
          name: templateId
          schema:
            type: string
        - in: query
          name: unclassifiedOnly
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterLogHitsResponse'
          description: Successful operation
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/error:
    get:
      description: Query error logs of a cluster
      summary: Query cluster error logs
      operationId: queryErrorLogs
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: filename
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: query
          schema:
            type: string
        - in: query
          name: limit
          schema:
            type: string
        - in: query
          name: sortType
          schema:
            $ref: '#/components/schemas/sortType'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterRawLogResponse'
          description: Successful operation
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/pod:
    get:
      description: Query pod logs of a cluster
      summary: Query cluster pod logs
      operationId: queryPodLogs
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: componentName
          schema:
            type: string
        - in: query
          name: instanceName
          schema:
            type: string
        - in: query
          name: filename
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: endTime
          description: End time in epoch nanoseconds.
          required: true
          schema:
            type: string
        - in: query
          name: limit
          schema:
            type: string
        - in: query
          name: sortType
          schema:
            $ref: '#/components/schemas/sortType'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterRawLogResponse'
          description: Successful operation
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/export:
    get:
      description: Export cluster logs and return as a file download
      summary: Export cluster logs
      operationId: exportClusterLogs
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: query
          name: logType
          required: true
          schema:
            type: string
          description: 'Log type: runninglog, errorlog, slow, auditlog'
        - in: query
          name: startTime
          schema:
            type: integer
            format: int64
          description: Start time in epoch nanoseconds. If omitted, exports from the earliest available log
        - in: query
          name: endTime
          schema:
            type: integer
            format: int64
          description: End time in epoch nanoseconds. If omitted, exports up to the latest available log
        - in: query
          name: format
          schema:
            type: string
            default: csv
          description: 'Export format: csv, raw, jsonl. The JSON-style slow log export format is newline-delimited JSON (jsonl), not a single JSON array.'
        - in: query
          name: query
          schema:
            type: string
          description: Optional search query
        - in: query
          name: filename
          schema:
            type: string
          description: Optional log filename filter
        - in: query
          name: componentName
          schema:
            type: string
          description: Optional component name filter
        - in: query
          name: instanceName
          schema:
            type: string
          description: Optional instance name filter
        - in: query
          name: minExecutionTime
          description: Minimum slow log execution time in seconds. Only applies when logType=slow.
          schema:
            type: number
            format: double
        - in: query
          name: maxExecutionTime
          description: Maximum slow log execution time in seconds. Only applies when logType=slow.
          schema:
            type: number
            format: double
        - in: query
          name: minLockTime
          description: Minimum slow log lock time in seconds. Only applies when logType=slow.
          schema:
            type: number
            format: double
        - in: query
          name: maxLockTime
          description: Maximum slow log lock time in seconds. Only applies when logType=slow.
          schema:
            type: number
            format: double
        - in: query
          name: minRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsExamined
          schema:
            type: integer
            format: int64
        - in: query
          name: minRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: maxRowsSent
          schema:
            type: integer
            format: int64
        - in: query
          name: dbName
          description: Filter slow logs whose database name contains this value.
          schema:
            type: string
        - in: query
          name: userName
          description: Filter slow logs whose user name contains this value.
          schema:
            type: string
        - in: query
          name: clientIp
          description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
          schema:
            type: string
        - in: query
          name: appName
          description: Filter slow logs whose application name contains this value.
          schema:
            type: string
        - in: query
          name: templateId
          schema:
            type: string
        - in: query
          name: unclassifiedOnly
          schema:
            type: boolean
        - in: query
          name: maxLines
          schema:
            type: integer
            format: int64
          description: Maximum number of lines to export. Defaults to 100000 if omitted
      responses:
        '200':
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
          description: File download
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/pod:
    get:
      description: Query pod logs through the Loki compatibility API.
      summary: Query Loki pod logs
      operationId: queryLokiPodLogs
      parameters:
        - $ref: '#/components/parameters/orgName'
        - $ref: '#/components/parameters/clusterName'
        - $ref: '#/components/parameters/componentName'
        - $ref: '#/components/parameters/instanceName'
        - $ref: '#/components/parameters/filename'
        - $ref: '#/components/parameters/clusterLogStartTime'
        - $ref: '#/components/parameters/clusterLogEndTime'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/sortType'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterRawLogResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLokiLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/running:
    get:
      description: Query running logs through the Loki compatibility API.
      summary: Query Loki running logs
      operationId: queryLokiRunningLogs
      parameters:
        - $ref: '#/components/parameters/orgName'
        - $ref: '#/components/parameters/clusterName'
        - $ref: '#/components/parameters/componentName'
        - $ref: '#/components/parameters/instanceName'
        - $ref: '#/components/parameters/filename'
        - $ref: '#/components/parameters/clusterLogStartTime'
        - $ref: '#/components/parameters/clusterLogEndTime'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/query'
        - $ref: '#/components/parameters/sortType'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterRawLogResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLokiLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/error:
    get:
      description: Query error logs through the Loki compatibility API.
      summary: Query Loki error logs
      operationId: queryLokiErrorLogs
      parameters:
        - $ref: '#/components/parameters/orgName'
        - $ref: '#/components/parameters/clusterName'
        - $ref: '#/components/parameters/componentName'
        - $ref: '#/components/parameters/instanceName'
        - $ref: '#/components/parameters/filename'
        - $ref: '#/components/parameters/clusterLogStartTime'
        - $ref: '#/components/parameters/clusterLogEndTime'
        - $ref: '#/components/parameters/query'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/sortType'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterRawLogResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLokiLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow:
    get:
      description: Query slow logs through the Loki compatibility API.
      summary: Query Loki slow logs
      operationId: queryLokiSlowLogs
      parameters:
        - $ref: '#/components/parameters/orgName'
        - $ref: '#/components/parameters/clusterName'
        - $ref: '#/components/parameters/clusterLogStartTime'
        - $ref: '#/components/parameters/clusterLogEndTime'
        - $ref: '#/components/parameters/componentName'
        - $ref: '#/components/parameters/instanceName'
        - $ref: '#/components/parameters/query'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/sortType'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterExecutionLog'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLokiLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/audit:
    get:
      description: Query audit logs through the Loki compatibility API.
      summary: Query Loki audit logs
      operationId: queryLokiAuditLogs
      parameters:
        - $ref: '#/components/parameters/orgName'
        - $ref: '#/components/parameters/clusterName'
        - $ref: '#/components/parameters/clusterLogStartTime'
        - $ref: '#/components/parameters/clusterLogEndTime'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/componentName'
        - $ref: '#/components/parameters/instanceName'
        - $ref: '#/components/parameters/query'
        - $ref: '#/components/parameters/filename'
        - $ref: '#/components/parameters/sortType'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterExecutionLog'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLokiLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow/stats:
    get:
      description: Query slow-log statistics through the Loki compatibility API.
      summary: Query Loki slow-log statistics
      operationId: getLokiSlowLogStats
      parameters:
        - $ref: '#/components/parameters/orgName'
        - $ref: '#/components/parameters/clusterName'
        - $ref: '#/components/parameters/clusterLogStartTime'
        - $ref: '#/components/parameters/clusterLogEndTime'
        - $ref: '#/components/parameters/componentName'
        - $ref: '#/components/parameters/instanceName'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterSlowLogStats'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLokiLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/export:
    get:
      description: Export logs through the Loki compatibility API.
      summary: Export Loki logs
      operationId: exportLokiClusterLogs
      parameters:
        - $ref: '#/components/parameters/orgName'
        - $ref: '#/components/parameters/clusterName'
        - in: query
          name: logType
          required: true
          description: 'Log type: runninglog, errorlog, slow, auditlog'
          schema:
            type: string
        - in: query
          name: startTime
          description: Start time in epoch nanoseconds. If omitted, exports from the earliest available log
          schema:
            type: integer
            format: int64
        - in: query
          name: endTime
          description: End time in epoch nanoseconds. If omitted, exports up to the latest available log
          schema:
            type: integer
            format: int64
        - in: query
          name: format
          description: 'Export format: csv, raw, jsonl'
          schema:
            type: string
            default: csv
        - $ref: '#/components/parameters/query'
        - $ref: '#/components/parameters/filename'
        - $ref: '#/components/parameters/componentName'
        - $ref: '#/components/parameters/instanceName'
        - in: query
          name: maxLines
          description: Maximum number of lines to export. Defaults to 100000 if omitted
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: File download
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - clusterLokiLog
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/reconfigure:
    post:
      operationId: reconfigureCluster
      summary: Update cluster configuration
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/reconfigureCreate'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/stop:
    post:
      operationId: stopCluster
      summary: Stop cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsStop'
        required: false
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/start:
    post:
      operationId: startCluster
      summary: Start cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsStart'
        required: false
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/restart:
    post:
      operationId: restartCluster
      summary: Restart cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsRestart'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/rebuildInstance:
    post:
      operationId: rebuildInstance
      summary: rebuild the instance
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsRebuildInstance'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/rebuildInstance/availableNodes:
    get:
      operationId: listAvailableNodes
      summary: List available nodes for rebuilding instance
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the instance to be rebuilt
          in: query
          name: name
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/nodeList'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/upgrade:
    post:
      operationId: upgradeCluster
      summary: Upgrade cluster version
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsUpgrade'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/upgradeableServiceVersion:
    get:
      description: list upgraded service version of the component
      summary: list upgraded service version of the component
      operationId: ListUpgradeableServiceVersion
      parameters:
        - description: Name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: organization name
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: component type
          in: query
          name: component
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/engineServiceVersions'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - engine
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/volume-expand:
    post:
      operationId: clusterVolumeExpand
      summary: Expand cluster volume size
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsVolumeExpand'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/vscale:
    post:
      operationId: verticalScaleCluster
      summary: Vertical scale cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsVScale'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/hscale:
    post:
      operationId: horizontalScaleCluster
      summary: Horizontal scale cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsHScale'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/promote:
    post:
      operationId: promoteCluster
      summary: Promote cluster intance to primary
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsPromote'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/expose:
    post:
      operationId: exposeCluster
      summary: Expose cluster endpoint
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsExpose'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/updateLicense:
    post:
      operationId: updateClusterLicense
      summary: Update the cluster license
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsLicense'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/custom-ops:
    post:
      operationId: customOps
      summary: Create custom OpsRequest
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsCustom'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
          description: Accepted
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - opsrequest
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/volumes/io-quotas:
    post:
      tags:
        - opsrequest
        - shared
      operationId: specifyClusterIOQuotas
      summary: Specify IOPS and BPS of cluster volumes
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/opsIoQuotas'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsIoQuotas'
          description: Accepted
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusterTags:
    get:
      tags:
        - clusterTag
        - shared
      operationId: getTags
      summary: Get cluster tags
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterIds
          in: query
          description: Comma-separated list of cluster IDs
          required: true
          schema:
            type: string
      responses:
        '200':
          description: list tags successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/clusterTags'
  /api/v1/organizations/{orgName}/tags/{tagId}:
    delete:
      tags:
        - clusterTag
        - shared
      description: delete cluster tag
      summary: Delete tag
      operationId: deleteTag
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: tagId
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Returned when project is deleted successfully.
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    patch:
      tags:
        - clusterTag
        - shared
      description: Update cluster tags
      operationId: updateTag
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: tagId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/tagUpdate'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tag'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      x-codegen-request-body-name: tagUpdate
  /api/v1/organizations/{orgName}/tags:
    get:
      tags:
        - clusterTag
        - shared
      description: List tags by organization name.
      operationId: listOrgTags
      summary: List tags by organization name
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      responses:
        '200':
          description: list tags successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/orgTagsList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    post:
      tags:
        - clusterTag
        - shared
      description: create tag
      summary: Create cluster tags
      operationId: createTag
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/tagCreate'
        required: true
      responses:
        '201':
          description: create tag successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tagCreate'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/endpoints:
    get:
      operationId: listEndpoints
      summary: List cluster endpoints
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: count of the NodePort host
          in: query
          name: nodePortHostCount
          schema:
            type: integer
            default: 3
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/endpointList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/sqlAudit:
    get:
      operationId: getSqlAudit
      summary: Get SQL audit log status
      description: Query the SQL audit log switch status for a cluster component
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: component type
          in: query
          name: component
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sqlAuditStatus'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
    post:
      operationId: updateSqlAudit
      summary: Update SQL audit log status
      description: Enable or disable SQL audit log for a cluster component
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sqlAuditRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sqlAuditResponse'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/tde:
    get:
      operationId: getTDE
      summary: Get TDE status
      description: Query the transparent data encryption switch status for a cluster component
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: component type
          in: query
          name: component
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tdeStatus'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
    post:
      operationId: updateTDE
      summary: Enable TDE
      description: Enable transparent data encryption for a cluster component. Disabling TDE is not supported.
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/tdeRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tdeResponse'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mariadb/spaceAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get MariaDB space analysis
      description: Get a read-only MariaDB compatible space snapshot and fixed backend-owned storage metrics.
      operationId: getDiagnosticsMariaDBSpaceAnalysis
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: databaseName
          in: query
          description: Optional database name for table and index details. When omitted, the largest non-system database is selected.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mysqlSpaceAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mariadb/sqlAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get MariaDB SQL analysis
      description: Get a read-only MariaDB SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
      operationId: getDiagnosticsMariaDBSQLAnalysis
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
          required: false
          schema:
            type: integer
            format: int64
        - name: orderBy
          in: query
          description: Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mysqlSQLAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mariadb/performanceTrends:
    get:
      tags:
        - diagnostics
      summary: Get MariaDB performance trends
      description: Get read-only MariaDB performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials.
      operationId: getDiagnosticsMariaDBPerformanceTrends
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: range
          in: query
          description: Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h.
          required: false
          schema:
            type: string
        - name: step
          in: query
          description: Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/performanceTrends'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/spaceAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get MySQL space analysis
      description: Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics.
      operationId: getDiagnosticsMysqlSpaceAnalysis
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: databaseName
          in: query
          description: Optional database name for table and index details. When omitted, the largest non-system database is selected.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mysqlSpaceAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sqlAnalysis:
    get:
      tags:
        - diagnostics
      operationId: getDiagnosticsMssqlSQLAnalysis
      summary: List SQL Server TOP SQL from the plan cache
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          schema:
            type: string
            maxLength: 128
        - name: limit
          in: query
          schema:
            type: integer
            format: int64
            minimum: 1
            maximum: 200
            default: 50
        - name: orderBy
          in: query
          schema:
            $ref: '#/components/schemas/mssqlSQLOrder'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mssqlSQLAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sqlAnalysis/cachedPlan:
    get:
      tags:
        - diagnostics
      operationId: getDiagnosticsMssqlSQLPlan
      summary: Read the cached compiled plan of a ranked SQL statement
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: query
          required: true
          schema:
            type: string
            maxLength: 600
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mssqlCachedPlan'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/spaceAnalysis:
    get:
      tags:
        - diagnostics
      operationId: getDiagnosticsMssqlSpaceAnalysis
      summary: Analyze SQL Server database and table space
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          schema:
            type: string
            maxLength: 128
        - name: limit
          in: query
          schema:
            type: integer
            format: int64
            minimum: 1
            maximum: 200
            default: 50
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mssqlSpaceAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions:
    get:
      tags:
        - diagnostics
      operationId: listDiagnosticsMssqlSessions
      summary: List SQL Server sessions
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int64
            minimum: 1
            maximum: 1000
            default: 500
        - name: activeOnly
          in: query
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mssqlSessionSnapshot'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions/{sessionId}:
    get:
      tags:
        - diagnostics
      operationId: getDiagnosticsMssqlSession
      summary: Get a SQL Server session
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          required: true
          schema:
            type: integer
            format: int64
            minimum: 1
            maximum: 32767
        - name: startedAt
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mssqlSession'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      tags:
        - diagnostics
      operationId: killDiagnosticsMssqlSession
      summary: Terminate the selected SQL Server user session
      description: Rechecks startedAt before issuing KILL. Open transactions may roll back asynchronously. Never retry this operation automatically.
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          required: true
          schema:
            type: integer
            format: int64
            minimum: 1
            maximum: 32767
        - name: startedAt
          in: query
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Termination requested
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions/{sessionId}/lockAnalysis:
    get:
      tags:
        - diagnostics
      operationId: getDiagnosticsMssqlSessionLockAnalysis
      summary: Get SQL Server blocking and locks
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          required: true
          schema:
            type: integer
            format: int64
            minimum: 1
            maximum: 32767
        - name: startedAt
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mssqlLockSnapshot'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions/{sessionId}/requests/{requestId}/cachedPlan:
    get:
      tags:
        - diagnostics
      operationId: getDiagnosticsMssqlSessionCachedPlan
      summary: Read the cached compiled plan of a live SQL Server request
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          required: true
          schema:
            type: integer
            format: int64
            minimum: 1
            maximum: 32767
        - name: startedAt
          in: query
          required: true
          schema:
            type: string
        - name: requestId
          in: path
          required: true
          schema:
            type: integer
            format: int64
            minimum: 0
        - name: requestStart
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mssqlCachedPlan'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions:
    get:
      tags:
        - diagnostics
      summary: List PostgreSQL session basic diagnostics
      description: List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
      operationId: listDiagnosticsPostgresqlSessions
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of sessions to return. When omitted, the API returns the complete point-in-time session snapshot. When provided, the value must be positive.
          required: false
          schema:
            type: integer
            format: int64
            minimum: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/postgresqlSessionList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/spaceAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get PostgreSQL space analysis
      description: Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions.
      operationId: getDiagnosticsPostgresqlSpaceAnalysis
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: databaseName
          in: query
          description: Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/postgresqlSpaceAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sqlAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get PostgreSQL SQL analysis
      description: Get a read-only PostgreSQL SQL fingerprint ranking from pg_stat_statements. The response does not expose full SQL text, time-window aggregation, summary cards, slow-log relation, execution plans, or remediation actions.
      operationId: getDiagnosticsPostgresqlSQLAnalysis
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
          required: false
          schema:
            type: integer
            format: int64
        - name: orderBy
          in: query
          description: Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/postgresqlSQLAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sqlAnalysis/queries/{queryID}/explain:
    post:
      tags:
        - diagnostics
      summary: Explain PostgreSQL SQL fingerprint
      description: Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan.
      operationId: explainDiagnosticsPostgresqlSQLFingerprint
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: queryID
          in: path
          description: PostgreSQL pg_stat_statements queryid represented as a string.
          required: true
          schema:
            type: string
        - name: database
          in: query
          description: Database name from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement.
          required: true
          allowEmptyValue: true
          schema:
            type: string
        - name: user
          in: query
          description: Database user from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement.
          required: true
          allowEmptyValue: true
          schema:
            type: string
        - name: topLevel
          in: query
          description: Top-level identity from the ranking row. Required to disambiguate the queryID on PostgreSQL versions that expose pg_stat_statements.toplevel.
          required: true
          schema:
            type: boolean
        - name: fingerprint
          in: query
          description: Optional fingerprint consistency guard. Currently aligned with PostgreSQL pg_stat_statements queryid.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/postgresqlSQLFingerprintExplainResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '500':
          $ref: '#/components/responses/500'
        '503':
          $ref: '#/components/responses/503'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/sqlAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get MySQL SQL analysis
      description: Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
      operationId: getDiagnosticsMysqlSQLAnalysis
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
          required: false
          schema:
            type: integer
            format: int64
        - name: orderBy
          in: query
          description: Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mysqlSQLAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/performanceTrends:
    get:
      tags:
        - diagnostics
      summary: Get PostgreSQL performance trends
      description: Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
      operationId: getDiagnosticsPostgresqlPerformanceTrends
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: range
          in: query
          description: Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h.
          required: false
          schema:
            type: string
        - name: step
          in: query
          description: Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. Defaults to 1m for 1h, 5m for 6h, 15m for 24h, and 1h for 7d.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/performanceTrends'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/performanceTrends:
    get:
      tags:
        - diagnostics
      summary: Get MySQL performance trends
      description: Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials.
      operationId: getDiagnosticsMysqlPerformanceTrends
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: range
          in: query
          description: Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h.
          required: false
          schema:
            type: string
        - name: step
          in: query
          description: Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/performanceTrends'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mongodb/performanceTrends:
    get:
      tags:
        - diagnostics
      summary: Get MongoDB performance trends
      description: Get read-only MongoDB performance trends from backend-owned metrics. The response covers resource, connection, operation, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials.
      operationId: getDiagnosticsMongoDBPerformanceTrends
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: range
          in: query
          description: Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h.
          required: false
          schema:
            type: string
        - name: step
          in: query
          description: Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/performanceTrends'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/elasticsearch/taskAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get Elasticsearch task and hot-thread analysis
      operationId: getDiagnosticsElasticsearchTaskAnalysis
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: type
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/elasticsearchHotThreadsType'
        - name: node
          in: query
          required: false
          schema:
            type: string
        - name: taskLimit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: threads
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 10
            default: 3
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/elasticsearchTaskAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/elasticsearch/storageAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get Elasticsearch storage and index analysis
      operationId: getDiagnosticsElasticsearchStorageAnalysis
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: node
          in: query
          required: false
          schema:
            type: string
        - name: index
          in: query
          required: false
          schema:
            type: string
        - name: sortBy
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/elasticsearchIndexSortBy'
        - name: sortOrder
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/elasticsearchSortOrder'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/elasticsearchStorageAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/elasticsearch/shards:
    get:
      tags:
        - diagnostics
      summary: List Elasticsearch shards
      operationId: listDiagnosticsElasticsearchShards
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: index
          in: query
          required: false
          description: Index name or pattern
          schema:
            type: string
        - name: node
          in: query
          required: false
          description: Exact node ID or name
          schema:
            type: string
        - name: state
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/elasticsearchShardState'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/elasticsearchShardList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/elasticsearch/recoveries:
    get:
      tags:
        - diagnostics
      summary: List active Elasticsearch shard recoveries
      operationId: listDiagnosticsElasticsearchRecoveries
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: index
          in: query
          required: false
          description: Index name or pattern
          schema:
            type: string
        - name: node
          in: query
          required: false
          description: Exact target node ID or name
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/elasticsearchRecoveryList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/elasticsearch/allocationExplain:
    get:
      tags:
        - diagnostics
      summary: Explain Elasticsearch shard allocation
      operationId: explainDiagnosticsElasticsearchAllocation
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: index
          in: query
          required: true
          schema:
            type: string
            minLength: 1
        - name: shard
          in: query
          required: true
          schema:
            type: integer
            format: int64
            minimum: 0
        - name: primary
          in: query
          required: true
          schema:
            type: boolean
        - name: currentNode
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/elasticsearchAllocationExplanation'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}/lockAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get PostgreSQL session lock analysis
      description: Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
      operationId: getDiagnosticsPostgresqlSessionLockAnalysis
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: pid
          in: path
          description: PostgreSQL backend process id.
          required: true
          schema:
            type: integer
            format: int64
            minimum: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/postgresqlLockAnalysis'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}:
    get:
      tags:
        - diagnostics
      summary: Get PostgreSQL session basic diagnostics
      description: Get one PostgreSQL session basic diagnostics record by backend pid.
      operationId: getDiagnosticsPostgresqlSession
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: pid
          in: path
          description: PostgreSQL backend process id.
          required: true
          schema:
            type: integer
            format: int64
            minimum: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/postgresqlSession'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/spaceAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get Dameng space analysis
      description: Get a read-only Dameng space snapshot including tablespace usage, schema sizes, top tables, and top indexes. Queries dba_free_space, dba_data_files, DBA_SEGMENTS, DBA_TABLES, DBA_INDEXES, and DBA_IND_COLUMNS.
      operationId: getDiagnosticsDamengSpaceAnalysis
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: tableLimit
          in: query
          description: Maximum number of top tables to return (0 or omitted = not collected)
          required: false
          schema:
            type: integer
            format: int64
            minimum: 0
            default: 0
        - name: indexLimit
          in: query
          description: Maximum number of top indexes to return (0 or omitted = not collected)
          required: false
          schema:
            type: integer
            format: int64
            minimum: 0
            default: 0
        - name: schema
          in: query
          description: Filter tables and indexes by schema (owner). Omit or empty = all schemas.
          required: false
          schema:
            type: string
        - name: skipBasic
          in: query
          description: Set to true to skip tablespace and schema queries, returning only tables and indexes.
          required: false
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/damengSpaceAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sqlAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get Dameng SQL analysis
      description: Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions.
      operationId: getDiagnosticsDamengSQLAnalysis
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of SQL entries per category. Defaults to 20.
          required: false
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/damengSQLAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions/{sessionId}/lockAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get Dameng session lock analysis
      description: Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details.
      operationId: getDiagnosticsDamengSessionLockAnalysis
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          description: Dameng session ID (SESS_ID)
          required: true
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/damengLockAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions/{sessionId}:
    get:
      tags:
        - diagnostics
      summary: Get Dameng session detail
      description: Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details.
      operationId: getDiagnosticsDamengSession
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          description: Dameng session ID (SESS_ID)
          required: true
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/damengSessionDetail'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions:
    get:
      tags:
        - diagnostics
      summary: List Dameng sessions
      description: List Dameng sessions from V$SESSIONS with lock status from V$LOCK. Returns session ID, user, state, client IP, transaction ID, lock status, SQL text, schema, duration, and more.
      operationId: listDiagnosticsDamengSessions
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of sessions to return. Defaults to 200.
          required: false
          schema:
            type: integer
            format: int64
        - name: state
          in: query
          description: Filter sessions by state (e.g. ACTIVE, IDLE). Matches against V$SESSIONS.STATE.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/damengSessionListItem'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/performanceTrends:
    get:
      tags:
        - diagnostics
      summary: Get Kingbase performance trends
      description: |
        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.
        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.
        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.
        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.
      operationId: getDiagnosticsKingbasePerformanceTrends
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: range
          in: query
          description: Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h.
          required: false
          schema:
            type: string
        - name: step
          in: query
          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.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/performanceTrends'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/sessions:
    get:
      tags:
        - diagnostics
      summary: List Kingbase session diagnostics
      operationId: listDiagnosticsKingbaseSessions
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of sessions to return. Defaults to 200.
          required: false
          schema:
            type: integer
            format: int64
            minimum: 1
            maximum: 200
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/kingbaseSessionList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/sessions/{pid}/lockAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get Kingbase session lock analysis
      description: Returns the selected session and its direct lock rows from the current snapshot.
      operationId: getDiagnosticsKingbaseSessionLockAnalysis
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: pid
          in: path
          required: true
          schema:
            type: integer
            format: int64
            minimum: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/kingbaseLockAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/sessions/{pid}:
    get:
      tags:
        - diagnostics
      summary: Get Kingbase session diagnostics
      operationId: getDiagnosticsKingbaseSession
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: pid
          in: path
          required: true
          schema:
            type: integer
            format: int64
            minimum: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/kingbaseSessionDetail'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/clickhouse/sessions:
    get:
      tags:
        - diagnostics
      summary: List active ClickHouse queries
      description: List active queries from system.processes across every shard and replica via clusterAllReplicas. Returns elapsed time, current and peak memory usage, read/write progress and the server host for each query so long-running or memory-heavy queries can be located quickly. The diagnostics query itself is excluded from the result.
      operationId: listDiagnosticsClickhouseSessions
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of queries to return. Defaults to 100 and is capped at 1000.
          required: false
          schema:
            type: integer
            format: int64
        - name: orderBy
          in: query
          description: 'Sort metric. Defaults to elapsed. Allowed values: elapsed, memoryUsage, memoryUsageRatio, peakMemoryUsage, readRows, readBytes.'
          required: false
          schema:
            type: string
        - name: database
          in: query
          description: Filter by current database. Omit or empty = all databases.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clickhouseSessionList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/clickhouse/sessions/{queryId}:
    delete:
      tags:
        - diagnostics
      summary: Kill a ClickHouse query
      description: Terminate a running query by query_id. In cluster mode KILL QUERY ON CLUSTER is used so the initial query and its remote sub-queries are terminated together; otherwise KILL QUERY runs on the connected node.
      operationId: killDiagnosticsClickhouseQuery
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: queryId
          in: path
          description: ClickHouse query_id to terminate.
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Query killed successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/clickhouse/sqlAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get ClickHouse SQL analysis
      description: Analyze system.query_log for the selected range. Only initial queries (is_initial_query = 1) are counted so distributed child queries are not double counted. Returns the slowest queries by query_duration_ms, query patterns grouped by normalized_query_hash, and failed queries (ExceptionWhileProcessing) with exception_code. When log_queries is disabled or system.query_log is missing, the endpoint returns status=unavailable together with guidance instead of failing.
      operationId: getDiagnosticsClickhouseSQLAnalysis
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: range
          in: query
          description: 'Time range based on query_log event_time. Defaults to 24h. Allowed values: 1h, 6h, 24h, 7d.'
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: Maximum number of entries per list. Defaults to 20 and is capped at 200.
          required: false
          schema:
            type: integer
            format: int64
        - name: orderBy
          in: query
          description: 'Pattern ordering metric. Defaults to totalDuration. Allowed values: totalDuration, meanDuration, maxDuration, calls, memory, readRows, failures.'
          required: false
          schema:
            type: string
        - name: database
          in: query
          description: Filter by current_database. Omit or empty = all databases.
          required: false
          schema:
            type: string
        - name: user
          in: query
          description: Filter by ClickHouse user. Omit or empty = all users.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clickhouseSQLAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/clickhouse/spaceAnalysis:
    get:
      tags:
        - diagnostics
      summary: Get ClickHouse space analysis
      description: Analyze system.parts, system.merges and system.mutations across the cluster. Returns table and partition level disk usage, compression efficiency, per-disk and per-host distribution, part explosion risk (parts_to_delay_insert / parts_to_throw_insert), running merges and unfinished mutations.
      operationId: getDiagnosticsClickhouseSpaceAnalysis
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: database
          in: query
          description: Filter by database. Omit or empty = all databases.
          required: false
          schema:
            type: string
        - name: tableLimit
          in: query
          description: Maximum number of top tables. Defaults to 20 and is capped at 200.
          required: false
          schema:
            type: integer
            format: int64
        - name: partitionLimit
          in: query
          description: Maximum number of top partitions. Defaults to 20 and is capped at 200.
          required: false
          schema:
            type: integer
            format: int64
        - name: mergeLimit
          in: query
          description: Maximum number of merges and unfinished mutations. Defaults to 20 and is capped at 200.
          required: false
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clickhouseSpaceAnalysis'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/clickhouse/clusterHealth:
    get:
      tags:
        - diagnostics
      summary: Get ClickHouse replica and cluster health
      description: Analyze system.replicas and system.clusters. Returns replication delay, Keeper queue backlog, readonly/session-expired replicas and shard/replica topology with per-node connection errors. Replica rows are collected through clusterAllReplicas, while the topology is read from the connected node's system.clusters view.
      operationId: getDiagnosticsClickhouseClusterHealth
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clickhouseClusterHealth'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/metrics:
    get:
      description: Query cluster metrics by specified metric name and instance name, support instant and range query
      operationId: queryClusterMetrics
      summary: Query cluster metrics
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - name: query
          in: query
          description: The promQL query string
          required: true
          schema:
            type: string
        - name: queryType
          in: query
          description: The query type in the query, if use instant, the query will return the lastest instant value, if use range, the query will return a list of values in the time range
          required: true
          schema:
            $ref: '#/components/schemas/metricsQueryType'
        - $ref: '#/components/parameters/startTime'
        - $ref: '#/components/parameters/endTime'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterMetrics'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/storageUsageHistory:
    get:
      description: Get cluster storage usage history from backend-owned fixed metrics.
      operationId: getClusterStorageUsageHistory
      summary: Get cluster storage usage history
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - name: timeRange
          in: query
          description: Requested history range. Supported values are 24h and 7d. Defaults to 24h.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterStorageUsageHistory'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/instances/metrics:
    get:
      operationId: getInstacesMetrics
      summary: Get instaces metrics in cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/instanceMetricsList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
      tags:
        - cluster
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/tls:
    get:
      operationId: getTLSCertificate
      summary: Get cluster TLS certificate
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tlsCertList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - tls
        - shared
    post:
      operationId: tlsSwitcher
      summary: Enable or disable cluster TLS
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/tlsRequest'
        description: Enable TLS or not
        required: true
      responses:
        '200':
          content: {}
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
      tags:
        - tls
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/{engineName}/clusterBackupMethod:
    get:
      operationId: getBackupMethod
      summary: get backup method
      parameters:
        - name: orgName
          in: path
          description: name of the org
          required: true
          schema:
            type: string
        - name: engineName
          in: path
          description: engine name
          required: true
          schema:
            type: string
        - description: clusterID is required when you want to get the backup method of a existing cluster
          in: query
          name: clusterID
          schema:
            type: string
        - name: enablePITR
          in: query
          description: define whether to enable PITR (Point-In-Time Recovery). This setting is required when clusterId is not empty.
          schema:
            type: boolean
        - name: withRebuildInstance
          in: query
          description: defined whether to search for rebuilding instance.
          schema:
            type: boolean
        - name: withRestoreCluster
          in: query
          description: defined whether to search for restoring cluster.
          schema:
            type: boolean
        - name: withHScale
          in: query
          description: defined whether to search for rebuilding instance.
          schema:
            type: boolean
        - name: component
          in: query
          description: The component type is required when withRebuildInstance/withHScale is true.
          schema:
            type: string
        - name: mode
          in: query
          description: The cluster mode, used to filter out unsupported backup methods.
          schema:
            type: string
      responses:
        '200':
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/clusterBackupMethod'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - backupMethod
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/backups:
    post:
      operationId: createClusterBackup
      summary: Create backup
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the component
          in: query
          name: component
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/backupCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backup'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - backup
        - shared
      x-codegen-request-body-name: body
  /api/v1/environments/{environmentName}/organizations/{orgName}/engines/{engineName}/buildBackup:
    post:
      operationId: buildBackupObj
      summary: build backup object with a existing backup directory
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                backupPath:
                  type: string
                  description: the backup directory path
                backupRepoName:
                  type: string
                  description: the backup repo name
                rootUserPassword:
                  type: string
                  description: the root user password of database
                clusterName:
                  type: string
                  description: the cluster name
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backup'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - backup
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/backupPolicy:
    get:
      operationId: getClusterBackupPolicy
      summary: Get backup policy
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: use volume snapshot to back up
          in: query
          name: useVolumeSnapshot
          schema:
            default: true
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backupPolicy'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - backup
        - shared
    patch:
      description: partially update the specified Backup Policy
      summary: Update backup policy
      operationId: updateBackupPolicy
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: use volume snapshot to back up
          in: query
          name: useVolumeSnapshot
          schema:
            default: true
            type: boolean
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/backupPolicy'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backupPolicy'
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
      tags:
        - backup
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/listObjectsForSelectiveBackup:
    get:
      operationId: listObjectsTreeForSelectiveBackup
      summary: List objects tree for selective backup
      parameters:
        - name: orgName
          in: path
          description: name of the org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: database
          in: query
          description: Database name for engines configured to switch the object tree by database.
          schema:
            type: string
      responses:
        '200':
          content:
            '*/*':
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/selectiveObjectTreeNode'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - backup
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/backupSchedules:
    get:
      operationId: listBackupSchedules
      summary: List backup schedules
      parameters:
        - name: orgName
          in: path
          description: name of the org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: backupMethod
          in: query
          description: filter by backup method
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backupScheduleList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - backup
        - shared
    post:
      operationId: createBackupSchedule
      summary: Create backup schedule
      parameters:
        - name: orgName
          in: path
          description: name of the org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/backupScheduleCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backupSchedule'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - backup
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/backupSchedules/{scheduleName}:
    patch:
      operationId: updateBackupSchedule
      summary: Update backup schedule
      parameters:
        - name: orgName
          in: path
          description: name of the org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: scheduleName
          in: path
          description: name of the backup schedule
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/backupScheduleUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backupSchedule'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - backup
        - shared
      x-codegen-request-body-name: body
    delete:
      operationId: deleteBackupSchedule
      summary: Delete backup schedule
      parameters:
        - name: orgName
          in: path
          description: name of the org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: scheduleName
          in: path
          description: name of the backup schedule
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when backup schedule is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - backup
        - shared
  /api/v1/organizations/{orgName}/backups:
    get:
      operationId: listBackups
      summary: List backups
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: cluster name of the Backup
          in: query
          name: clusterName
          schema:
            type: string
        - description: cluster ID of the Backup
          in: query
          name: clusterID
          schema:
            type: string
        - name: backupRepo
          in: query
          description: backup repo of the Backup
          schema:
            type: string
        - name: fetchWithDeletedCluster
          in: query
          description: defined whether to search for deleted clusters. if not set, returns all backups
          schema:
            type: boolean
        - name: withDeletedBackups
          in: query
          description: defined whether to search for deleted backups. if not set, only return backups that are not deleted
          schema:
            type: boolean
        - name: withRestoreCluster
          in: query
          description: defined whether to search for restore backups.
          schema:
            type: boolean
        - name: backupType
          in: query
          description: type of the backup
          schema:
            type: string
        - name: withRebuildInstance
          in: query
          description: defined whether to search for rebuilding instance.
          schema:
            type: boolean
        - name: withHScale
          in: query
          description: defined whether to search for hScale instance.
          schema:
            type: boolean
        - name: componentName
          in: query
          description: get the backups belong to the component
          schema:
            type: string
        - name: page
          in: query
          description: page number
          schema:
            type: integer
        - name: pageSize
          in: query
          description: page size
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backupList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - backup
  /api/v1/organizations/{orgName}/backups/batch-delete:
    post:
      operationId: batchDeleteBackups
      summary: Batch delete backups
      description: Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/backupBatchDelete'
        required: true
      responses:
        '204':
          content: {}
          description: Returned when the backups are deleted successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - backup
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/backupStats:
    get:
      operationId: getBackupStats
      summary: Get backup statistics
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: id of the Cluster
          in: query
          name: clusterID
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backupStats'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - backup
  /api/v1/organizations/{orgName}/backups/{backupId}:
    delete:
      operationId: deleteBackup
      summary: Delete backup
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: id of the Backup
          in: path
          name: backupId
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - backup
        - shared
    get:
      operationId: getBackup
      summary: Get backup
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: id of the Backup
          in: path
          name: backupId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backup'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - backup
        - shared
  /api/v1/organizations/{orgName}/backups/{backupId}/logs:
    get:
      operationId: getBackupLog
      summary: Get backup log
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: id of the Backup
          in: path
          name: backupId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backupLog'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - backup
        - shared
  /api/v1/organizations/{orgName}/backups/{backupId}/view:
    post:
      tags:
        - backup
        - shared
      operationId: viewBackup
      summary: view backup info
      parameters:
        - name: orgName
          in: path
          description: name of the org
          required: true
          schema:
            type: string
        - name: backupId
          description: the id of backup
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/backupView'
      responses:
        '200':
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/fileEntryList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/backups/{backupId}/download:
    get:
      tags:
        - backup
        - shared
      operationId: downloadBackup
      summary: Download full backup
      parameters:
        - name: orgName
          in: path
          description: name of the org
          required: true
          schema:
            type: string
        - name: backupId
          description: the id of backup
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
    post:
      tags:
        - backup
        - shared
      operationId: downloadMultipleBackups
      summary: Download multiple backup files
      parameters:
        - name: orgName
          in: path
          description: name of the org
          required: true
          schema:
            type: string
        - name: backupId
          description: the id of backup
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/backupDownload'
        required: true
      responses:
        '200':
          description: A successful response
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /api/v1/organizations/{orgName}/clustersWithDelete/restoreTimeRange:
    get:
      operationId: getRestoreTimeRange
      summary: Get cluster restore time ragne
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: ID of the KubeBlocks cluster
          in: query
          name: clusterID
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backup'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - restore
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/restore:
    delete:
      operationId: deleteRestoreObject
      summary: Delete restore task
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the restore
          in: query
          name: restoreName
          required: true
          schema:
            type: string
      responses:
        '200':
          content: {}
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - restore
        - shared
    get:
      operationId: listClusterRestore
      summary: List restore tasks
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/restoreList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - restore
        - shared
    post:
      operationId: doRestore
      summary: Restore current cluster or instance
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/restore'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/restore'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - restore
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/restore/{restoreId}/logs:
    get:
      operationId: GetRestoreLog
      summary: get restore workload logs of the cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: id of the restore
          in: path
          name: restoreId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/restoreLog'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - restore
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/markClusterRestoreCompleted:
    post:
      operationId: markClusterRestoreCompleted
      summary: mark cluster to restore completed, usually used when manually repairing or recovering issues
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the KubeBlocks cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content: {}
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - markCluster
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/restore:
    post:
      operationId: restoreCluster
      summary: Restore new cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/restoreCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/cluster'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - restore
      x-codegen-request-body-name: body
    get:
      operationId: listRestores
      summary: List restore tasks
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      tags:
        - restore
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/restoreList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
  /api/v1/environments/{environmentName}/engines/{engineName}/serviceVersion:
    get:
      description: list the service version of the engine
      summary: list the service version of the engine
      operationId: ListServiceVersion
      parameters:
        - description: environment name
          in: path
          name: environmentName
          required: true
          schema:
            type: string
        - description: Name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: engine mode
          in: query
          name: engineMode
          required: true
          schema:
            type: string
        - description: engine version
          in: query
          name: engineVersion
          required: true
          schema:
            type: string
        - description: component type, refer to componentDef and support NamePrefix
          in: query
          name: component
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/engineServiceVersions'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - engine
        - shared
    post:
      description: enable the service version of the engine and create related resources
      summary: enable the service version of the engine
      operationId: EnableServiceVersion
      parameters:
        - description: environment name
          in: path
          name: environmentName
          required: true
          schema:
            type: string
        - description: Name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                serviceVersion:
                  type: string
                  description: The service version to enable
                engineVersion:
                  type: string
                  description: The engine version to enable
          multipart/form-data:
            schema:
              description: the data of image to upload
              type: object
              properties:
                image:
                  type: string
                  format: binary
                  description: The engine image to upload
      responses:
        '200':
          content:
            application/json:
              schema:
                description: the id of the upload task
                type: object
                properties:
                  uploadId:
                    type: string
                    description: the id of the upload task
          description: OK
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - enableServiceVersion
  /api/v1/organizations/{orgName}/backupRepo:
    get:
      operationId: listBackupRepos
      summary: List backup repos
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backupRepoList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - backupRepo
  /api/v1/environments/{environmentName}/backupRepo/{backupRepoName}:
    get:
      operationId: getBackupRepo
      summary: Get backup repo
      parameters:
        - description: name of the environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
        - description: name of the BackupRepo
          in: path
          name: backupRepoName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: query
          name: orgName
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backupRepo'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - backupRepo
  /api/v1/environments/{environmentName}/backupRepo/{backupRepoName}/view:
    post:
      tags:
        - backupRepo
      operationId: viewBackupRepo
      summary: view backup repo
      parameters:
        - name: environmentName
          in: path
          description: name of the environment
          required: true
          schema:
            type: string
        - name: backupRepoName
          in: path
          description: name of the environment
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/backupRepoView'
        required: true
      responses:
        '200':
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/fileEntryList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/parameterHistories:
    get:
      operationId: listParametersHistory
      summary: List parameters history of the cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the parameter
          in: query
          name: parameterName
          required: false
          schema:
            type: string
        - description: component type
          in: query
          name: component
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/parameterHistoryList'
          description: get parameters history of the cluster successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - parameter
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/parameters:
    get:
      operationId: listParameterProps
      summary: List parameter properties of the cluster
      tags:
        - parameter
        - shared
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: component type
          in: query
          name: component
          required: false
          schema:
            type: string
        - description: whether to return the raw template content
          in: query
          name: rawContent
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/parameterList'
          description: get configuration of the cluster successfully
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/parameterTemplates:
    get:
      operationId: listParameterTemplates
      summary: List parameter templates in an Org
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: the template partition in listParamTpl request
          in: query
          name: partition
          schema:
            $ref: '#/components/schemas/parameterTemplatePartition'
        - description: Cluster Application Version
          in: query
          name: version
          schema:
            type: string
        - description: component type
          in: query
          name: component
          schema:
            type: string
        - description: engine Name
          in: query
          name: engineName
          schema:
            type: string
        - description: engine mode
          in: query
          name: engineMode
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/paramTplList'
          description: list parameter templates successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - parameterTemplate
    post:
      operationId: createParameterTemplate
      summary: Create parameter template
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/paramTplCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/paramTplListItem'
          description: create parameter template successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - parameterTemplate
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/parameterTemplate/{parameterTemplateName}:
    get:
      operationId: readParameterTemplate
      summary: Get parameter template details
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the parameter template
          in: path
          name: parameterTemplateName
          required: true
          schema:
            type: string
        - description: the template partition in read paramTpl request
          in: query
          name: partition
          schema:
            $ref: '#/components/schemas/parameterTemplatePartition'
        - description: whether to return the raw template content
          in: query
          name: rawContent
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/parameterList'
          description: read parameter template successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - parameterTemplate
    delete:
      operationId: deleteParameterTemplate
      summary: Delete parameter template
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the parameter template
          in: path
          name: parameterTemplateName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - parameterTemplate
    patch:
      summary: Update parameter template
      operationId: patchParameterTemplate
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the parameter template
          in: path
          name: parameterTemplateName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/paramTplUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/paramTplListItem'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - parameterTemplate
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/parameterTemplate/{parameterTemplateName}/diff:
    get:
      operationId: readParameterTemplateDiff
      summary: Get parameter template diff against default template
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the parameter template
          in: path
          name: parameterTemplateName
          required: true
          schema:
            type: string
        - description: the template partition in diff parameter template request
          in: query
          name: partition
          schema:
            $ref: '#/components/schemas/parameterTemplatePartition'
        - description: whether to compare raw template content
          in: query
          name: rawContent
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/parameterTemplateDiff'
          description: get parameter template diff successfully
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
      tags:
        - parameterTemplate
  /api/v1/organizations/{orgName}/clusters/{clusterName}/parameterTemplate:
    get:
      operationId: getClusterParameterTemplate
      summary: Get cluster parameter template
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: component type
          in: query
          name: component
          required: false
          schema:
            type: string
        - description: engine name
          in: query
          name: engineName
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/paramTplApplyToClusterList'
          description: get parameter template applicable to the cluster successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - parameterTemplate
        - shared
    post:
      operationId: exportParameterTemplateFromCluster
      summary: Export parameter template from cluster
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/paramTplCreateFromCluster'
        required: true
      responses:
        '200':
          content: {}
          description: export parameter template from cluster successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - parameterTemplate
        - shared
      x-codegen-request-body-name: body
    patch:
      operationId: updateClusterParameterTemplate
      summary: Update cluster parameter template
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/paramTpls'
        required: true
      responses:
        '200':
          content: {}
          description: update cluster parameter template successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - parameterTemplate
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/parameterTemplates/{paramTplID}/export:
    get:
      operationId: exportParameterTemplate
      summary: Download one parameter template as YAML
      description: Requires parameter template read permission in the requested organization. Downloads a public template belonging to that organization or a public system default. Returns all stored files and comments. Import validates the target engine, component and file layout.
      tags:
        - paramTpl
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: paramTplID
          description: Template ID returned by the parameter template list.
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Complete portable template
          content:
            application/yaml:
              schema:
                type: string
        '400':
          $ref: '#/components/responses/400'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/parameterTemplates/import:
    post:
      operationId: importParameterTemplate
      summary: Create an organization parameter template from one YAML document
      tags:
        - paramTpl
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/parameterTemplateImportRequest'
      responses:
        '201':
          description: Created template and validation warnings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/parameterTemplateImportResult'
        '400':
          $ref: '#/components/responses/400'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '413':
          $ref: '#/components/responses/413'
  /api/v1/organizations/{orgName}/receivers:
    get:
      tags:
        - alertReceiver
      summary: List alert receivers
      operationId: listAlertReceivers
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: category
          in: query
          description: alert receiver category
          schema:
            $ref: '#/components/schemas/alertReceiverCategory'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertReceiverList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    post:
      tags:
        - alertReceiver
      operationId: createAlertReceiver
      summary: Create alert receiver
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: category
          in: query
          description: alert receiver category
          required: true
          schema:
            $ref: '#/components/schemas/alertReceiverCategory'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertReceiver'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertReceiver'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/receivers/{receiverId}:
    delete:
      operationId: deleteAlertReceiver
      summary: Delete alert receiver
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: id of the alert receivers
          in: path
          name: receiverId
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - alertReceiver
        - shared
    get:
      operationId: getAlertReceiver
      summary: Get alert receiver
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: id of the alert receivers
          in: path
          name: receiverId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertReceiver'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
      tags:
        - alertReceiver
    patch:
      description: partially update the alert receiver
      operationId: patchAlertReceiver
      summary: Update alert receiver
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: id of the alert receivers
          in: path
          name: receiverId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertReceiver'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertReceiver'
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
      tags:
        - alertReceiver
      x-codegen-request-body-name: body
  /api/v1/alerts/checkURL:
    post:
      summary: Batch check URLs connectivity
      description: Tests multiple URLs for connectivity in parallel
      operationId: batchCheckURLConnectivity
      tags:
        - alert
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/URLCheck'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/URLCheck'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/alerts/statistic:
    get:
      summary: alert statistic
      description: alert statistic
      operationId: alertStatistic
      tags:
        - alert
      parameters:
        - name: orgName
          in: query
          description: name of the Org
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertStatistic'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/strategies:
    get:
      tags:
        - alertStrategy
      operationId: listAlertStrategies
      summary: List alert strategies
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertStrategyList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    post:
      tags:
        - alertStrategy
      operationId: createAlertStrategy
      summary: Create alert strategy in org
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertStrategy'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertStrategy'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      x-codegen-request-body-name: body
    patch:
      tags:
        - alertStrategy
      operationId: patchAlertStrategy
      summary: Update alert strategy
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertStrategy'
        required: true
      responses:
        '204':
          description: Returned when project is deleted successfully.
          content:
            application/json:
              schema:
                type: object
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/alerts/strategies/{strategyId}:
    delete:
      tags:
        - alertStrategy
      operationId: deleteAlertStrategy
      summary: Delete alert strategy
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: strategyId
          in: path
          description: id of the alert strategies
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Returned when project is deleted successfully.
          content:
            application/json:
              schema:
                type: object
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    patch:
      tags:
        - alertStrategy
      operationId: updateAlertStrategy
      summary: Update alert strategy
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: strategyId
          in: path
          description: id of the alert strategies
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertStrategy'
        required: true
      responses:
        '204':
          description: Returned when project is deleted successfully.
          content:
            application/json:
              schema:
                type: object
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/alerts/rules:
    get:
      tags:
        - alertRule
      operationId: listAlertRules
      summary: List alert rules
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: disabled
          in: query
          description: disabled status
          required: false
          schema:
            type: boolean
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertRuleList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    post:
      tags:
        - alertRule
      operationId: createAlertRule
      summary: Create alert rule
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertRule'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertRule'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/alerts/rules/{alertName}:
    get:
      tags:
        - alertRule
        - shared
      operationId: getAlertRule
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: alertName
          in: path
          description: name of the alert
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/alertRule'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    delete:
      tags:
        - alertRule
        - shared
      operationId: deleteAlertRule
      summary: Delete alert rule
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: alertName
          in: path
          description: id of the alert rules
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Returned when project is deleted successfully.
          content:
            application/json:
              schema:
                type: object
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    patch:
      tags:
        - alertRule
        - shared
      operationId: updateAlertRule
      summary: Update alert rule
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: alertName
          in: path
          description: id of the alert rules
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertRule'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertRule'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/alerts/objects:
    get:
      tags:
        - alertObject
      operationId: listAlertObjects
      summary: List alert objects
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: page
          in: query
          description: page number
          required: false
          schema:
            type: integer
        - name: pageSize
          in: query
          description: page size
          required: false
          schema:
            type: integer
        - name: clusterName
          in: query
          description: filter by cluster name
          required: false
          schema:
            type: string
        - name: status
          in: query
          description: filter by alert status
          required: false
          schema:
            type: string
        - name: severity
          in: query
          description: filter by alert severity
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertObjectList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    patch:
      tags:
        - alertObject
      operationId: setAlertObjectsStatus
      summary: Set alert objects status
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: status
          in: query
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            required: true
            schema:
              type: array
              items:
                $ref: '#/components/schemas/alertObject'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertObjectList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/objects/{alertId}:
    patch:
      tags:
        - alertObject
        - shared
      operationId: setAlertObjectStatus
      summary: Set alert object status
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: alertId
          in: path
          description: alert id
          required: true
          schema:
            type: string
        - name: status
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertObject'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/cluster/{clusterName}/summary:
    get:
      tags:
        - alertObject
      operationId: getClusterAlertSummary
      summary: Get cluster alert summary
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: status
          in: query
          description: alert status filter, defaults to firing
          required: false
          schema:
            type: string
            default: firing
        - name: severity
          in: query
          description: alert severity filter
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: max number of top alerts returned
          required: false
          schema:
            type: integer
            default: 3
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clusterAlertSummary'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/cluster/{clusterName}/rules:
    get:
      tags:
        - clusterAlertSwitch
        - shared
      operationId: listClusterAlertRules
      summary: List applicable alert rules for a cluster
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertRuleList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/cluster/{clusterName}:
    get:
      tags:
        - clusterAlertSwitch
        - shared
      operationId: getClusterAlertDisabled
      summary: Get cluster alert settings
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertCluster'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    patch:
      tags:
        - clusterAlertSwitch
        - shared
      operationId: setClusterAlertDisabled
      summary: Update cluster alert settings
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertCluster'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertCluster'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/resource/{resourceType}/{resourceID}/rules:
    get:
      tags:
        - alertRule
        - shared
      operationId: listResourceAlertRules
      summary: List applicable alert rules for a resource
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: resourceType
          in: path
          description: resourceType
          required: true
          schema:
            $ref: '#/components/schemas/alertResourceType'
        - name: resourceID
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertRuleList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/resource/{resourceType}/{resourceID}:
    get:
      tags:
        - alertRule
        - shared
      operationId: getResourceAlertDisabled
      summary: Get resource alert settings
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: resourceType
          in: path
          description: resourceType
          required: true
          schema:
            $ref: '#/components/schemas/alertResourceType'
        - name: resourceID
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertCluster'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    patch:
      tags:
        - alertRule
        - shared
      operationId: setResourceAlertDisabled
      summary: Update resource alert settings
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: resourceType
          in: path
          description: resourceType
          required: true
          schema:
            $ref: '#/components/schemas/alertResourceType'
        - name: resourceID
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertCluster'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertCluster'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/config:
    get:
      tags:
        - alertConfig
        - shared
      operationId: getAlertConfig
      summary: Get alert config
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertConfig'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    patch:
      tags:
        - alertConfig
        - shared
      operationId: setAlertConfig
      summary: Set alert config
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertConfig'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertConfig'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/inhibits:
    get:
      tags:
        - alertInhibit
      operationId: listAlertInhibits
      summary: List alert inhibits
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertInhibitList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    post:
      tags:
        - alertInhibit
      operationId: createAlertInhibit
      summary: Create alert inhibit
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertInhibit'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertInhibit'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    patch:
      tags:
        - alertInhibit
      operationId: patchAlertInhibit
      summary: Patch alert inhibit
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/alertInhibit'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertInhibit'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/inhibits/{inhibitId}:
    get:
      tags:
        - alertInhibit
        - shared
      operationId: getAlertInhibit
      summary: Get alert inhibit
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: inhibitId
          in: path
          description: inhibit id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/alertInhibit'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    delete:
      tags:
        - alertInhibit
        - shared
      operationId: deleteAlertInhibit
      summary: Delete alert inhibit
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: inhibitId
          in: path
          description: inhibit id
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Returned when project is deleted successfully.
          content:
            application/json:
              schema:
                type: object
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/alerts/rules/config/restore:
    post:
      tags:
        - alertRule
      summary: Restore organization's alert rule configuration to defaults
      description: Restores the alert rule configuration for a specific organization to the system default settings.
      operationId: restoreOrgAlertRuleToDefault
      parameters:
        - name: orgName
          in: path
          required: true
          description: The name of the organization.
          schema:
            type: string
      responses:
        '200':
          description: Alert rule configuration for the organization restored to defaults successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Alert rule configuration for organization 'example-org-1' has been restored to defaults successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/engineTypes:
    get:
      operationId: listEngineTypes
      summary: List engine types
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/engineTypeList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - engine
        - shared
  /api/v1/environments/{environmentName}/engines:
    get:
      operationId: listEnginesInEnv
      summary: List engines in environment
      parameters:
        - description: name of the EnvironmentName
          in: path
          name: environmentName
          required: true
          schema:
            type: string
        - description: engine name
          in: query
          name: name
          schema:
            type: string
        - description: engine Type
          in: query
          name: type
          schema:
            type: string
        - description: engine version
          in: query
          name: version
          schema:
            type: string
        - name: provider
          in: query
          description: engine provider
          schema:
            type: string
        - name: all
          in: query
          description: list all engines include uninstall engines
          schema:
            type: boolean
            default: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/engineList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - engine
        - shared
  /api/v1/engines/resourceConstraints:
    get:
      operationId: listEngineResourceConstraints
      summary: List engine resource constraints
      parameters:
        - description: engine name
          in: query
          name: engine
          schema:
            type: string
        - description: engine mode
          in: query
          name: mode
          schema:
            type: string
        - description: engine component
          in: query
          name: component
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/resourceConstraintList'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - engine
  /api/v1/engineOptions:
    get:
      description: list all engineOptions
      summary: List all engineOptions
      operationId: listEngineOptions
      parameters:
        - description: The version of the engineOption to query, `current` from potentially modified data, `original` from the json files of the apiserver
          in: query
          name: version
          required: false
          schema:
            $ref: '#/components/schemas/engineOptionVersion'
        - description: Whether to filter load backup from offline instance
          in: query
          name: filterLoadBackupFromOfflineInstance
          required: false
          schema:
            type: boolean
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/engineOptionList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - engineOption
  /api/v1/engineOptions/{engineName}:
    get:
      description: Get a engineOption detail
      summary: Get engineOption
      operationId: getEngineOption
      parameters:
        - description: Name of the engineOption
          in: path
          name: engineName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/engineOption'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - engineOption
  /api/v1/engineLicenses:
    get:
      description: list all engineLicenses
      summary: List all engineLicenses
      operationId: listEngineLicenses
      parameters:
        - description: engine name
          in: query
          name: engineName
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/engineLicenseList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - engine
  /api/v1/taskTypes:
    get:
      tags:
        - task
        - shared
      summary: List task types
      description: List task types
      operationId: listTaskTypes
      responses:
        '200':
          description: Current task type list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskTypeList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/tasks:
    get:
      tags:
        - task
      summary: List task
      description: List tasks
      operationId: listTasks
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: resourceId
          in: query
          description: Filter by resource ID (such as cluster ID, environment ID, etc.)
          schema:
            type: string
        - name: resourceType
          in: query
          description: Filter by resource type
          schema:
            type: string
        - name: taskType
          in: query
          description: Filter by task type (supports multiple task types separated by commas, e.g., "cluster-scale,cluster-upgrade")
          schema:
            type: string
        - name: status
          in: query
          description: Filter by task status (supports multiple statuses separated by commas, e.g., "Running,Pending")
          schema:
            type: string
        - $ref: '#/components/parameters/startTime'
        - $ref: '#/components/parameters/endTime'
        - name: pageNumber
          in: query
          description: The pageNumber of the query
          schema:
            type: integer
            format: int64
        - name: pageSize
          in: query
          description: The pageSize of the query
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: Current task list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/tasks/{taskId}:
    get:
      summary: Get task detail
      description: Get task
      operationId: getTask
      parameters:
        - description: Organization name
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: ID of the task
          in: path
          name: taskId
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Current status of the task
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/task'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - task
  /api/v1/organizations/{orgName}/tasks/{taskId}/events:
    get:
      summary: List operation events related to a task
      description: List operation events whose recorded response contains the task ID.
      operationId: listTaskEvents
      parameters:
        - description: Organization name
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: ID of the task
          in: path
          name: taskId
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Operation events related to the task
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/eventList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - task
        - event
  /api/v1/organizations/{orgName}/tasks/{taskId}/cancel:
    post:
      summary: Cancel a task
      description: Cancel a task by taskID within the organization.
      operationId: cancelTask
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - description: ID of the task
          in: path
          name: taskId
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Task cancelled successfully
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - task
  /api/v1/organizations/{orgName}/tasks/{taskId}/abort:
    post:
      summary: Force abort a task
      description: Forcefully abort a running task. Pending steps or OpsRequests are cancelled, running ones are aborted.
      operationId: abortTask
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - description: ID of the task
          in: path
          name: taskId
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Task aborted successfully
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - task
  /api/v1/organizations/{orgName}/clusters/{clusterName}/dms/audits:
    get:
      tags:
        - dms
        - shared
      operationId: listDMSAudit
      summary: List independent DMS audit records
      description: Only organization administrators and authorized admin-portal users can read these records.
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            default: 0
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: userName
          in: query
          schema:
            type: string
        - name: databaseUser
          in: query
          schema:
            type: string
        - name: database
          in: query
          schema:
            type: string
        - name: operation
          in: query
          schema:
            type: string
        - name: statement
          in: query
          description: Literal substring of recorded content.
          schema:
            type: string
        - name: risk
          in: query
          schema:
            $ref: '#/components/schemas/dmsAuditRisk'
        - name: status
          in: query
          schema:
            $ref: '#/components/schemas/dmsAuditStatus'
        - name: from
          in: query
          schema:
            type: string
            format: date-time
        - name: to
          in: query
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: Audit records, ordered by newest first.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dmsAuditList'
        '403':
          $ref: '#/components/responses/403'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}:
    get:
      tags:
        - dms
        - shared
      operationId: getDataSourceV2
      summary: get the datasource
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/datasource'
    delete:
      tags:
        - dms
        - shared
      operationId: deleteDataSourceV2
      summary: delete the datasource
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when datasource is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource:
    get:
      tags:
        - dms
        - shared
      operationId: listDataSourceV2
      summary: list the datasource of a cluster
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/datasourceList'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/testDS:
    post:
      tags:
        - dms
        - shared
      operationId: testDataSourceV2
      summary: test the datasource
      parameters:
        - name: orgName
          description: name of the Org
          required: true
          in: path
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/datasource'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/testConnectResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/createDS:
    post:
      tags:
        - dms
        - shared
      operationId: createDataSourceV2
      summary: create the datasource
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/datasource'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/datasource'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/updateDS:
    post:
      tags:
        - dms
        - shared
      operationId: updateDataSourceV2
      summary: update the datasource
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/datasource'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/datasource'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/query:
    post:
      tags:
        - dms
        - shared
      operationId: query
      summary: create a SQL query
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmsQueryRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsQueryResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/export:
    post:
      tags:
        - dms
        - shared
      summary: Data Export
      operationId: DataExport
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmsExportRequest'
      responses:
        '200':
          description: data in format
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/import:
    post:
      tags:
        - dms
        - shared
      summary: Data Import
      operationId: DataImport
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmsImportRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/DmsImportFormData'
      responses:
        '200':
          description: create import task success, wait for task complete...
          content:
            application/json:
              schema:
                type: object
                properties:
                  taskId:
                    type: string
                    description: Cloud TaskFlow task ID; query using the unified task API
                  workflowEngine:
                    type: string
                    description: Always taskflow for new import tasks
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/databases:
    get:
      tags:
        - dms
        - shared
      operationId: listDmsDatabases
      summary: list all databases of the datasource
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsSchemaList'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/schemas:
    get:
      tags:
        - dms
        - shared
      operationId: getSchemaList
      summary: list all databases or schema of the cluster
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
        - name: database
          in: query
          description: database name, used by engines such as MSSQL when listing schemas inside a database
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsSchemaList'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/{schema}:
    get:
      tags:
        - dms
        - shared
      operationId: ListObjectTypesInSchema
      summary: list the type and number of database objects in the specified database or schema
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
        - name: schema
          in: path
          description: schema or database name
          required: true
          schema:
            type: string
        - name: database
          in: query
          description: database name, used by engines such as MSSQL when listing objects inside a schema
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsObjectList'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/{schema}/{type}:
    get:
      tags:
        - dms
        - shared
      operationId: ListObjectNamesByType
      summary: list the all name for the specified object type
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
        - name: schema
          in: path
          description: schema or database name
          required: true
          schema:
            type: string
        - name: type
          in: path
          description: object type
          required: true
          schema:
            type: string
        - name: database
          in: query
          description: database name, used by engines such as MSSQL when listing object names inside a schema
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsObjectNameList'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/{schema}/{type}/{objectName}:
    get:
      tags:
        - dms
        - shared
      operationId: GetObjectInfo
      summary: get the detail object info
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
        - name: schema
          in: path
          description: schema or database name
          required: true
          schema:
            type: string
        - name: type
          in: path
          description: object type
          required: true
          schema:
            type: string
        - name: objectName
          in: path
          description: object name
          required: true
          schema:
            type: string
        - name: database
          in: query
          description: database name, used by engines such as MSSQL when reading object metadata inside a schema
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsObjectResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/history:
    get:
      tags:
        - dms
        - shared
      operationId: listQueryHistory
      summary: list the query History
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: maximum history records to return, default and max 100
          required: false
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsQueryHistoryList'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/sqlExplain:
    post:
      tags:
        - dms
        - shared
      operationId: sqlExplain
      summary: explain a SQL
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmsExplainRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsQueryResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/sqlExplain/visual:
    post:
      tags:
        - dms
        - shared
      operationId: visualSqlExplain
      summary: explain a SQL as a normalized visual execution plan
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmsVisualExplainRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsExecutionPlanResult'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/generateDDL:
    post:
      tags:
        - dms
        - shared
      operationId: generateDDL
      summary: support ddl and dml operations
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmsGenerateDDLRequest'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: string
                description: operation executed successfully
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/showData:
    post:
      tags:
        - dms
        - shared
      operationId: showData
      summary: read data of table or view
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShowDataRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsResult'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/redis/keyAnalysis:
    post:
      tags:
        - redisKeyAnalysis
      operationId: createRedisKeyAnalysis
      summary: Create a Redis keys analysis task
      description: |
        Submits the redis-rdr-keys-analysis OpsDefinition. After the operation succeeds, the
        platform reads /data/rdr-report.json from every primary pod and persists one
        report row per shard. Poll the task and then call the report API with the returned taskId.
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                parameters:
                  type: object
                  properties:
                    topBigKey:
                      type: integer
                      format: int64
                      minimum: 1
                      maximum: 500
                      default: 100
                    numOfElemMin:
                      type: integer
                      format: int64
                      minimum: 1
                      default: 3000
                    bigKeySizeMin:
                      type: string
                      default: 10kb
                    topSlot:
                      type: integer
                      format: int64
                      minimum: 1
                      maximum: 500
                      default: 100
      responses:
        '200':
          description: Analysis task submitted.
          content:
            application/json:
              schema:
                type: object
                required:
                  - taskId
                properties:
                  taskId:
                    type: string
                  status:
                    type: string
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/redis/keyAnalysis/{taskId}:
    get:
      tags:
        - redisKeyAnalysis
      operationId: getRedisKeyAnalysisReport
      summary: Get a Redis keys analysis report
      description: |
        Returns one persisted row per shard. For a cluster with multiple shards, one
        additional aggregate row with isSummary=true is appended; it is not persisted.
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: taskId
          in: path
          required: true
          description: Platform TaskFlow task ID.
          schema:
            type: string
      responses:
        '200':
          description: Report rows plus an optional aggregate row.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RedisKeyAnalysisReport'
        '404':
          $ref: '#/components/responses/404'
    delete:
      tags:
        - redisKeyAnalysis
      operationId: deleteRedisKeyAnalysisReport
      summary: Delete a Redis keys analysis report
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: taskId
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Report deleted.
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/context:
    get:
      tags:
        - dms
      operationId: getRedisContext
      summary: get Redis datasource data-management context
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Current logical Redis database index for this context. Omitted uses the datasource default; Redis Cluster only supports 0.
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisDataContext'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/keys:
    get:
      tags:
        - dms
      operationId: listRedisKeys
      summary: list Redis key summaries by SCAN cursor
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Logical Redis database index. Redis Cluster only supports 0.
          schema:
            type: integer
            format: int64
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int64
        - name: pattern
          in: query
          required: false
          schema:
            type: string
        - name: type
          in: query
          required: false
          schema:
            type: string
        - name: separator
          in: query
          required: false
          schema:
            type: string
            default: ':'
        - name: nodeId
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisKeySummaryList'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/analysis:
    get:
      tags:
        - dms
      operationId: analyzeRedisKeys
      summary: analyze Redis keys by bounded SCAN sampling
      description: Returns an instant sample analysis for Redis keys. The result is not a persisted or full historical report; callers must use progress.complete, progress.processed, progress.sampleLimit, and generatedAt to present the sampling boundary.
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          schema:
            type: integer
            format: int64
        - name: match
          in: query
          description: Redis SCAN match pattern.
          required: false
          schema:
            type: string
        - name: cursor
          in: query
          description: Cursor returned by a previous analysis scan. Empty starts a new sample scan.
          required: false
          schema:
            type: string
        - name: sampleLimit
          in: query
          description: Maximum number of keys to sample in this analysis request.
          required: false
          schema:
            type: integer
            format: int64
        - name: topN
          in: query
          description: Maximum number of top keys or namespaces to return.
          required: false
          schema:
            type: integer
            format: int64
        - name: namespaceSeparator
          in: query
          description: Separator used to group key namespaces.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: analyze redis key sample success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisAnalysisResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/key/detail:
    post:
      tags:
        - dms
      operationId: getRedisKeyDetail
      summary: get Redis key detail
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Logical Redis database index. Redis Cluster only supports 0.
          schema:
            type: integer
            format: int64
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedisKeyDetailRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisKeyDetail'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/key/mutate:
    post:
      tags:
        - dms
      operationId: mutateRedisKey
      summary: mutate Redis key data or metadata
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Logical Redis database index. Redis Cluster only supports 0.
          schema:
            type: integer
            format: int64
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedisKeyMutateRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisKeyMutateResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/workbench/execute:
    post:
      tags:
        - dms
      operationId: executeRedisWorkbenchCommand
      summary: execute a Redis Workbench command
      description: Executes a Redis command for the current datasource context. Follow-up implementation should record command history in datasource query_history with engine=redis; no Redis-specific history API is introduced by this contract.
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Logical Redis database index for this command. Redis Cluster only supports 0.
          schema:
            type: integer
            format: int64
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedisWorkbenchExecuteRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisWorkbenchExecuteResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/pubsub/publish:
    post:
      tags:
        - dms
      operationId: publishRedisMessage
      summary: publish a Redis Pub/Sub message
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Logical Redis database index for this Pub/Sub client. Redis Pub/Sub is server-level, but the client connection is still scoped to the selected DB for consistency.
          schema:
            type: integer
            format: int64
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedisPubSubPublishRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisOperationSummary'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/pubsub/sessions:
    post:
      tags:
        - dms
      operationId: createRedisPubSubSession
      summary: create a Redis Pub/Sub polling session
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Logical Redis database index for the polling client connection.
          schema:
            type: integer
            format: int64
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedisPubSubSessionCreateRequest'
        required: true
      responses:
        '201':
          description: session created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisPubSubSession'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/pubsub/sessions/{sessionId}/messages:
    get:
      tags:
        - dms
      operationId: listRedisPubSubMessages
      summary: list messages from a Redis Pub/Sub polling session
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisPubSubMessageList'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/pubsub/sessions/{sessionId}:
    delete:
      tags:
        - dms
      operationId: closeRedisPubSubSession
      summary: close a Redis Pub/Sub polling session
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: session closed
          content: {}
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/slowlog:
    get:
      tags:
        - dms
      operationId: listRedisSlowLog
      summary: list Redis slow log entries
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Logical Redis database index. SlowLog is server-level; the parameter is accepted for API consistency.
          schema:
            type: integer
            format: int64
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int64
        - name: nodeId
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisSlowLogList'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/slowlog/reset:
    post:
      tags:
        - dms
      operationId: resetRedisSlowLog
      summary: reset Redis slow log
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Logical Redis database index. SlowLog reset is server-level; the parameter is accepted for API consistency.
          schema:
            type: integer
            format: int64
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedisDangerousOperationRequest'
        required: false
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisOperationSummary'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/info:
    get:
      tags:
        - dms
      operationId: getRedisInfo
      summary: get Redis INFO output by section
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Logical Redis database index. INFO is server-level; the parameter is accepted for API consistency.
          schema:
            type: integer
            format: int64
        - name: section
          in: query
          required: false
          schema:
            type: string
        - name: nodeId
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisInfoResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/redis/cluster/topology:
    get:
      tags:
        - dms
      operationId: getRedisClusterTopology
      summary: get Redis Cluster topology
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: database
          in: query
          required: false
          description: Logical Redis database index. Redis Cluster topology only supports database 0.
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedisClusterTopology'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases:
    get:
      tags:
        - dms
      operationId: listMongoDatabases
      summary: list MongoDB databases
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/metadata:
    get:
      tags:
        - dms
      operationId: listMongoDatabaseMetadata
      summary: list MongoDB database metadata
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MongoDatabaseInfo'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections:
    get:
      tags:
        - dms
      operationId: listMongoCollections
      summary: list collections in a MongoDB database
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
        - name: db
          in: path
          description: database name
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MongoCollectionInfo'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}:
    post:
      tags:
        - dms
      operationId: mongoCreateCollection
      summary: create MongoDB collection
      description: Creates a collection. Creating the first collection in a database is the supported Create Database backend semantic.
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
        - name: db
          in: path
          description: database name
          required: true
          schema:
            type: string
        - name: col
          in: path
          description: initial collection name
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoCreateCollectionRequest'
        required: false
      responses:
        '201':
          description: collection created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoCollectionInfo'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    get:
      tags:
        - dms
      operationId: getMongoCollection
      summary: get MongoDB collection stats
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
        - name: db
          in: path
          description: database name
          required: true
          schema:
            type: string
        - name: col
          in: path
          description: collection name
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoCollectionStats'
    delete:
      tags:
        - dms
      operationId: dropMongoCollection
      summary: drop a MongoDB collection or view
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
        - name: db
          in: path
          description: database name
          required: true
          schema:
            type: string
        - name: col
          in: path
          description: collection or view name
          required: true
          schema:
            type: string
      responses:
        '204':
          description: collection or view dropped
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}/find:
    post:
      tags:
        - dms
      operationId: mongoFind
      summary: find documents in a MongoDB collection
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
        - name: db
          in: path
          description: database name
          required: true
          schema:
            type: string
        - name: col
          in: path
          description: collection name
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoFindRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoFindResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}/aggregate:
    post:
      tags:
        - dms
      operationId: mongoAggregate
      summary: run MongoDB aggregation pipeline preview
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoAggregateRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoFindResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}/insert:
    post:
      tags:
        - dms
      operationId: mongoInsert
      summary: insert MongoDB document(s)
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoInsertRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoWriteResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}/update:
    post:
      tags:
        - dms
      operationId: mongoUpdate
      summary: update a single MongoDB document
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoUpdateRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoWriteResult'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}/delete:
    post:
      tags:
        - dms
      operationId: mongoDelete
      summary: delete a single MongoDB document
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoDeleteRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoWriteResult'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}/replace:
    post:
      tags:
        - dms
      operationId: mongoReplace
      summary: replace a single MongoDB document
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoReplaceRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoWriteResult'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}/indexes:
    get:
      tags:
        - dms
      operationId: mongoListIndexes
      summary: list MongoDB collection indexes
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MongoIndexInfo'
    post:
      tags:
        - dms
      operationId: mongoCreateIndex
      summary: create MongoDB collection index
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoCreateIndexRequest'
        required: true
      responses:
        '204':
          description: index created
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}/indexes/{indexName}:
    delete:
      tags:
        - dms
      operationId: mongoDropIndex
      summary: drop MongoDB collection index
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
        - name: indexName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: index dropped
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}/schema:
    get:
      tags:
        - dms
      operationId: mongoAnalyzeSchema
      summary: analyze MongoDB collection schema from sample documents
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
        - name: sample
          in: query
          required: false
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoSchemaAnalysis'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/collections/{col}/validation:
    get:
      tags:
        - dms
      operationId: mongoGetValidation
      summary: get MongoDB collection validation options
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoValidationInfo'
    put:
      tags:
        - dms
      operationId: mongoSetValidation
      summary: set MongoDB collection validation options
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: col
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoSetValidationRequest'
        required: true
      responses:
        '204':
          description: validation updated
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/databases/{db}/views:
    post:
      tags:
        - dms
      operationId: mongoCreateView
      summary: create MongoDB view from a read-only aggregation pipeline
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoCreateViewRequest'
        required: true
      responses:
        '204':
          description: view created
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/explain:
    post:
      tags:
        - dms
      operationId: mongoExplain
      summary: explain a MongoDB query
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoExplainRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoExplainResponse'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/shell/sessions:
    post:
      tags:
        - dms
      operationId: mongoCreateShellSession
      summary: create MongoDB mongosh runtime session
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: id of the datasource
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoShellCreateSessionRequest'
        required: false
      responses:
        '201':
          description: shell session created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoShellSession'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        '503':
          $ref: '#/components/responses/503'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/shell/sessions/{sessionID}:
    delete:
      tags:
        - dms
      operationId: mongoCloseShellSession
      summary: close MongoDB mongosh runtime session
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: sessionID
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: shell session closed
          content: {}
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/shell/sessions/{sessionID}/prompt:
    get:
      tags:
        - dms
      operationId: mongoGetShellPrompt
      summary: get MongoDB mongosh session prompt
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: sessionID
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoShellPromptResponse'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/shell/sessions/{sessionID}/evaluate:
    post:
      tags:
        - dms
      operationId: mongoEvaluateShell
      summary: evaluate input in a MongoDB mongosh session
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: sessionID
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoShellEvaluateRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoShellEvaluateResponse'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        '504':
          $ref: '#/components/responses/504'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/shell/sessions/{sessionID}/completions:
    post:
      tags:
        - dms
      operationId: mongoCompleteShell
      summary: get completions for a MongoDB mongosh session
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: sessionID
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoShellCompletionsRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoShellCompletionsResponse'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/mongodb/shell/sessions/{sessionID}/interrupt:
    post:
      tags:
        - dms
      operationId: mongoInterruptShell
      summary: interrupt current MongoDB mongosh session operation
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: sessionID
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoShellInterruptResponse'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/sessions:
    get:
      deprecated: true
      tags:
        - dms
        - shared
      summary: list all session for the cluster
      operationId: listSessionsOld
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: all
          in: query
          description: whether list all session includes sleep
          default: 'true'
          schema:
            type: string
      responses:
        '200':
          description: list all session success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsSessionList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/session/{session}:
    delete:
      deprecated: true
      tags:
        - dms
        - shared
      summary: close the session for the cluster
      operationId: closeSessions
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: session
          in: path
          description: name of the storage volume
          required: true
          schema:
            type: string
        - name: keep
          in: query
          description: whether only close the query and keep the session
          default: 'false'
          schema:
            type: string
      responses:
        '200':
          description: close the session success
          content:
            text/plain:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/ipWhitelist:
    get:
      operationId: listIPWhitelist
      summary: List IP whitelists
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ipWhitelistList'
          description: A successful response.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - ipWhitelist
        - shared
    post:
      operationId: createIPWhitelist
      summary: Create IP whitelist
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              description: whitelist
              properties:
                name:
                  description: Name of the whitelist
                  title: Name
                  type: string
                description:
                  description: Description
                  title: Description
                  type: string
                addresses:
                  items:
                    type: string
                  description: Whitelist IP Addresses
                  title: Addresses
                  type: array
              required:
                - name
                - addresses
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ipWhitelist'
          description: Returned when object is created successfully.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - ipWhitelist
        - shared
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/clusters/{clusterName}/ipWhitelist/{ipWhitelistId}:
    patch:
      operationId: updateIPWhitelist
      summary: Update IP whitelist
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: ID of the IP whitelist
          in: path
          name: ipWhitelistId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              description: whitelist
              properties:
                name:
                  description: Name of the whitelist
                  title: Name
                  type: string
                description:
                  description: Description
                  title: Description
                  type: string
                addresses:
                  items:
                    type: string
                  description: Whitelist IP Addresses
                  title: Addresses
                  type: array
              required:
                - name
                - addresses
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ipWhitelist'
          description: Returned when object is updated successfully.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - ipWhitelist
        - shared
      x-codegen-request-body-name: body
    delete:
      operationId: deleteIPWhiteList
      summary: Delete IP whitelist
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: ID of the IP whitelist
          in: path
          name: ipWhitelistId
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when object is deleted successfully.
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - ipWhitelist
        - shared
  /api/v1/permissions:
    get:
      tags:
        - role
        - shared
      summary: List all permissions
      description: List all permissions
      operationId: listPermissions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/permissionList'
        '401':
          $ref: '#/components/responses/401'
  /api/v1/organizations/{orgName}/roles:
    get:
      tags:
        - role
        - shared
      summary: List roles of a organization
      description: List roles of a organization
      operationId: listRoles
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/roleList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    post:
      tags:
        - role
        - shared
      summary: Create role
      description: Create role
      operationId: createRole
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/roleCreate'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/role'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/roles/{roleName}:
    get:
      tags:
        - role
        - shared
      summary: Get role by name
      description: Get role by name
      operationId: getRoleByName
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/role'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    patch:
      tags:
        - role
        - shared
      summary: Update role by name
      description: Update role by name
      operationId: updateRoleByName
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/roleUpdate'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/role'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    delete:
      tags:
        - role
        - shared
      summary: Delete role by name
      description: Delete role by name
      operationId: deleteRoleByName
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Returned when role is deleted successfully.
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/roles/{roleName}/permissions:
    get:
      tags:
        - role
        - shared
      summary: List permissions of a role
      description: List permissions of a role
      operationId: listRolePermissions
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/permissionList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/roles/{roleName}/permissions/batch:
    post:
      tags:
        - role
        - shared
      summary: Batch add permissions to a role
      description: Batch add permissions to a role
      operationId: batchAddRolePermissions
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
        required: true
      responses:
        '204':
          description: Returned when permissions are added successfully.
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
    delete:
      tags:
        - role
        - shared
      summary: Batch remove permissions from a role
      description: Batch remove permissions from a role
      operationId: batchRemoveRolePermissions
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
        required: true
      responses:
        '204':
          description: Returned when permissions are removed successfully.
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/classes:
    get:
      tags:
        - class
      operationId: listClasses
      summary: List classes
      parameters:
        - name: engineName
          in: query
          description: code
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/class'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/classTypes:
    get:
      tags:
        - classTypes
      operationId: getClassTypes
      summary: Get all class types
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/classType'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/classTypes/{id}:
    get:
      tags:
        - classTypes
      operationId: getClassType
      summary: Get a class type by ID
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/classType'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/features:
    get:
      description: Get feature list
      summary: Get feature list
      operationId: listFeature
      parameters:
        - description: name of the feature group
          in: query
          name: group
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/featureList'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - feature
        - shared
  /api/v1/features/{featureName}:
    get:
      description: Get feature
      summary: Get feature
      operationId: readFeature
      parameters:
        - description: name of the feature
          in: path
          name: featureName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/feature'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - feature
        - shared
  /api/v1/organizations/{orgName}/clusters/{clusterName}/tenants:
    get:
      tags:
        - oceanbase
        - shared
      operationId: listTenants
      summary: list all tenants for the oceanbase cluster
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantList'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/tenant/{tenantId}:
    get:
      tags:
        - oceanbase
        - shared
      operationId: getTenant
      summary: get tenants detail information of the oceanbase cluster
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: tenantId
          description: id of the tenant
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Tenant'
          description: OK
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/tenant/{tenantId}/parameters:
    get:
      tags:
        - dms
        - shared
      summary: list cluster parameters
      operationId: listParameters
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
        - name: mode
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsParameterList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/tenant/{tenantId}/parameter:
    post:
      tags:
        - dms
        - shared
      summary: alter cluster parameter
      operationId: alterParameter
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmsObAlterParameter'
      responses:
        '200':
          description: close the session success
          content:
            text/plain:
              schema:
                type: string
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/tenant/{tenantId}/parameterHistory:
    get:
      tags:
        - dms
        - shared
      summary: List parameters history of the Oceanbase tenant
      operationId: tenantParameterHistory
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - name: tenantId
          description: id of the tenant
          in: path
          required: true
          schema:
            type: string
        - description: name of the parameter
          in: query
          name: parameterName
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/parameterHistoryList'
          description: get parameters history of the cluster successfully
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/recycleBin/clusters:
    get:
      tags:
        - recycleBinCluster
        - shared
      operationId: listRecycleBinCluster
      summary: List clusters in the Recycle Bin of the Org
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/recycleBinClusterList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}:
    get:
      tags:
        - recycleBinCluster
        - shared
      operationId: getRecycleBinCluster
      summary: Get cluster in the Recycle Bin of the Org
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/recycleBinCluster'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    delete:
      tags:
        - recycleBinCluster
        - shared
      operationId: deleteRecycleBinCluster
      summary: Delete cluster from the Recycle Bin of the Org
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
        - name: isDeleteBackup
          in: query
          description: whether to delete the backup of the cluster
          required: true
          schema:
            type: boolean
      responses:
        '200':
          description: A successful response.
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}/restore:
    post:
      tags:
        - recycleBinCluster
        - shared
      operationId: restoreRecycleBinCluster
      summary: Restore cluster from the Recycle Bin of the Org
      parameters:
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/cluster'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/environments/{environmentName}/projects:
    get:
      tags:
        - project
      operationId: listProjects
      summary: List projects in an environment
      parameters:
        - name: environmentName
          in: path
          description: environment name
          schema:
            type: string
          required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/projectList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/disasterRecovery:
    delete:
      operationId: deleteDisasterRecovery
      summary: Delete a disaster recovery instance
      description: Delete a specific disaster recovery instance
      parameters:
        - description: name of the org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the disaster recovery logical instance
          in: query
          name: logicalInstanceID
          schema:
            type: string
        - description: The ID of the disaster recovery cluster
          in: query
          name: clusterID
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/disasterRecoveryTask'
          description: Disaster recovery instance async job task information.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - disasterRecovery
  /api/v1/organizations/{orgName}/parent/{parentClusterID}/disasterRecovery:
    get:
      operationId: listDisasterRecovery
      summary: List Disaster Recovery instances under the main cluster
      description: Retrieve a list of disaster recovery instances for a specific database cluster.
      parameters:
        - description: The ID of the parent database cluster
          in: path
          name: parentClusterID
          required: true
          schema:
            type: string
        - description: name of the org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/disasterRecoveryClusterList'
          description: A list of disaster recovery instances.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - disasterRecovery
    post:
      operationId: createDisasterRecovery
      summary: Create a new disaster recovery instance
      description: Create a new disaster recovery instance for a database cluster.
      parameters:
        - description: The ID of the parent database cluster
          in: path
          name: parentClusterID
          required: true
          schema:
            type: string
        - description: name of the org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/disasterRecoveryCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/disasterRecoveryTask'
          description: Disaster recovery instance async job task information.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - disasterRecovery
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/disasterRecovery/{clusterID}/promote:
    post:
      operationId: promoteDisasterRecovery
      summary: Promote a disaster recovery instance to the main instance
      description: Promote the disaster recovery instance to the primary database instance.
      parameters:
        - description: The ID of the disaster recovery instance
          in: path
          name: clusterID
          required: true
          schema:
            type: string
        - description: name of the org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/disasterRecoveryPromote'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/disasterRecoveryTask'
          description: Disaster recovery instance async job task information.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - disasterRecovery
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/disasterRecovery/{clusterID}/switchHistory:
    get:
      operationId: getDisasterRecoveryHistory
      summary: Get switch history of a disaster recovery instance
      description: Retrieve the history of failover and failback operations for a specific disaster recovery instance.
      parameters:
        - description: The ID of the disaster recovery instance
          in: path
          name: clusterID
          required: true
          schema:
            type: string
        - description: name of the org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/disasterRecoveryHistory'
          description: Switch history retrieved successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - disasterRecovery
  /api/v1/organizations/{orgName}/disasterRecovery/{clusterID}/status:
    get:
      operationId: getDisasterRecoveryStatus
      summary: Retrieve Disaster Recovery Instance Status
      description: Get detailed information about the status of a specific disaster recovery instance, including delay and current replication point.
      parameters:
        - description: Unique identifier of the disaster recovery instance
          in: path
          name: clusterID
          required: true
          schema:
            type: string
        - description: Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/disasterRecoveryStatusResponse'
          description: Status query successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - disasterRecovery
  /api/v1/organizations/{orgName}/cluster/{clusterName}/available-relations:
    get:
      tags:
        - relation
        - shared
      summary: list the available clusters for the organization to create the a relation
      operationId: listAvailableClustersForRelation
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: targetType
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: list the available clusters for the organization to create the a relation successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/availableClusterList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/relations:
    get:
      tags:
        - relation
        - shared
      summary: list the clusters that have built a relation to the specified cluster
      operationId: listRelatedClusters
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: list the clusters that have built relations to the cluster
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/relatedClusterList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      tags:
        - relation
        - shared
      summary: create a relation between the clusters in the organization
      operationId: createRelation
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: target
          in: query
          required: true
          schema:
            type: string
      responses:
        '204':
          description: create a relation between the clusters in the organization successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/relation/{target}:
    delete:
      tags:
        - relation
        - shared
      summary: delete a existed relation between the clusters in the organization
      operationId: deleteRelation
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: target
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: delete a existed relation between the clusters in the organization successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/computeGroups:
    get:
      tags:
        - computeGroup
      operationId: listComputeGroups
      summary: List compute groups
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/computeGroupList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    post:
      tags:
        - computeGroup
      operationId: createComputeGroup
      summary: Create compute group
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Accepted; poll taskId for convergence.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/computeGroupCreate'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/computeGroups/enable:
    post:
      tags:
        - computeGroup
      operationId: enableComputeGroup
      summary: Enable a compute group on an existing component
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Accepted; poll taskId for convergence.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/computeGroupEnable'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/computeGroups/{groupName}:
    get:
      tags:
        - computeGroup
      operationId: getComputeGroup
      summary: Get compute group
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/computeGroup'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    delete:
      tags:
        - computeGroup
      operationId: deleteComputeGroup
      summary: Delete compute group
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Accepted; poll taskId for convergence.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/computeGroups/{groupName}/scale:
    post:
      tags:
        - computeGroup
      operationId: scaleComputeGroup
      summary: Scale compute group
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Accepted; poll taskId for convergence.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/computeGroupScale'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/computeGroups/{groupName}/start:
    post:
      tags:
        - computeGroup
      operationId: startComputeGroup
      summary: Start compute group
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Accepted; poll taskId for convergence.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/computeGroups/{groupName}/stop:
    post:
      tags:
        - computeGroup
      operationId: stopComputeGroup
      summary: Stop compute group
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Accepted; poll taskId for convergence.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/computeGroups/{groupName}/accounts:
    get:
      tags:
        - computeGroup
      operationId: listComputeGroupAccounts
      summary: List compute group accounts
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/computeGroupAccountList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/computeGroups/{groupName}/accounts/{accountName}:
    put:
      tags:
        - computeGroup
      operationId: grantComputeGroupAccount
      summary: Grant compute group account
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Updated
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
    delete:
      tags:
        - computeGroup
      operationId: revokeComputeGroupAccount
      summary: Revoke compute group account
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Updated
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/computeGroups/{groupName}/accounts/{accountName}/default:
    put:
      tags:
        - computeGroup
      operationId: setDefaultComputeGroup
      summary: Set default compute group
      parameters:
        - name: engineName
          in: path
          required: true
          description: Engine name.
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: groupName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Updated
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/brokers:
    get:
      summary: Get all brokers in cluster
      operationId: getKafkaBrokers
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrokerList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/brokers/{brokerId}/configs:
    get:
      summary: Get all configs of a broker
      operationId: getKafkaBrokerConfigs
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: brokerId
          in: path
          required: true
          schema:
            type: integer
          description: The id of broker
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfigList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    put:
      summary: Update broker config
      operationId: updateKafkaBrokerConfig
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: brokerId
          in: path
          required: true
          schema:
            type: integer
          description: The id of broker
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateBrokerConfigRequest'
      responses:
        '200':
          description: OK
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topics:
    get:
      summary: Get all topics in cluster
      operationId: getKafkaTopics
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: nameFilter
          in: query
          required: false
          description: search pattern, support prefix search
          schema:
            type: string
        - name: onlyNames
          in: query
          required: false
          schema:
            type: boolean
          description: if true, only return topic names
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicsList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: Create new topic
      operationId: createKafkaTopic
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTopicRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Topic'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}:
    get:
      summary: Get topic Infos
      operationId: getKafkaTopicInfos
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicDetails'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      summary: Delete topic
      operationId: deleteKafkaTopic
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Topic successfully deleted
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/brokers:
    get:
      summary: Get broker distributions of topic
      operationId: getKafkaTopicBrokers
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicBrokerList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/partitions:
    get:
      summary: Get partition list of topic
      operationId: getKafkaTopicPartitions
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartitionList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: expand topic partition
      operationId: expandKafkaTopicPartitions
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExpandPartitionRequest'
      responses:
        '200':
          description: OK
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/configs:
    get:
      summary: Get topic configuration
      operationId: getKafkaTopicConfig
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfigList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    put:
      summary: Update topic configuration
      operationId: setKafkaTopicConfig
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTopicConfigRequest'
      responses:
        '200':
          description: OK
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/consumer-groups:
    get:
      summary: List consumer groups of topic
      operationId: listKafkaTopicConsumerGroups
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
          description: The name of topic
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerGroupList'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/consumer-groups/{groupId}/offsets:
    get:
      summary: List consumer offsets of topic
      operationId: listKafkaTopicConsumerOffsets
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
          description: The name of topic
        - name: groupId
          in: path
          required: true
          schema:
            type: string
          description: The id of consumer group
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicOffsetList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    put:
      summary: Reset consumer offset of topic
      operationId: resetKafkaTopicConsumerOffset
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
          description: The name of topic
        - name: groupId
          in: path
          required: true
          schema:
            type: string
          description: The id of consumer group
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResetOffsetRequest'
      responses:
        '204':
          description: Consumer offset successfully reset
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/messages:
    get:
      summary: List messages from topic
      operationId: listKafkaTopicMessages
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
        - name: partition
          in: query
          required: true
          schema:
            type: integer
        - name: offset
          in: query
          required: true
          schema:
            type: integer
        - name: count
          in: query
          description: 获取消息的数量
          required: false
          schema:
            type: integer
            default: 100
        - name: keyFilter
          in: query
          description: 消息 key 的过滤条件（大小写不敏感）
          required: false
          schema:
            type: string
        - name: valueFilter
          in: query
          description: 消息内容的过滤条件（大小写不敏感）
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicMessageList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: Produce message to topic
      operationId: produceKafkaTopicMessage
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: topic
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopicMessageRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: integer
                format: int64
                description: 生成消息的字节长度
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/consumer-groups:
    get:
      summary: List all consumer groups
      operationId: listKafkaConsumerGroups
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: groupId
          in: query
          required: false
          schema:
            type: string
          description: the id of consumer group
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerGroupList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/consumer-groups/{groupId}:
    get:
      summary: Get consumer group describe
      operationId: getKafkaConsumerGroupDescribe
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: groupId
          in: path
          required: true
          schema:
            type: string
          description: The id of consumer group
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerGroupDescribeResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      summary: Delete consumer group
      operationId: deleteKafkaConsumerGroup
      tags:
        - kafka
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
        - name: groupId
          in: path
          required: true
          schema:
            type: string
          description: The id of consumer group
      responses:
        '204':
          description: Consumer group successfully deleted
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      description: list accounts in cluster
      summary: List cluster accounts
      operationId: listKafkaAccounts
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountList'
          description: Success
        '204':
          content: {}
          description: Returned when list accounts successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - account
        - kafka
        - shared
      x-codegen-request-body-name: body
    post:
      description: create an account in cluster
      summary: Create cluster account
      operationId: createKafkaAccount
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
        required: true
      responses:
        '201':
          description: create kafka account success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - account
        - kafka
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}:
    delete:
      description: delete an account in cluster
      summary: Delete cluster account
      operationId: deleteKafkaAccount
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: accountName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when account is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - account
        - kafka
        - shared
    patch:
      description: update an account in cluster
      summary: update cluster account
      operationId: updateKafkaAccount
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
        required: true
      responses:
        '200':
          description: upadte kafka account success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - account
        - kafka
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/hive/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      summary: Get Hive accounts
      description: Get Hive accounts
      operationId: getHiveAccounts
      tags:
        - hive
        - account
        - shared
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: The name of organization
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: The name of cluster
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountList'
          description: Success
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      description: create an hive account
      summary: Create Hive account
      operationId: createHiveAccount
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
        required: true
      responses:
        '201':
          description: create hive account success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - account
        - hive
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/hive/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}:
    delete:
      description: delete an hive account in cluster
      summary: Delete hive account
      operationId: deleteHiveAccount
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when account is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - account
        - hive
        - shared
    patch:
      description: update an hive account in cluster
      summary: update hive account
      operationId: updateHiveAccount
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
        required: true
      responses:
        '204':
          content: {}
          description: Update account password successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - account
        - hive
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/redis/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      tags:
        - redis
        - shared
      summary: list redis accounts
      operationId: listRedisAccounts
      parameters:
        - name: orgName
          in: path
          description: the name of organization
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: the name of cluster
          required: true
          schema:
            type: string
        - name: component
          in: query
          description: the component type to list accounts
          required: false
          schema:
            type: string
      responses:
        '200':
          description: list redis users success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ACLUserResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      tags:
        - redis
        - shared
      summary: create redis account
      operationId: createRedisAccount
      parameters:
        - name: orgName
          in: path
          description: the name of organization
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: the name of cluster
          required: true
          schema:
            type: string
        - name: component
          in: query
          description: the component type to create account
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ACLUser'
      responses:
        '201':
          description: create redis account success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/redis/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}:
    delete:
      tags:
        - redis
        - shared
      summary: delete redis account
      operationId: deleteRedisAccount
      parameters:
        - name: orgName
          in: path
          description: the name of organization
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: the name of cluster
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          description: the name of account
          required: true
          schema:
            type: string
        - name: component
          in: query
          description: in which component type to delete account
          required: false
          schema:
            type: string
      responses:
        '200':
          description: delete redis account success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    patch:
      tags:
        - redis
        - shared
      summary: update redis account
      operationId: updateRedisAccount
      parameters:
        - name: orgName
          in: path
          description: the name of organization
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: the name of cluster
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          description: the name of account
          required: true
          schema:
            type: string
        - name: component
          in: query
          description: in which component type to update account
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ACLUser'
      responses:
        '200':
          description: update redis account success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/opsRequestName'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      tags:
        - elasticsearch
        - shared
      summary: List Elasticsearch security users
      operationId: listElasticsearchSecurityUsers
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List Elasticsearch security users successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ESSecurityUsers'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}:
    get:
      tags:
        - elasticsearch
        - shared
      summary: Get Elasticsearch security user
      operationId: getElasticsearchSecurityUser
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: username
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Get Elasticsearch security user successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ESSecurityUser'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    put:
      tags:
        - elasticsearch
        - shared
      summary: Create or update Elasticsearch security user
      operationId: putElasticsearchSecurityUser
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: username
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ESPutSecurityUserRequest'
      responses:
        '204':
          content: {}
          description: Create or update Elasticsearch security user successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
    patch:
      tags:
        - elasticsearch
        - shared
      summary: Change Elasticsearch account password
      operationId: changeElasticsearchSecurityUserPassword
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: username
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ESSecurityPasswordRequest'
      responses:
        '204':
          content: {}
          description: Change Elasticsearch account password successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
    delete:
      tags:
        - elasticsearch
        - shared
      summary: Delete Elasticsearch security user
      operationId: deleteElasticsearchSecurityUser
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: username
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Delete Elasticsearch security user successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/lock:
    patch:
      tags:
        - elasticsearch
        - shared
      summary: Lock Elasticsearch account
      operationId: lockElasticsearchSecurityUser
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: username
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Lock Elasticsearch account successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/unlock:
    patch:
      tags:
        - elasticsearch
        - shared
      summary: Unlock Elasticsearch account
      operationId: unlockElasticsearchSecurityUser
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: username
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Unlock Elasticsearch account successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles:
    get:
      tags:
        - elasticsearch
        - shared
      summary: List Elasticsearch security roles
      operationId: listElasticsearchSecurityRoles
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List Elasticsearch security roles successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ESSecurityRoles'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}:
    get:
      tags:
        - elasticsearch
        - shared
      summary: Get Elasticsearch security role
      operationId: getElasticsearchSecurityRole
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Get Elasticsearch security role successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ESSecurityRoleDescriptor'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    put:
      tags:
        - elasticsearch
        - shared
      summary: Create or update Elasticsearch security role
      operationId: putElasticsearchSecurityRole
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ESSecurityRoleDescriptor'
      responses:
        '204':
          content: {}
          description: Create or update Elasticsearch security role successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
    delete:
      tags:
        - elasticsearch
        - shared
      summary: Delete Elasticsearch security role
      operationId: deleteElasticsearchSecurityRole
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Delete Elasticsearch security role successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings:
    get:
      tags:
        - elasticsearch
        - shared
      summary: List Elasticsearch security role mappings
      operationId: listElasticsearchSecurityRoleMappings
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List Elasticsearch security role mappings successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ESSecurityRoleMappings'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}:
    get:
      tags:
        - elasticsearch
        - shared
      summary: Get Elasticsearch security role mapping
      operationId: getElasticsearchSecurityRoleMapping
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: mappingName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Get Elasticsearch security role mapping successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ESSecurityRoleMapping'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    put:
      tags:
        - elasticsearch
        - shared
      summary: Create or update Elasticsearch security role mapping
      operationId: putElasticsearchSecurityRoleMapping
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: mappingName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ESSecurityRoleMapping'
      responses:
        '204':
          content: {}
          description: Create or update Elasticsearch security role mapping successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
    delete:
      tags:
        - elasticsearch
        - shared
      summary: Delete Elasticsearch security role mapping
      operationId: deleteElasticsearchSecurityRoleMapping
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: mappingName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Delete Elasticsearch security role mapping successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/privileges/builtin:
    get:
      tags:
        - elasticsearch
        - shared
      summary: Get Elasticsearch builtin privileges
      operationId: getElasticsearchBuiltinPrivileges
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Get Elasticsearch builtin privileges successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ESBuiltinPrivileges'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      tags:
        - clickhouse
        - shared
      summary: List ClickHouse accounts
      operationId: listClickhouseAccounts
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List ClickHouse accounts successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CkAccount'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      tags:
        - clickhouse
        - shared
      summary: Create a ClickHouse account with optional roles
      operationId: createClickhouseAccount
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Create a ClickHouse account request.
              required:
                - name
                - password
              properties:
                name:
                  type: string
                  description: The account (user) name.
                password:
                  type: string
                  description: The account password.
                roles:
                  type: array
                  description: Roles to grant to the account on creation.
                  items:
                    type: string
      responses:
        '204':
          content: {}
          description: Create ClickHouse account successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
  /api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}:
    patch:
      tags:
        - clickhouse
        - shared
      summary: Update a ClickHouse account password
      operationId: updateClickhouseAccountPassword
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Update a ClickHouse account password request.
              required:
                - password
              properties:
                password:
                  type: string
                  description: The new account password.
      responses:
        '204':
          content: {}
          description: Update ClickHouse account password successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
    delete:
      tags:
        - clickhouse
        - shared
      summary: Delete a ClickHouse account
      operationId: deleteClickhouseAccount
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Delete ClickHouse account successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles:
    get:
      tags:
        - clickhouse
        - shared
      summary: List the roles granted to a ClickHouse account
      operationId: listClickhouseAccountRoles
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List ClickHouse account roles successfully.
          content:
            application/json:
              schema:
                type: object
                description: A ClickHouse role.
                properties:
                  name:
                    type: string
                    description: The role name.
                  privileges:
                    type: array
                    description: Privileges granted to the role, grouped by scope.
                    items:
                      type: object
                      description: A group of privileges granted on a scope.
                      properties:
                        scope:
                          type: string
                          description: The ON-clause operand of the grant, e.g. "db.*" or "*.*".
                        privileges:
                          type: array
                          items:
                            type: string
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    put:
      tags:
        - clickhouse
        - shared
      summary: Update the roles granted to a ClickHouse account
      operationId: updateClickhouseAccountRoles
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Update the roles granted to a ClickHouse account request.
              required:
                - roles
              properties:
                roles:
                  type: array
                  description: The full set of roles to grant to the account. Existing roles are replaced.
                  items:
                    type: string
      responses:
        '204':
          content: {}
          description: Update ClickHouse account roles successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
  /api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles:
    get:
      tags:
        - clickhouse
        - shared
      summary: List ClickHouse roles
      operationId: listClickhouseRoles
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: forCreateUser
          in: query
          required: false
          description: Whether to include built-in privilege roles for creating an account.
          schema:
            type: boolean
      responses:
        '200':
          description: List ClickHouse roles successfully.
          content:
            application/json:
              schema:
                type: array
                description: List of ClickHouse roles.
                items:
                  type: object
                  description: A ClickHouse role.
                  properties:
                    name:
                      type: string
                      description: The role name.
                    privileges:
                      type: array
                      description: Privileges granted to the role, grouped by scope.
                      items:
                        type: object
                        description: A group of privileges granted on a scope.
                        properties:
                          scope:
                            type: string
                            description: The ON-clause operand of the grant, e.g. "db.*" or "*.*".
                          privileges:
                            type: array
                            items:
                              type: string
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      tags:
        - clickhouse
        - shared
      summary: Create a ClickHouse role with privileges
      operationId: createClickhouseRole
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: A ClickHouse role.
              properties:
                name:
                  type: string
                  description: The role name.
                privileges:
                  type: array
                  description: Privileges granted to the role, grouped by scope.
                  items:
                    type: object
                    description: A group of privileges granted on a scope.
                    properties:
                      scope:
                        type: string
                        description: The ON-clause operand of the grant, e.g. "db.*" or "*.*".
                      privileges:
                        type: array
                        items:
                          type: string
      responses:
        '204':
          content: {}
          description: Create ClickHouse role successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
  /api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}:
    get:
      tags:
        - clickhouse
        - shared
      summary: Get the grants (privileges) of a ClickHouse role
      operationId: getClickhouseRoleGrants
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Get ClickHouse role grants successfully.
          content:
            application/json:
              schema:
                type: array
                description: Grants (privileges) of a ClickHouse role.
                items:
                  type: object
                  description: A single grant of a ClickHouse role.
                  properties:
                    accessType:
                      type: string
                      description: The access type of the grant.
                    database:
                      type: string
                      description: The database of the grant scope.
                    table:
                      type: string
                      description: The table of the grant scope.
                    scope:
                      type: string
                      description: The full grant scope, e.g. "db.*".
                    isPartialRevoke:
                      type: boolean
                      description: Whether the grant is a partial revoke.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      tags:
        - clickhouse
        - shared
      summary: Delete a ClickHouse role
      operationId: deleteClickhouseRole
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Delete ClickHouse role successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges:
    post:
      tags:
        - clickhouse
        - shared
      summary: Grant privileges to a ClickHouse role
      operationId: grantClickhouseRolePrivileges
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: A group of privileges granted on a scope.
              properties:
                scope:
                  type: string
                  description: The ON-clause operand of the grant, e.g. "db.*" or "*.*".
                privileges:
                  type: array
                  items:
                    type: string
      responses:
        '204':
          content: {}
          description: Grant ClickHouse role privileges successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
    delete:
      tags:
        - clickhouse
        - shared
      summary: Revoke privileges from a ClickHouse role
      operationId: revokeClickhouseRolePrivileges
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: roleName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Revoke privileges from a role request.
              required:
                - privileges
              properties:
                privileges:
                  type: array
                  items:
                    type: object
                    description: A single privilege granted on a scope.
                    properties:
                      scope:
                        type: string
                        description: The ON-clause operand of the grant, e.g. "db.*" or "*.*".
                      privilege:
                        type: string
      responses:
        '204':
          content: {}
          description: Revoke ClickHouse role privileges successfully.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
  /api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/privileges:
    get:
      tags:
        - clickhouse
        - shared
      summary: List privileges supported by the ClickHouse server
      operationId: listClickhousePrivileges
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List ClickHouse privileges successfully.
          content:
            application/json:
              schema:
                type: array
                description: All privileges supported by the ClickHouse server.
                items:
                  type: string
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/oracle/organizations/{orgName}/clusters/{clusterName}/tablespaces:
    get:
      tags:
        - oracle
      summary: List Oracle tablespaces
      description: List tablespaces for a Oracle cluster.
      operationId: listOracleTablespaces
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: Organization name
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: Cluster name
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OracleTablespace'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      tags:
        - oracle
      summary: Create Oracle tablespace
      description: Create tablespace for a Oracle cluster.
      operationId: createOracleTablespace
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: Organization name
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: Cluster name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OracleTablespaceCreate'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleTablespace'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/oracle/organizations/{orgName}/clusters/{clusterName}/tablespaces/{tablespaceName}:
    get:
      tags:
        - oracle
      summary: Get Oracle tablespace info
      operationId: getOracleTablespace
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: Organization name
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: Cluster name
        - name: tablespaceName
          in: path
          required: true
          schema:
            type: string
          description: Tablespace name
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleTablespace'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      tags:
        - oracle
      summary: Delete Oracle tablespace
      description: Delete tablespace for a Oracle cluster.
      operationId: deleteOracleTablespace
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: Organization name
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: Cluster name
        - name: tablespaceName
          in: path
          required: true
          schema:
            type: string
          description: Tablespace name
        - name: includingContents
          in: query
          schema:
            type: boolean
            default: false
          description: Explicitly delete all objects in the tablespace. Without this flag Oracle rejects nonempty tablespaces.
        - name: deleteDatafiles
          in: query
          schema:
            type: boolean
            default: false
          description: Also remove physical files. Requires includingContents. Otherwise manually managed files are retained.
      responses:
        '204':
          content: {}
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    patch:
      tags:
        - oracle
      summary: Expand Oracle tablespace
      description: Expand one existing datafile/tempfile or add one file in the current container.
      operationId: expandOracleTablespace
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: Organization name
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: Cluster name
        - name: tablespaceName
          in: path
          required: true
          schema:
            type: string
          description: Tablespace name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OracleTablespaceExpand'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OracleTablespace'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/damengdb/organizations/{orgName}/clusters/{clusterName}/tablespaces:
    get:
      tags:
        - dameng
      summary: List damengdb tablespaces
      description: List tablespaces for a Dameng cluster.
      operationId: listTablespaces
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: Organization name
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: Cluster name
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmTablespaceList'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      tags:
        - dameng
      summary: Create damengdb tablespace
      description: Create tablespace for a Dameng cluster.
      operationId: createTablespace
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: Organization name
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: Cluster name
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmTablespace'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmTablespace'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/damengdb/organizations/{orgName}/clusters/{clusterName}/tablespaces/{tablespaceName}:
    get:
      tags:
        - dameng
      summary: Get Dameng tablespace info
      operationId: getTablespace
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: Organization name
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: Cluster name
        - name: tablespaceName
          in: path
          required: true
          schema:
            type: string
          description: Tablespace name
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmTablespace'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      tags:
        - dameng
      summary: Delete damengdb tablespace
      description: Delete tablespace for a Dameng cluster.
      operationId: deleteTablespace
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: Organization name
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: Cluster name
        - name: tablespaceName
          in: path
          required: true
          schema:
            type: string
          description: Tablespace name
      responses:
        '204':
          content: {}
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    patch:
      tags:
        - dameng
      summary: Update damengdb tablespace
      description: Update tablespace for a Dameng cluster.
      operationId: updateTablespace
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
          description: Organization name
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
          description: Cluster name
        - name: tablespaceName
          in: path
          required: true
          schema:
            type: string
          description: Tablespace name
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmTablespace'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmTablespace'
          description: A successful response.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/console:
    get:
      tags:
        - dms
        - shared
      summary: get engine available console
      description: get engine available console
      operationId: getEngineAvailableConsole
      parameters:
        - name: engineName
          in: path
          description: name of the engine
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/console'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      tags:
        - dms
        - shared
      summary: disable console
      description: disable console
      operationId: disableConsole
      parameters:
        - name: engineName
          in: path
          description: name of the engine
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      responses:
        '204':
          description: disable console successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      tags:
        - dms
        - shared
      summary: enable console
      description: enable console
      operationId: enableConsole
      parameters:
        - name: engineName
          in: path
          description: name of the engine
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          description: name of the Org
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: name of the cluster
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DMSConsoleEnableOpt'
      responses:
        '204':
          description: enable console successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/demo:
    post:
      tags:
        - rdbms
        - shared
      description: generate demo data
      summary: generate demo data
      operationId: generateDemoData
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: acccount name which owns the database to generate demo data
          in: query
          name: accountName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when demo data is generated successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/dboptions:
    get:
      tags:
        - rdbms
        - shared
      description: get available options for creating database
      summary: get database options
      operationId: getDatabaseOptions
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: option type
          in: query
          name: type
          required: true
          schema:
            type: string
        - name: charset
          in: query
          description: specified charset
          required: false
          schema:
            type: string
        - name: filter
          in: query
          description: filter keyword
          required: false
          schema:
            type: string
      responses:
        '200':
          description: get database options success
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/databases:
    get:
      description: list databases for rdbms engine cluster
      summary: List cluster databases
      operationId: listDatabases
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/databaseList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - database
        - rdbms
        - shared
    post:
      description: create a database in cluster
      summary: Create cluster database
      operationId: createDatabase
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/database'
        required: true
      responses:
        '204':
          content: {}
          description: Returned when database is created successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - database
        - rdbms
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/databases/{databaseName}:
    get:
      description: get a database info in cluster
      operationId: getDatabase
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of database
          in: path
          name: databaseName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/database'
          description: Success
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - database
        - rdbms
        - shared
    delete:
      description: delete a database in cluster
      summary: Delete cluster database
      operationId: deleteDatabase
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of database
          in: path
          name: databaseName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - database
        - rdbms
        - shared
    patch:
      description: update a database config in cluster
      summary: update database config
      operationId: updateDatabaseConfig
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of database
          in: path
          name: databaseName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties:
                type: string
      responses:
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - database
        - rdbms
        - shared
  /api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      description: Lists SeaweedFS identities and access-key metadata without secret keys.
      summary: listSeaweedFSAccounts
      operationId: listSeaweedFSAccounts
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountList'
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '503':
          $ref: '#/components/responses/503'
      tags:
        - account
        - seaweedfs
        - shared
      x-codegen-request-body-name: body
    post:
      description: Creates a BASICUSER identity with named policies from extra.policies. Optional extra.accessKey and password select the credential; empty values are generated. The password is disclosed only in this response.
      summary: createSeaweedFSAccount
      operationId: createSeaweedFSAccount
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
        required: true
      responses:
        '201':
          description: Identity and initial credential created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '503':
          $ref: '#/components/responses/503'
      tags:
        - account
        - seaweedfs
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}:
    delete:
      description: delete an account in cluster
      summary: deleteSeaweedFSAccount
      operationId: deleteSeaweedFSAccount
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Identity deleted
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '503':
          $ref: '#/components/responses/503'
      tags:
        - account
        - seaweedfs
        - shared
    patch:
      description: Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
      summary: updateSeaweedFSAccount
      operationId: updateSeaweedFSAccount
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
        required: true
      responses:
        '200':
          description: Selected credential updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '503':
          $ref: '#/components/responses/503'
      tags:
        - account
        - seaweedfs
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password:
    get:
      description: get root account password
      summary: getRootSeaweedFSAccountPassword
      operationId: getRootSeaweedFSAccountPassword
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: query
          name: accountName
          required: true
          schema:
            type: string
        - description: name of the component
          in: query
          name: component
          required: false
          schema:
            type: string
      responses:
        '200':
          description: get root account password success
          content:
            application/json:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - account
        - seaweedfs
        - shared
  /api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges:
    patch:
      description: Unsupported for SeaweedFS. Use the named policy binding API instead.
      summary: updateSeaweedFSAccountPrivileges
      operationId: updateSeaweedFSAccountPrivileges
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/privilegeList'
        required: true
      responses:
        '400':
          $ref: '#/components/responses/400'
      tags:
        - account
        - seaweedfs
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies:
    get:
      summary: listSeaweedFSPolicies
      operationId: listSeaweedFSPolicies
      tags:
        - account
        - seaweedfs
        - shared
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      required:
                        - name
                        - document
                      properties:
                        name:
                          type: string
                        document:
                          type: object
                          additionalProperties: true
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '503':
          $ref: '#/components/responses/503'
  /api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}:
    put:
      summary: putSeaweedFSPolicy
      operationId: putSeaweedFSPolicy
      tags:
        - account
        - seaweedfs
        - shared
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: path
          name: policyName
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Successful response
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '503':
          $ref: '#/components/responses/503'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
    delete:
      summary: deleteSeaweedFSPolicy
      operationId: deleteSeaweedFSPolicy
      tags:
        - account
        - seaweedfs
        - shared
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: path
          name: policyName
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Successful response
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '503':
          $ref: '#/components/responses/503'
      description: Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
  /api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies:
    put:
      summary: bindSeaweedFSPolicies
      operationId: bindSeaweedFSPolicies
      tags:
        - account
        - seaweedfs
        - shared
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: path
          name: accountName
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Successful response
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '503':
          $ref: '#/components/responses/503'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - policies
              properties:
                policies:
                  type: array
                  items:
                    type: string
      description: Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
  /api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys:
    post:
      summary: createSeaweedFSAccessKey
      operationId: createSeaweedFSAccessKey
      tags:
        - account
        - seaweedfs
        - shared
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: path
          name: accountName
          required: true
          schema:
            type: string
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '503':
          $ref: '#/components/responses/503'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
      description: Creates a credential on the identity. Account.name must match accountName, role must be BASICUSER. Optional extra.accessKey and password select the access key and secret key; omitted or empty values are generated. The returned password is disclosed only in this response.
  /api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}:
    delete:
      summary: deleteSeaweedFSAccessKey
      operationId: deleteSeaweedFSAccessKey
      tags:
        - account
        - seaweedfs
        - shared
      parameters:
        - in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: clusterName
          required: true
          schema:
            type: string
        - in: path
          name: accountName
          required: true
          schema:
            type: string
        - in: path
          name: accessKey
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Successful response
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '503':
          $ref: '#/components/responses/503'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      description: list accounts in cluster
      summary: List cluster accounts
      operationId: listAccounts
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountList'
          description: Success
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - rdbms
        - shared
      x-codegen-request-body-name: body
    post:
      description: create an account in cluster
      summary: Create cluster account
      operationId: createAccount
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
        required: true
      responses:
        '201':
          description: create redis account success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - rdbms
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}:
    delete:
      description: delete an account in cluster
      summary: Delete cluster account
      operationId: deleteAccount
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - rdbms
        - shared
    patch:
      description: update an account in cluster
      summary: update cluster account
      operationId: updateAccount
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
        required: true
      responses:
        '204':
          content: {}
          description: Update account password successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - rdbms
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/root-password:
    get:
      description: get root account password
      summary: get root account password
      operationId: getRootAccountPassword
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: query
          name: accountName
          required: true
          schema:
            type: string
        - description: name of the component
          in: query
          name: component
          required: false
          schema:
            type: string
      responses:
        '200':
          description: get root account password success
          content:
            application/json:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - account
        - shared
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges:
    get:
      tags:
        - account
        - rdbms
        - shared
      summary: Inspect native object and column privileges
      operationId: getAccountObjectPrivileges
      description: Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
      parameters:
        - name: engineName
          in: path
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
        - name: objectType
          in: query
          required: true
          schema:
            type: string
        - name: databaseName
          in: query
          required: false
          schema:
            type: string
        - name: schemaName
          in: query
          required: false
          schema:
            type: string
        - name: objectName
          in: query
          required: false
          schema:
            type: string
        - name: objectId
          in: query
          required: false
          schema:
            type: string
        - name: subjectType
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
          description: Native subject kind; path account name identifies the subject.
        - name: host
          in: query
          required: false
          schema:
            type: string
          description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
        - name: catalogName
          in: query
          required: false
          schema:
            type: string
        - name: subjectQualifiers
          in: query
          required: false
          schema:
            type: string
          description: JSON object of string identity qualifiers, e.g. {"host":"%"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
      responses:
        '200':
          description: Native privilege snapshot
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectPrivilegeSnapshot'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    patch:
      tags:
        - account
        - rdbms
        - shared
      summary: Grant or revoke native object and column privileges
      operationId: changeAccountObjectPrivileges
      description: Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
      parameters:
        - name: engineName
          in: path
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
        - name: subjectType
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
          description: Native subject kind; path account name identifies the subject.
        - name: host
          in: query
          required: false
          schema:
            type: string
          description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
        - name: subjectQualifiers
          in: query
          required: false
          schema:
            type: string
          description: JSON object of string identity qualifiers, e.g. {"host":"%"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ObjectPrivilegeChange'
      responses:
        '204':
          description: Native statement completed. Query privileges again to inspect remaining access.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/capabilities:
    get:
      tags:
        - account
        - rdbms
        - shared
      summary: List native object privilege capabilities for the connected server
      operationId: getAccountObjectPrivilegeCapabilities
      description: Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
      parameters:
        - name: engineName
          in: path
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Native privilege snapshot
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectPrivilegeCapabilities'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/overview:
    get:
      tags:
        - account
        - rdbms
        - shared
      summary: Read native account privilege summary or selected database evidence
      operationId: getAccountPrivilegeOverview
      description: Without databaseName, returns role attributes, memberships, database access summaries and shared ACLs without connecting to other databases. PostgreSQL databaseName reads schema, object, ownership and PUBLIC evidence from that database only. Failed reads return an error, never an empty grant list. SQL is read-only evidence, not an exhaustive effective-access decision.
      parameters:
        - name: engineName
          in: path
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
        - name: subjectType
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
          description: Native subject kind; path account name identifies the subject.
        - name: host
          in: query
          required: false
          schema:
            type: string
          description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
        - name: subjectQualifiers
          in: query
          schema:
            type: string
        - name: databaseName
          in: query
          description: PostgreSQL database to inspect on demand. Omit for the global summary.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Native evidence groups for the requested scope
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ObjectPrivilegeEvidence'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset:
    get:
      tags:
        - account
        - rdbms
        - shared
      summary: Preview clearing explicit account privileges
      operationId: previewAccountPrivilegeReset
      description: MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
      parameters:
        - name: engineName
          in: path
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
        - name: subjectType
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
          description: Native subject kind; path account name identifies the subject.
        - name: host
          in: query
          required: false
          schema:
            type: string
          description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
        - name: subjectQualifiers
          in: query
          schema:
            type: string
          description: JSON identity qualifiers; MySQL host defaults to %.
        - name: databaseNames
          in: query
          style: form
          explode: true
          description: PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
          schema:
            type: array
            items:
              type: string
        - name: allDatabases
          in: query
          description: PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Server-generated steps with connection database, in execution order
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ObjectPrivilegeResetStep'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      tags:
        - account
        - rdbms
        - shared
      summary: Clear explicit account privileges
      operationId: resetAccountPrivileges
      description: MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
      parameters:
        - name: engineName
          in: path
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
        - name: subjectType
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
          description: Native subject kind; path account name identifies the subject.
        - name: host
          in: query
          required: false
          schema:
            type: string
          description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
        - name: subjectQualifiers
          in: query
          schema:
            type: string
          description: JSON identity qualifiers; MySQL host defaults to %.
        - name: databaseNames
          in: query
          style: form
          explode: true
          description: PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
          schema:
            type: array
            items:
              type: string
        - name: allDatabases
          in: query
          description: PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
          schema:
            type: boolean
            default: false
      responses:
        '204':
          description: Privileges cleared; account and password preserved
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/columns:
    get:
      tags:
        - account
        - rdbms
        - shared
      summary: List exact column names for account object privileges
      operationId: listAccountObjectPrivilegeColumns
      description: Read MySQL or PostgreSQL relation column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
      parameters:
        - name: engineName
          in: path
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
        - name: objectType
          in: query
          required: true
          description: Object type, table/view; PostgreSQL also supports materializedView/foreignTable
          schema:
            type: string
        - name: databaseName
          in: query
          required: true
          schema:
            type: string
        - name: objectName
          in: query
          required: true
          schema:
            type: string
        - name: schemaName
          in: query
          description: Required for PostgreSQL; not accepted for MySQL
          schema:
            type: string
      responses:
        '200':
          description: Exact column names in catalog order; empty if no visible columns exist
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/objects:
    get:
      tags:
        - account
        - rdbms
        - shared
      summary: Discover existing native privilege objects with stable routine identities
      operationId: listAccountObjectPrivilegeObjects
      description: Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
      parameters:
        - name: engineName
          in: path
          required: true
          schema:
            type: string
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          required: true
          schema:
            type: string
        - name: accountName
          in: path
          required: true
          schema:
            type: string
        - name: objectType
          in: query
          required: true
          schema:
            type: string
        - name: databaseName
          in: query
          required: false
          schema:
            type: string
        - name: schemaName
          in: query
          required: false
          schema:
            type: string
        - name: offset
          in: query
          schema:
            type: integer
            format: int64
            minimum: 0
            default: 0
        - name: limit
          in: query
          schema:
            type: integer
            format: int64
            minimum: 1
            maximum: 200
            default: 100
        - name: catalogName
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Native privilege snapshot
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectPrivilegeObjectList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges:
    patch:
      description: update account privileges for rdbms engine
      summary: update account privileges
      operationId: updateAccountPrivileges
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/privilegeList'
        required: true
      responses:
        '204':
          content: {}
          description: Returned when account privileges are updated successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - rdbms
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/lock:
    patch:
      description: lock an account in cluster
      summary: Lock cluster account
      operationId: lockAccount
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when account is locked successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - rdbms
        - shared
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/unlock:
    patch:
      description: unlock an account in cluster
      summary: Unlock cluster account
      operationId: unlockAccount
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when account is unlocked successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - rdbms
        - shared
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys:
    get:
      description: list MinIO service account access keys
      summary: List MinIO access keys
      operationId: listServiceAccounts
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: MinIO user that owns the service accounts
          in: query
          name: userName
          required: false
          schema:
            type: string
      responses:
        '200':
          description: list MinIO access keys success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsServiceAccountList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - account
        - rdbms
        - shared
    post:
      description: create a MinIO service account access key
      summary: Create MinIO access key
      operationId: createServiceAccount
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmsServiceAccountCreateRequest'
        required: true
      responses:
        '201':
          description: create MinIO access key success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsServiceAccount'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - account
        - rdbms
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}:
    get:
      description: get a MinIO service account access key
      summary: Get MinIO access key
      operationId: getServiceAccount
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: MinIO access key
          in: path
          name: accessKey
          required: true
          schema:
            type: string
      responses:
        '200':
          description: get MinIO access key success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsServiceAccount'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - account
        - rdbms
        - shared
    patch:
      description: update a MinIO service account access key
      summary: Update MinIO access key
      operationId: updateServiceAccount
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: MinIO access key
          in: path
          name: accessKey
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DmsServiceAccountUpdateRequest'
        required: true
      responses:
        '200':
          description: update MinIO access key success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsServiceAccount'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - account
        - rdbms
        - shared
      x-codegen-request-body-name: body
    delete:
      description: delete a MinIO service account access key
      summary: Delete MinIO access key
      operationId: deleteServiceAccount
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: MinIO access key
          in: path
          name: accessKey
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when access key is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - account
        - rdbms
        - shared
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/sessions:
    get:
      description: list sessions in cluster
      summary: List cluster sessions
      operationId: listSessions
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - name: all
          in: query
          description: whether list all session includes sleep
          default: true
          schema:
            type: boolean
      responses:
        '200':
          description: list all session success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DmsSessionList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
      tags:
        - session
        - rdbms
        - shared
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/sessions/{session}:
    delete:
      description: kill a session in cluster
      summary: Kill cluster session
      operationId: killSession
      parameters:
        - description: name of the engine
          in: path
          name: engineName
          required: true
          schema:
            type: string
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: session id; for Redis, use the numeric CLIENT LIST client id
          in: path
          name: session
          required: true
          schema:
            type: string
        - description: if keep is true, the session will not be killed but only closed
          in: query
          name: keep
          schema:
            type: boolean
      responses:
        '204':
          content: {}
          description: Returned when session is killed successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - session
        - rdbms
        - shared
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      description: list accounts in mongodb
      summary: List mongodb accounts
      operationId: listMongoDBAccounts
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accountList'
          description: Success
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - mongodb
        - shared
      x-codegen-request-body-name: body
    post:
      description: create an account in mongodb
      summary: Create mongodb account
      operationId: createMongoDBAccount
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
        required: true
      responses:
        '201':
          description: create redis account success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - mongodb
        - shared
      x-codegen-request-body-name: body
  /api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}:
    delete:
      description: delete an account in mongodb
      summary: Delete mongodb account
      operationId: deleteMongoDBAccount
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: accountName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - mongodb
        - shared
  /api/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles:
    get:
      summary: List Milvus roles
      description: List Milvus native roles and their privilege grants.
      operationId: listMilvusRoles
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      tags:
        - account
        - milvus
        - shared
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MilvusRoleList'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: Create Milvus role
      description: Create a Milvus native role and grant its initial privileges.
      operationId: createMilvusRole
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      tags:
        - account
        - milvus
        - shared
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MilvusRoleCreateRequest'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MilvusRole'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
  /api/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}:
    get:
      summary: Get Milvus role
      description: Get a Milvus native role and its privilege grants.
      operationId: getMilvusRole
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the Milvus role
          in: path
          name: roleName
          required: true
          schema:
            type: string
      tags:
        - account
        - milvus
        - shared
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MilvusRole'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    put:
      summary: Update Milvus role
      description: Update an existing Milvus native role by replacing its privilege grants.
      operationId: updateMilvusRole
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the Milvus role
          in: path
          name: roleName
          required: true
          schema:
            type: string
      tags:
        - account
        - milvus
        - shared
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MilvusRoleRequest'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MilvusRole'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
    delete:
      summary: Delete Milvus role
      description: Delete a Milvus native role.
      operationId: deleteMilvusRole
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the Milvus role
          in: path
          name: roleName
          required: true
          schema:
            type: string
      tags:
        - account
        - milvus
        - shared
      responses:
        '204':
          description: A successful response.
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}:
    patch:
      summary: Update Milvus account password
      description: Update a Milvus account password.
      operationId: updateMilvusAccountPassword
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the Account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      tags:
        - account
        - milvus
        - shared
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MilvusAccountPassword'
      responses:
        '204':
          description: A successful response.
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
  /api/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles:
    put:
      summary: Update Milvus account roles
      description: Replace a Milvus account's role assignments.
      operationId: updateMilvusAccountRoles
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the Account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      tags:
        - account
        - milvus
        - shared
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MilvusAccountRoles'
      responses:
        '204':
          description: A successful response.
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      x-codegen-request-body-name: body
  /api/v1/data/mssql/organizations/{orgName}/clusters/{clusterName}/accounts:
    delete:
      operationId: deleteMssqlAccount
      summary: delete mssql account compatible with windows account
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the account
          in: query
          name: account
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when project is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - account
        - mssql
        - shared
    patch:
      operationId: updateMssqlAccount
      summary: update mssql account compatible with windows account
      tags:
        - account
        - mssql
        - shared
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account'
      responses:
        '204':
          content: {}
          description: Update mssql account successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/data/mssql/organizations/{orgName}/clusters/{clusterName}/tde:
    patch:
      operationId: manageMssqlTDEDatabase
      summary: batch modify database tde status
      tags:
        - mssql
        - shared
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dbTDERequest'
      responses:
        '204':
          content: {}
          description: Enable mssql database in tde successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/postgresql/organizations/{orgName}/clusters/{clusterName}/extensions:
    get:
      summary: List PostgreSQL extensions
      description: List PostgreSQL extensions
      operationId: listPGExtensions
      tags:
        - postgresql
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - name: status
          in: query
          description: extension status, if set to `installed`, only installed extensions will be returned. If not specified, all available extensions will be returned.
          required: false
          schema:
            type: string
        - name: database
          in: query
          description: database name. This parameter is only used when status is installed; if not specified, all databases installed extensions will be returned.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PgExtensionList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: Enable PostgreSQL extensions in selected databases
      description: Enable one or more PostgreSQL extensions across selected databases, returning a result for each database-extension pair.
      operationId: createPGExtension
      tags:
        - postgresql
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PgCreateExtensionOpt'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/createPgExtensionResp'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/postgresql/organizations/{orgName}/clusters/{clusterName}/extensions/{extensionName}:
    delete:
      summary: drop PostgreSQL extension
      description: drop PostgreSQL extension
      operationId: dropPGExtension
      tags:
        - postgresql
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - description: name of the cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - name: extensionName
          in: path
          description: The name of the PostgreSQL extension to uninstall.
          required: true
          schema:
            type: string
        - name: database
          in: query
          description: The database where the extension is installed.
          required: true
          schema:
            type: string
      responses:
        '204':
          description: OK
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/rabbitmq/organizations/{orgName}/clusters/{clusterName}/accounts:
    get:
      summary: List RabbitMQ accounts
      description: List all RabbitMQ accounts
      operationId: listRabbitAccounts
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      tags:
        - RabbitMQ
        - account
        - shared
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RbmqAccountsList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: Create RabbitMQ account
      description: Create a new RabbitMQ account
      operationId: createRabbitAccount
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      tags:
        - RabbitMQ
        - account
        - shared
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RbmqAccountRequest'
      responses:
        '201':
          description: A successful response.
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/rabbitmq/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}:
    delete:
      summary: Delete RabbitMQ account
      description: Delete a RabbitMQ account
      operationId: deleteRabbitAccount
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the Account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      tags:
        - RabbitMQ
        - account
        - shared
      responses:
        '204':
          description: A successful response.
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    patch:
      summary: Update RabbitMQ account password
      description: Update a RabbitMQ account password
      operationId: updateRabbitAccountPassword
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the Account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      tags:
        - RabbitMQ
        - account
        - shared
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RbmqPasswordUpdateRequest'
      responses:
        '204':
          description: A successful response.
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/rabbitmq/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges:
    put:
      summary: Update RabbitMQ account privileges
      description: Update a RabbitMQ account privileges
      operationId: updateRabbitAccountPrivileges
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
        - description: name of the Account
          in: path
          name: accountName
          required: true
          schema:
            type: string
      tags:
        - RabbitMQ
        - account
        - shared
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RbmqPermission'
      responses:
        '204':
          description: A successful response.
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/rabbitmq/organizations/{orgName}/clusters/{clusterName}/vhosts:
    get:
      summary: List RabbitMQ vhosts
      description: List RabbitMQ vhosts
      operationId: listRabbitVHosts
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      tags:
        - RabbitMQ
        - vhost
        - shared
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RbmqVHostList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/data/rabbitmq/organizations/{orgName}/clusters/{clusterName}/exchanges:
    get:
      summary: List RabbitMQ exchanges
      description: List RabbitMQ exchanges
      operationId: listRabbitExchanges
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: name of the Cluster
          in: path
          name: clusterName
          required: true
          schema:
            type: string
      tags:
        - RabbitMQ
        - exchange
        - shared
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RbmqExchangeList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/llm/models:
    get:
      tags:
        - llm
      operationId: listAvailableModelInOrg
      summary: List available model in org
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/ai-agent/status:
    get:
      tags:
        - AI Agent
      operationId: getAIAgentStatus
      summary: Get AI diagnosis agent status
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: AI diagnosis agent runtime status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentRuntimeStatus'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/ai-agent/conversations:
    get:
      tags:
        - AI Agent
      operationId: listAIAgentConversations
      summary: List AI diagnosis conversations
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 30
        - name: after
          in: query
          required: false
          schema:
            type: string
        - name: clusterName
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: AI diagnosis conversations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentConversationList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
    post:
      tags:
        - AI Agent
      operationId: createAIAgentConversation
      summary: Create an AI diagnosis conversation
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/aiAgentCreateConversationRequest'
      responses:
        '200':
          description: AI diagnosis conversation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentConversation'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}:
    get:
      tags:
        - AI Agent
      operationId: getAIAgentConversation
      summary: Get an AI diagnosis conversation
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: AI diagnosis conversation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentConversation'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      tags:
        - AI Agent
      operationId: deleteAIAgentConversation
      summary: Delete an AI diagnosis conversation
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: AI diagnosis conversation deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentDeleteConversationResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/messages:
    get:
      tags:
        - AI Agent
      operationId: listAIAgentMessages
      summary: List AI diagnosis conversation messages
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
        - name: after
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
      responses:
        '200':
          description: AI diagnosis messages
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentMessageList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    post:
      tags:
        - AI Agent
      operationId: sendAIAgentMessage
      summary: Send a user message and start or continue AI diagnosis
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/aiAgentSendMessageRequest'
      responses:
        '200':
          description: AI diagnosis message accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentSendMessageResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
        '503':
          $ref: '#/components/responses/503'
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions:
    get:
      tags:
        - AI Agent
      operationId: listAIAgentTurnActions
      summary: List stable AI diagnosis turn process actions
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
        - name: turnId
          in: query
          required: false
          schema:
            type: string
        - name: after
          in: query
          description: Raw action cursor from the preceding response's nextCursor.
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: Raw action page budget. The last turn is read in full before coalescing; use hasMore and nextCursor rather than the returned item count.
          required: false
          schema:
            type: integer
            default: 100
      responses:
        '200':
          description: Stable AI diagnosis process actions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentTurnActionList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions/{actionId}:
    get:
      tags:
        - AI Agent
      operationId: getAIAgentTurnAction
      summary: Get one stable AI diagnosis turn process action
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
        - name: actionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: AI diagnosis process action detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentTurnAction'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions/{actionId}/artifacts/{artifactId}/browse:
    get:
      tags:
        - AI Agent
      operationId: browseAIAgentTurnActionArtifact
      summary: Browse a generated AI diagnosis report artifact
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
        - name: actionId
          in: path
          required: true
          schema:
            type: string
        - name: artifactId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Generated report artifact content for browser preview
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        '503':
          $ref: '#/components/responses/503'
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions/{actionId}/artifacts/{artifactId}/download:
    get:
      tags:
        - AI Agent
      operationId: downloadAIAgentTurnActionArtifact
      summary: Download a generated AI diagnosis report artifact
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
        - name: actionId
          in: path
          required: true
          schema:
            type: string
        - name: artifactId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Generated report artifact content
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
        '503':
          $ref: '#/components/responses/503'
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/events:
    get:
      tags:
        - AI Agent
      operationId: subscribeAIAgentConversationEvents
      summary: Subscribe to AI diagnosis conversation events
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
        - name: after
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: AI diagnosis event stream
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/aiAgentEvent'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/tool-confirmations/{confirmationId}/approve:
    post:
      tags:
        - AI Agent
      operationId: approveAIAgentToolConfirmation
      summary: Approve one AI diagnosis tool confirmation
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
        - name: confirmationId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/aiAgentToolConfirmationDecisionRequest'
      responses:
        '200':
          description: Tool confirmation approved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentToolConfirmationDecisionResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/tool-confirmations/{confirmationId}/reject:
    post:
      tags:
        - AI Agent
      operationId: rejectAIAgentToolConfirmation
      summary: Reject one AI diagnosis tool confirmation
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
        - name: confirmationId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/aiAgentToolConfirmationDecisionRequest'
      responses:
        '200':
          description: Tool confirmation rejected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentToolConfirmationDecisionResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/stop:
    post:
      tags:
        - AI Agent
      operationId: stopAIAgentConversation
      summary: Stop the current AI diagnosis turn
      parameters:
        - name: orgName
          in: path
          required: true
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: AI diagnosis conversation stopped
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aiAgentStopConversationResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/keys:
    get:
      tags:
        - key
      operationId: listKeys
      summary: List Keys
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/keyList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
  /api/v1/dashboardConfigs/{key}:
    get:
      parameters:
        - $ref: '#/components/parameters/dashboardConfigKey'
      tags:
        - dashboardConfig
      operationId: getDashboardConfig
      summary: Get dashboard configuration by key
      description: Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
      responses:
        '200':
          description: Stored configuration or a null value for a missing key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dashboardConfig'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '500':
          $ref: '#/components/responses/500'
  /api/v1/platformParameters:
    get:
      tags:
        - platformParameter
      operationId: listPlatformParameters
      summary: list platformParameters
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/platformParameterList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/platformParameters/{platformParameterName}:
    get:
      tags:
        - platformParameter
        - shared
      operationId: getPlatformParameter
      summary: get platformParameter by name
      parameters:
        - description: name of the platformParameter
          in: path
          name: platformParameterName
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/platformParameter'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/environments/{environmentName}/storages:
    get:
      operationId: listStorages
      summary: List storages
      parameters:
        - description: name of the environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
        - name: name
          description: the search key to search storage's name
          in: query
          schema:
            type: string
        - name: key
          description: key to search storage's tag
          in: query
          schema:
            type: string
        - name: value
          description: value to search storage's tag
          in: query
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/storageList'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - storage
  /api/v1/environments/{environmentName}/storages/{storageName}:
    get:
      operationId: getStorage
      summary: Get a storage
      parameters:
        - description: name of the environment
          in: path
          name: environmentName
          required: true
          schema:
            type: string
        - description: name of the storage
          in: path
          name: storageName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/storage'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
      tags:
        - storage
  /api/v1/organizations/{orgName}/replication/channel:
    get:
      operationId: listDataChannels
      summary: List Data Channels
      description: Retrieve a list of data channels.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The name of the data channel
          in: query
          name: name
          required: false
          schema:
            type: string
        - description: The status of the data channel
          in: query
          name: status
          required: false
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataChannelList'
          description: A list of data channels.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
    post:
      operationId: createDataChannel
      summary: Create a new data channel
      description: Create a new data channel.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dataReplicationCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataChannelResponse'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/replication/channel/{channelID}:
    get:
      operationId: getDataChannel
      summary: Get Data Channel Details
      description: Retrieve a data channel detail.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the data channel
          in: path
          name: channelID
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataChannelDetail'
          description: A detail of data channel.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
    delete:
      operationId: deleteDataChannel
      summary: Delete a data channel
      description: Delete a data channel.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the data channel
          in: path
          name: channelID
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when channel is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
    patch:
      operationId: updateDataChannel
      summary: Update a data channel
      description: Update a new data channel.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the data channel
          in: path
          name: channelID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dataReplicationUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataChannelResponse'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/replication/channel/{channelID}/ops/{opsType}:
    post:
      operationId: createDataChannelOps
      summary: Create a new data channel ops
      description: Create a new data channel ops.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the data channel
          in: path
          name: channelID
          required: true
          schema:
            type: string
        - description: The operation type
          in: path
          name: opsType
          required: true
          schema:
            $ref: '#/components/schemas/dataReplicationOpsType'
      responses:
        '204':
          content: {}
          description: Returned when operation is completed successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
  /api/v1/organizations/{orgName}/replication/channel/{channelID}/events:
    get:
      operationId: listDataChannelEvents
      summary: List Data Channel Events
      description: Retrieve a list of data channel events.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the data channel
          in: path
          name: channelID
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataReplicationEventList'
          description: A list of data channel events.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
  /api/v1/organizations/{orgName}/replication/channel/objects:
    post:
      operationId: queryReplicationObject
      summary: query replication object
      description: query replication object.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/replicationObjectQuery'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/replicationObjectTree'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - dataReplication
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/replication/channel/precheck:
    post:
      operationId: createPreCheck
      summary: create pre check
      description: create pre check.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/preCheckCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/preCheckTaskResponse'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/replication/channel/precheck/{preCheckID}:
    get:
      operationId: getPreCheck
      summary: get preCheck
      description: get preCheck.
      parameters:
        - description: The ID of the preCheck task
          in: path
          name: preCheckID
          required: true
          schema:
            type: string
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/preCheckTaskDetail'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
    delete:
      deprecated: true
      operationId: deletePreCheck
      summary: delete preCheck
      description: delete preCheck.
      parameters:
        - description: The ID of the preCheck task
          in: path
          name: preCheckID
          required: true
          schema:
            type: string
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when preCheck is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
  /api/v1/organizations/{orgName}/replication/channel/{channelID}/logs:
    get:
      description: Query logs of a data channel
      summary: Query data channel logs
      operationId: queryDataChannelLogs
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: channelID
          required: true
          schema:
            type: string
        - in: query
          name: moduleName
          schema:
            type: string
        - in: query
          name: containerName
          schema:
            type: string
          required: false
        - in: query
          name: limit
          schema:
            type: string
      responses:
        '200':
          content:
            text/plain:
              schema:
                type: string
          description: channel logs output
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
  /api/v1/organizations/{orgName}/replication/channel/{channelID}/containers:
    get:
      description: Query containers of a data channel module pod
      summary: Query data channel module pod containers
      operationId: queryDataChannelContainers
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - in: path
          name: channelID
          required: true
          schema:
            type: string
        - in: query
          name: moduleName
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/dataReplicationChannelContainer'
          description: A list of data channel module containers.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
  /api/v1/organizations/{orgName}/replication/channel/parameters:
    get:
      operationId: listDataChannelParameters
      summary: List Data Channel Parameters
      description: Retrieve a list of data channel parameters.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The name of the standard definition
          in: query
          name: standardName
          schema:
            type: string
        - description: The ID of the data channel
          in: query
          name: channelID
          schema:
            type: string
        - description: The source EngineDeifnition name
          in: query
          name: source
          schema:
            type: string
        - description: The target EngineDeifnition name
          in: query
          name: target
          schema:
            type: string
        - description: The module name
          in: query
          name: moduleName
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataReplicationParametersResponse'
          description: A list of data channel parameters.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
  /api/v1/organizations/{orgName}/replication/endpoints:
    get:
      operationId: listDataEndpoints
      summary: List Data Endpoints
      description: Retrieve a list of data endpoints.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The name of the data endpoint
          in: query
          name: name
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataEndpointList'
          description: A list of data endpoints.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
    post:
      operationId: createDataEndpoint
      summary: Create a new data endpoint
      description: Create a new data endpoint.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dataEndpointCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataEndpointResponse'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/replication/endpoint/{endpointID}:
    get:
      operationId: getDataEndpoint
      summary: Get Data Endpoint Details
      description: Retrieve a data endpoint detail.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the data endpoint
          in: path
          name: endpointID
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataChannelListEndpoint'
          description: A detail of data endpoint.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
    delete:
      operationId: deleteDataEndpoint
      summary: Delete a data endpoint
      description: Delete a data endpoint.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the data endpoint
          in: path
          name: endpointID
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when endpoint is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
    patch:
      operationId: updateDataEndpoint
      summary: Update a data endpoint
      description: Update an existing data endpoint.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the data endpoint
          in: path
          name: endpointID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dataEndpointCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataEndpointResponse'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/checks:
    get:
      operationId: listDataChecks
      summary: List Data Checks
      description: Retrieve a list of standalone data checks.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The name of the check
          in: query
          name: name
          required: false
          schema:
            type: string
        - description: The status of the check
          in: query
          name: status
          required: false
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataCheckList'
          description: A list of checks.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
    post:
      operationId: createDataCheck
      summary: Create a data check
      description: 'Create an independent data check. The request must use exactly one entry point: provide channelID with checkType, or provide the full direct check configuration.'
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dataCheckCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataCheckResponse'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/checks/{checkID}:
    get:
      operationId: getDataCheck
      summary: Get Data Check
      description: Retrieve a standalone data check detail.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the check
          in: path
          name: checkID
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataCheckItem'
          description: A check detail.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
    delete:
      operationId: deleteDataCheck
      summary: Delete a data check
      description: Delete a standalone data check and its runtime resources.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the check
          in: path
          name: checkID
          required: true
          schema:
            type: string
      responses:
        '204':
          content: {}
          description: Returned when check is deleted successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
  /api/v1/organizations/{orgName}/checks/{checkID}/details:
    get:
      operationId: getDataCheckDetails
      summary: Get Data Check Difference Details
      description: Read typed check miss or diff details from the latest parsed check result.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the check
          in: path
          name: checkID
          required: true
          schema:
            type: string
        - description: The detail type
          in: query
          name: type
          required: true
          schema:
            $ref: '#/components/schemas/dataCheckDetailType'
        - description: Source schema or database. Required for snapshot checks.
          in: query
          name: schema
          required: false
          schema:
            type: string
        - description: Source table. Required for snapshot checks.
          in: query
          name: table
          required: false
          schema:
            type: string
        - description: Struct object key. Optional for struct checks; omitted to page all struct details.
          in: query
          name: key
          required: false
          schema:
            type: string
        - description: Page number for pagination.
          in: query
          name: page
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
        - description: Number of items per page.
          in: query
          name: pageSize
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dataCheckDetails'
          description: A successful response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
  /api/v1/organizations/{orgName}/checks/{checkID}/sqlLogs:
    get:
      operationId: getDataCheckSQLLogs
      summary: Get Data Check SQL Logs
      description: Read raw SQL lines emitted by check sql_logger entries.
      parameters:
        - description: The Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the check
          in: path
          name: checkID
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            text/plain:
              schema:
                type: string
          description: Raw SQL lines.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - dataReplication
  /api/v1/organizations/{orgName}/clusters/{clusterName}/import/preflight:
    post:
      tags:
        - import
        - shared
      summary: Data source preflight check
      description: Initiates async validation with the selected source configuration
      operationId: importPreflight
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
      requestBody:
        required: true
        description: Data source connection configuration and selection rules
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportPreflightRequest'
      responses:
        '200':
          description: Preflight initiated successfully, returns task ID for querying results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/preCheckTaskResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/import/preflight/{taskId}:
    get:
      tags:
        - import
        - shared
      summary: Get preflight task details
      description: Retrieves detailed information about a specific data import preflight task by its ID
      operationId: getImportPreflightTask
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: taskId
          in: path
          description: Preflight task ID
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successfully returns preflight task details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/preCheckTaskDetail'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/import/objects:
    post:
      tags:
        - import
        - shared
      summary: Query replication objects for import
      description: |
        Enumerates replication objects (databases, schemas, tables, etc.) for the requested node. The metadata levels depend on the source engine (for example MySQL uses `database -> table`, PostgreSQL uses `schema -> table`).
      operationId: queryImportObjects
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
      requestBody:
        required: true
        description: Connection configuration and current object tree position
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportQueryObjectsRequest'
      responses:
        '200':
          description: Object tree nodes retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/replicationObjectTree'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '501':
          $ref: '#/components/responses/501'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/import:
    get:
      tags:
        - import
        - shared
      summary: Query import task list
      description: Gets import task list for specified cluster, supports filtering by status and pagination
      operationId: listImportTask
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successfully returns task list with pagination info
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportTaskListResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    post:
      tags:
        - import
        - shared
      summary: Create import task
      description: Creates new data import task based on data source configuration and import options
      operationId: createImportTask
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
      requestBody:
        required: true
        description: Import task configuration including data source connection, object selection and import options
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportTaskCreateRequest'
      responses:
        '201':
          description: Task created successfully, returns basic task information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportTaskResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/import/{id}:
    get:
      tags:
        - import
        - shared
      summary: Get import task details
      description: Gets detailed information about a specific import task by its ID
      operationId: getImportTask
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: Import task ID
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successfully returns import task details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportTaskResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    delete:
      tags:
        - import
        - shared
      summary: Delete import task
      description: Stops and deletes specified import task, will clean up related Kubernetes resources
      operationId: deleteImportTask
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: Import task ID
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Task deleted successfully
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/clusters/{clusterName}/import/{id}/ops/{opsType}:
    patch:
      tags:
        - import
        - shared
      summary: Create a import task operation
      description: Performs pause or resume operation on import task based on opsType parameter
      operationId: updateImportTaskOps
      parameters:
        - name: orgName
          in: path
          description: Organization name
          required: true
          schema:
            type: string
        - name: clusterName
          in: path
          description: Cluster name
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: Import task ID
          required: true
          schema:
            type: string
        - name: opsType
          in: path
          description: Operation type
          required: true
          schema:
            $ref: '#/components/schemas/ImportOpsType'
      responses:
        '200':
          description: Import task operation completed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportTaskResponse'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/license:
    get:
      tags:
        - license
      summary: Get license
      description: Get license
      operationId: getLicense
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/license'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/pricing:
    get:
      operationId: getEnvironmentPricing
      summary: Get the environment pricing
      parameters:
        - description: name of the environment (if provided, returns a list with one item; if omitted, returns all environment prices)
          in: query
          name: environmentName
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/environmentPricingList'
          description: Retrieve the price of environment(s) as a list
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - pricing
  /api/v1/pricing/global:
    get:
      operationId: getGlobalPricing
      summary: Get the global information of pricing
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/globalPricing'
          description: Retrieve the global information of pricing
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - pricing
  /api/v1/organizations/{orgName}/bills:
    get:
      operationId: listOrgBills
      summary: List bills in the organization
      parameters:
        - description: name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the bill
          in: query
          name: billID
          schema:
            type: string
        - description: The ID of the cluster
          in: query
          name: clusterID
          schema:
            type: string
        - description: name of the project
          in: query
          name: projectName
          schema:
            type: string
        - description: The type of aggregation time
          in: query
          name: aggregationTime
          required: true
          schema:
            $ref: '#/components/schemas/aggregationTimeType'
        - description: The type of aggregation group
          in: query
          name: aggregationGroup
          required: true
          schema:
            $ref: '#/components/schemas/orgAggregationGroupType'
        - $ref: '#/components/parameters/startTime'
        - $ref: '#/components/parameters/endTime'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillList'
          description: List bill details
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - billing
  /api/v1/organizations/{orgName}/metering/tracks:
    get:
      operationId: listOrgMeteringTracks
      summary: List metering tracks in the organization
      parameters:
        - description: Name of organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The ID of the cluster
          in: query
          name: clusterID
          schema:
            type: string
        - description: name of the project
          in: query
          name: projectName
          schema:
            type: string
        - description: The name of the environment
          in: query
          name: environmentName
          schema:
            type: string
        - description: the pageNumber of the query
          in: query
          name: pageNumber
          schema:
            type: integer
            format: int64
        - description: the pageSize of the query
          in: query
          name: pageSize
          schema:
            type: integer
            format: int64
        - $ref: '#/components/parameters/startTime'
        - $ref: '#/components/parameters/endTime'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeteringTrackList'
          description: List metering tracks
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
      tags:
        - metering
  /api/v1/inspectionScripts:
    get:
      tags:
        - inspection
      operationId: listInspectionScripts
      summary: list inspection scripts
      parameters:
        - description: name of the Org, multiple orgs separated by ',', if not provided, return all scripts
          in: query
          name: orgNames
          required: false
          schema:
            type: string
        - description: query by, such as "node"/"mysql", multiple engines separated by ','
          in: query
          name: engines
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/inspectionScript'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    post:
      tags:
        - inspection
      operationId: createInspectionScript
      summary: Create inspection script
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/inspectionScript'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inspectionScript'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/inspectionScripts/{scriptId}:
    patch:
      tags:
        - inspection
      operationId: updateInspectionScript
      summary: Update inspection script
      parameters:
        - description: id of the inspection script
          in: path
          name: scriptId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/inspectionScript'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inspectionScript'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    delete:
      tags:
        - inspection
      operationId: deleteInspectionScript
      summary: Delete inspection script
      parameters:
        - description: id of the inspection script
          in: path
          name: scriptId
          required: true
          schema:
            type: string
      responses:
        '204':
          description: No content.
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/autoInspections:
    post:
      tags:
        - inspection
      operationId: createAutoInspection
      summary: Create inspection cron job
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/autoInspection'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autoInspection'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/autoInspection:
    get:
      tags:
        - inspection
      operationId: getAutoInspection
      summary: get auto inspection
      parameters:
        - description: id of the auto inspection
          in: query
          name: id
          required: false
          schema:
            type: string
        - description: name of the Org
          in: query
          name: orgName
          required: false
          schema:
            type: string
        - description: name of the environment
          in: query
          name: envName
          required: false
          schema:
            type: string
        - description: name of the cluster, must be used with orgName
          in: query
          name: clusterName
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autoInspection'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/autoInspections/{id}:
    patch:
      tags:
        - inspection
      operationId: updateAutoInspection
      summary: update auto inspection
      parameters:
        - description: id of the auto inspection
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/autoInspection'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autoInspection'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    delete:
      tags:
        - inspection
      operationId: deleteAutoInspection
      summary: delete auto inspection
      parameters:
        - description: id of the auto inspection
          in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '204':
          description: No content.
          content: {}
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/inspectionTasksByOrg:
    get:
      tags:
        - inspection
      operationId: listInspectionTasksByOrg
      summary: list inspection tasks by org
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: list tasks for the specified cluster
          in: query
          name: clusterId
          schema:
            type: string
        - $ref: '#/components/parameters/startTime'
        - $ref: '#/components/parameters/endTime'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/inspectionTask'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
    post:
      tags:
        - inspection
      operationId: createInspectionTaskByOrg
      summary: Trigger inspection for selected clusters in an organization
      description: Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/inspectionTaskCreate'
        required: true
      responses:
        '204':
          description: Inspection tasks created and accepted for asynchronous execution.
          content: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/inspectionTasksByOrg/{taskId}:
    get:
      tags:
        - inspection
      operationId: getInspectionTaskByOrg
      summary: get inspection task by org
      parameters:
        - description: name of the Org
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: list task details if specified
          in: path
          name: taskId
          required: true
          schema:
            type: string
        - description: the format of the task
          in: query
          name: format
          required: false
          schema:
            $ref: '#/components/schemas/inspectionTaskFormat'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inspectionTask'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/inspectionTasks/aggregate:
    get:
      tags:
        - inspection
      operationId: getAggregateTaskResult
      summary: get aggregate task result
      parameters:
        - description: the type of the aggregate task
          in: query
          name: aggregateType
          required: true
          schema:
            $ref: '#/components/schemas/aggregateTaskType'
        - description: the engine of the task
          in: query
          name: engine
          required: false
          schema:
            type: string
        - description: only show the result of the specific organization or environment
          in: query
          name: resourceName
          required: false
          schema:
            type: string
        - description: result of the task
          in: query
          name: resultType
          required: false
          schema:
            $ref: '#/components/schemas/aggregateTaskResultType'
        - $ref: '#/components/parameters/startTime'
        - $ref: '#/components/parameters/endTime'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/aggregateTaskResultList'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/engines/{engineName}/schedulingPolicies:
    get:
      tags:
        - engine
      operationId: listEngineSchedulingPolicies
      summary: List engine scheduling policies
      parameters:
        - name: engineName
          in: path
          description: engine name
          required: true
          schema:
            type: string
        - name: engineMode
          in: query
          description: engine mode
          required: false
          schema:
            type: string
        - name: env
          in: query
          description: environment name
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/engineSchedulingPolicy'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/environments/{environmentName}/engineNetworkModes/supported:
    get:
      tags:
        - engine
      operationId: getEngineNetworkModeSupported
      summary: Get supported network modes for engine+mode from engineOption config
      parameters:
        - name: environmentName
          in: path
          description: environment name
          required: true
          schema:
            type: string
        - name: engineName
          in: query
          description: engine name
          required: true
          schema:
            type: string
        - name: mode
          in: query
          description: engine mode
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/engineNetworkModeSupported'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
  /api/v1/organizations/{orgName}/blueGreenDeployment/{deploymentID}:
    get:
      operationId: getBlueGreenDeployment
      summary: Get a blue-green deployment instance
      description: Retrieve details for a single blue-green deployment instance by parent cluster and organization.
      parameters:
        - description: The unique identifier of the blue-green deployment instance
          in: path
          name: deploymentID
          required: true
          schema:
            type: string
        - description: Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/blueGreenDeploymentItem'
          description: Details of the blue-green deployment instance.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - blueGreenDeployment
    delete:
      operationId: deleteBlueGreenDeployment
      summary: Delete a blue-green deployment instance
      description: Delete a specified blue-green deployment instance.
      parameters:
        - description: The unique identifier of the blue-green deployment instance
          in: path
          name: deploymentID
          required: true
          schema:
            type: string
        - description: Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/blueGreenDeploymentTask'
          description: Async job task information for blue-green deployment instance deletion.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - blueGreenDeployment
  /api/v1/organizations/{orgName}/parent/{parentClusterID}/blueGreenDeployment:
    get:
      operationId: listBlueGreenDeployments
      summary: List blue-green deployment instances for the specified parent cluster
      description: Retrieve a list of blue-green deployment instances associated with the given parent database cluster.
      parameters:
        - description: The unique identifier of the parent database cluster
          in: path
          name: parentClusterID
          required: true
          schema:
            type: string
        - description: Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/blueGreenDeploymentItemList'
          description: A list of blue-green deployment instances.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - blueGreenDeployment
    post:
      operationId: createBlueGreenDeployment
      summary: Create a new blue-green deployment instance
      description: Create a blue-green deployment instance for the specified parent cluster.
      parameters:
        - description: The unique identifier of the parent database cluster
          in: path
          name: parentClusterID
          required: true
          schema:
            type: string
        - description: Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/blueGreenDeploymentCreation'
        required: true
      responses:
        '204':
          content: {}
          description: Returned when blue-green deployment instance is created successfully.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - blueGreenDeployment
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/blueGreenDeployment/{deploymentID}/switch:
    post:
      operationId: switchBlueGreenDeployment
      summary: Switch roles of blue-green deployment instances
      description: Switch the specified blue-green deployment cluster to act as the primary instance.
      parameters:
        - description: The unique identifier of the blue-green deployment cluster
          in: path
          name: deploymentID
          required: true
          schema:
            type: string
        - description: Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/blueGreenDeploymentSwitchResponse'
          description: Async job task information for the blue-green deployment switch operation.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - blueGreenDeployment
      x-codegen-request-body-name: body
    get:
      operationId: getBlueGreenDeploymentSwitchDetail
      summary: Get blue-green deployment switch job detail
      description: Retrieve detailed information about the switch-over operation for a blue-green deployment cluster.
      parameters:
        - description: The unique identifier of the blue-green deployment instance
          in: path
          name: deploymentID
          required: true
          schema:
            type: string
        - description: Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/blueGreenDeploymentSwitchResponse'
          description: Details of the blue-green deployment switch job/task.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - blueGreenDeployment
  /api/v1/organizations/{orgName}/parent/{parentClusterID}/blueGreenDeployment/precheck:
    post:
      operationId: createBlueGreenDeploymentPreCheck
      summary: Run a precheck for blue-green deployment
      description: Trigger a precheck task to verify settings or readiness for blue-green deployment.
      parameters:
        - description: Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
        - description: The unique identifier of the parent database cluster
          in: path
          name: parentClusterID
          required: true
          schema:
            type: string
        - description: The version of the green cluster
          in: query
          name: greenClusterVersion
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/blueGreenDeploymentPreCheckResponse'
          description: Precheck task creation response.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - blueGreenDeployment
      x-codegen-request-body-name: body
  /api/v1/organizations/{orgName}/blueGreenDeployment/precheck/{preCheckID}:
    get:
      operationId: getBlueGreenDeploymentPreCheckDetail
      summary: Get blue-green deployment precheck task detail
      description: Retrieve the details of a precheck task for a blue-green deployment.
      parameters:
        - description: The unique identifier of the precheck task
          in: path
          name: preCheckID
          required: true
          schema:
            type: string
        - description: Name of the organization
          in: path
          name: orgName
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/blueGreenDeploymentPreCheckResponse'
          description: Details of the precheck task.
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '501':
          $ref: '#/components/responses/501'
      tags:
        - blueGreenDeployment
components:
  securitySchemes:
    BearerToken:
      type: http
      scheme: bearer
      description: JWT Bearer Token authentication
    DigestAuth:
      type: apiKey
      name: Authorization
      in: header
      description: |
        HTTP Digest Access Authentication (RFC 7616).

        Use your API Key's **accessKey** as the username and **secretKey** as the password.

        Example with curl:
        ```
        curl --digest -u "accessKey:secretKey" https://api.example.com/api/v1/user
        ```
  schemas:
    InfluxDBUser:
      type: object
      required:
        - id
        - name
        - status
        - protected
      properties:
        id:
          type: string
        name:
          type: string
        status:
          type: string
        protected:
          type: boolean
          description: Management or privileged users cannot be modified here.
    APIErrorResponse:
      description: API error response.
      properties:
        code:
          description: The HTTP status code.
          type: integer
        reason:
          description: The reason for the error.
          type: string
        message:
          description: The message for the error.
          type: string
        errorCode:
          description: Stable business error code for programmatic handling.
          type: string
      required:
        - code
      type: object
    InfluxDBUserCreate:
      type: object
      required:
        - name
        - password
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 64
        password:
          type: string
          format: password
          minLength: 8
          maxLength: 1024
    InfluxDBPasswordChange:
      type: object
      required:
        - password
      properties:
        password:
          type: string
          format: password
          minLength: 8
          maxLength: 1024
    InfluxDBOrganization:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: string
        name:
          type: string
    InfluxDBRetentionRuleType:
      type: string
      enum:
        - expire
    InfluxDBBucketRetentionRule:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/InfluxDBRetentionRuleType'
        everySeconds:
          type: integer
          format: int64
          minimum: 0
          maximum: 9223372036
          description: 0 means forever. Positive retention must be at least 3600 seconds. Omit on PATCH to preserve retention.
        shardGroupDurationSeconds:
          type: integer
          format: int64
          minimum: 0
          maximum: 9223372036
          description: 0 selects the native default. Omit on PATCH to preserve the existing duration.
    InfluxDBBucket:
      type: object
      required:
        - id
        - orgID
        - name
        - type
        - description
        - retentionRules
      properties:
        id:
          type: string
        orgID:
          type: string
        name:
          type: string
        type:
          type: string
        description:
          type: string
        retentionRules:
          type: array
          items:
            $ref: '#/components/schemas/InfluxDBBucketRetentionRule'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    InfluxDBBucketCreate:
      type: object
      required:
        - orgID
        - name
      properties:
        orgID:
          type: string
        name:
          type: string
        description:
          type: string
        retentionRules:
          type: array
          items:
            $ref: '#/components/schemas/InfluxDBBucketRetentionRule'
          maxItems: 1
    InfluxDBBucketUpdate:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        retentionRules:
          type: array
          items:
            $ref: '#/components/schemas/InfluxDBBucketRetentionRule'
          maxItems: 1
      description: 'Partial update. Omitted fields are unchanged; empty description clears it. Absent or empty retentionRules does not change retention. To retain forever send everySeconds: 0. System buckets cannot be renamed.'
    InfluxDBTokenStatus:
      type: string
      enum:
        - active
        - inactive
    InfluxDBPermissionAction:
      type: string
      enum:
        - read
        - write
    InfluxDBResource:
      type: object
      required:
        - type
      properties:
        type:
          type: string
        id:
          type: string
        orgID:
          type: string
    InfluxDBPermission:
      type: object
      required:
        - action
        - resource
      properties:
        action:
          $ref: '#/components/schemas/InfluxDBPermissionAction'
        resource:
          $ref: '#/components/schemas/InfluxDBResource'
    InfluxDBToken:
      type: object
      required:
        - id
        - userID
        - orgID
        - description
        - status
        - permissions
        - editable
      properties:
        id:
          type: string
        userID:
          type: string
        orgID:
          type: string
        description:
          type: string
        status:
          $ref: '#/components/schemas/InfluxDBTokenStatus'
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/InfluxDBPermission'
        editable:
          type: boolean
          description: Only explicit bucket-scoped tokens can be changed.
    InfluxDBBucketPermission:
      type: object
      required:
        - bucketID
        - read
        - write
      properties:
        bucketID:
          type: string
        read:
          type: boolean
        write:
          type: boolean
    InfluxDBTokenCreate:
      type: object
      required:
        - orgID
        - permissions
      properties:
        orgID:
          type: string
        description:
          type: string
          maxLength: 1024
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/InfluxDBBucketPermission'
          minItems: 1
          maxItems: 200
    InfluxDBTokenCreated:
      type: object
      required:
        - id
        - userID
        - orgID
        - description
        - status
        - permissions
        - editable
        - value
      properties:
        id:
          type: string
        userID:
          type: string
        orgID:
          type: string
        description:
          type: string
        status:
          $ref: '#/components/schemas/InfluxDBTokenStatus'
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/InfluxDBPermission'
        editable:
          type: boolean
          description: Only explicit bucket-scoped tokens can be changed.
        value:
          type: string
          description: New token secret, returned only at creation. Save it securely.
    InfluxDBTokenUpdate:
      type: object
      required:
        - status
      properties:
        status:
          $ref: '#/components/schemas/InfluxDBTokenStatus'
    DolphinDBDrainRequest:
      type: object
      required:
        - source
        - remainingNodes
      properties:
        source:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,253}$
        remainingNodes:
          type: array
          minItems: 1
          maxItems: 1000
          uniqueItems: true
          items:
            type: string
            pattern: ^[A-Za-z0-9_-]{1,253}$
    DolphinDBDrainMigration:
      type: object
      required:
        - chunkId
        - srcNode
        - destNode
        - action
      properties:
        chunkId:
          type: string
        srcNode:
          type: string
        destNode:
          type: string
          description: Empty for a redundant replica deletion.
        action:
          type: string
          description: moveReplica or dropRedundantReplica. Preview does not execute either action.
    DolphinDBDrainPreview:
      type: object
      required:
        - observedAt
        - source
        - remainingNodes
        - total
        - offset
        - entries
        - capacityCheck
      properties:
        observedAt:
          type: string
          format: date-time
        source:
          type: string
        remainingNodes:
          type: array
          items:
            type: string
        total:
          type: integer
        offset:
          type: integer
        entries:
          type: array
          items:
            $ref: '#/components/schemas/DolphinDBDrainMigration'
        capacityCheck:
          type: string
          description: Always notValidated. This preview is not proof of sufficient physical capacity or permission to delete the node.
    DolphinDBMigration:
      type: object
      properties:
        chunkId:
          type: string
        srcNode:
          type: string
        destNode:
          type: string
        destVolume:
          type: string
      required:
        - chunkId
        - srcNode
        - destNode
    DolphinDBRebalancePreview:
      type: object
      properties:
        observedAt:
          type: string
          format: date-time
        updatedBeforeDays:
          type: number
        total:
          type: integer
          format: int64
        offset:
          type: integer
          format: int64
        entries:
          type: array
          items:
            $ref: '#/components/schemas/DolphinDBMigration'
    DolphinDBVolumeUsage:
      type: object
      properties:
        node:
          type: string
        volumePath:
          type: string
        usage:
          type: integer
          format: int64
        capacity:
          type: integer
          format: int64
    DolphinDBReplicaDistribution:
      type: object
      properties:
        node:
          type: string
        replicaCount:
          type: integer
          format: int64
    DolphinDBDistribution:
      type: object
      properties:
        observedAt:
          type: string
          format: date-time
        volumes:
          type: array
          items:
            $ref: '#/components/schemas/DolphinDBVolumeUsage'
        replicas:
          type: array
          items:
            $ref: '#/components/schemas/DolphinDBReplicaDistribution'
    DolphinDBRebalanceRequest:
      type: object
      properties:
        updatedBeforeDays:
          type: number
          minimum: 0
          maximum: 36500
          default: 7
        timeoutSeconds:
          type: integer
          format: int32
          minimum: 1
          maximum: 86400
          default: 3600
          description: Addon wait timeout. Expiry does not cancel native migrations.
    opsRequestName:
      description: OpsRequestName is the name of a KubeBlocks OpsRequest response
      properties:
        opsRequestName:
          type: string
        taskId:
          type: string
      required:
        - taskId
      type: object
    DolphinDBUser:
      type: object
      properties:
        name:
          type: string
        isAdmin:
          type: boolean
        groups:
          type: array
          items:
            type: string
        readOnly:
          type: boolean
          description: Built-in admin and management account are protected from mutation.
      required:
        - name
        - isAdmin
        - groups
        - readOnly
    DolphinDBUserCreate:
      type: object
      properties:
        name:
          type: string
        password:
          type: string
          description: Initial password. Never returned in responses.
        isAdmin:
          type: boolean
          default: false
        groups:
          type: array
          items:
            type: string
      required:
        - name
        - password
    DolphinDBPasswordChange:
      type: object
      properties:
        password:
          type: string
          description: New password. Never returned in responses.
      required:
        - password
    DolphinDBGroup:
      type: object
      properties:
        name:
          type: string
        members:
          type: array
          items:
            type: string
      required:
        - name
        - members
    DolphinDBGroupCreate:
      type: object
      properties:
        name:
          type: string
        members:
          type: array
          items:
            type: string
      required:
        - name
    DolphinDBMembershipChange:
      type: object
      properties:
        action:
          type: string
          description: add or remove; incremental, preserves other memberships.
        users:
          type: array
          items:
            type: string
      required:
        - action
        - users
    DolphinDBPrivilegeCapability:
      type: object
      properties:
        privilege:
          type: string
        scope:
          type: string
          description: global, object, optionalObject or quota
        actions:
          type: array
          items:
            type: string
        subjects:
          type: array
          items:
            type: string
            description: user or group
      required:
        - privilege
        - scope
        - actions
        - subjects
    DolphinDBCapabilities:
      type: object
      properties:
        engineVersion:
          type: string
        privileges:
          type: array
          items:
            $ref: '#/components/schemas/DolphinDBPrivilegeCapability'
      required:
        - engineVersion
        - privileges
    DolphinDBPermissionState:
      type: object
      properties:
        privilege:
          type: string
          description: Native snapshot field. ACCESS_READ/INSERT/UPDATE/DELETE represent global table/database access.
        globalEffect:
          type: string
          description: allow, deny or none; absent when not applicable.
        allowedObjects:
          type: array
          items:
            type: string
        deniedObjects:
          type: array
          items:
            type: string
        value:
          type: number
          format: double
          description: Native quota or account limit, including default sentinel values.
      required:
        - privilege
    DolphinDBGroupPermissions:
      type: object
      properties:
        group:
          type: string
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/DolphinDBPermissionState'
      required:
        - group
        - permissions
    DolphinDBPermissionSnapshot:
      type: object
      properties:
        subjectType:
          type: string
          description: user or group
        name:
          type: string
        direct:
          type: array
          items:
            $ref: '#/components/schemas/DolphinDBPermissionState'
        effective:
          type: array
          items:
            $ref: '#/components/schemas/DolphinDBPermissionState'
        effectiveKnown:
          type: boolean
          description: 'True for users: effective is read from native getUserAccess(finalAccess=true). Groups expose direct settings only.'
        inherited:
          type: array
          items:
            $ref: '#/components/schemas/DolphinDBGroupPermissions'
      required:
        - subjectType
        - name
        - direct
        - effective
        - effectiveKnown
        - inherited
    DolphinDBPermissionChange:
      type: object
      properties:
        action:
          type: string
          description: grant, deny or revoke. Revoke clears the direct setting; it does not deny inherited access.
        privilege:
          type: string
          description: Native privilege name from capabilities.
        objects:
          type: array
          items:
            type: string
            description: Native object identifier; use * explicitly for wildcard scope.
        value:
          type: number
          format: double
          description: Numeric quota value; only for grant of quota privileges.
      required:
        - action
        - privilege
    MongoRBACPasswordChange:
      type: object
      required:
        - password
      properties:
        password:
          type: string
          format: password
    MongoRBACRoleRef:
      type: object
      properties:
        role:
          type: string
        db:
          type: string
      required:
        - role
        - db
    MongoRBACResource:
      type: object
      properties:
        cluster:
          type: boolean
        db:
          type: string
          x-nullable: true
          description: Preserve an explicit empty string for native wildcard scope; omit only for cluster resources.
        collection:
          type: string
          x-nullable: true
          description: Preserve an explicit empty string for native wildcard scope; omit only for cluster resources.
        anyResource:
          type: boolean
          description: Read-only native evidence; write requests reject this internal resource.
      description: Native MongoDB resource. cluster:true is system operations, not all database data. Empty db/collection are explicit wildcard scopes; system collections need explicit resources.
    MongoRBACPrivilege:
      type: object
      properties:
        resource:
          $ref: '#/components/schemas/MongoRBACResource'
        actions:
          type: array
          items:
            type: string
      required:
        - resource
        - actions
    MongoRBACUser:
      type: object
      properties:
        db:
          type: string
        roles:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACRoleRef'
        inheritedRoles:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACRoleRef'
        inheritedPrivileges:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACPrivilege'
        user:
          type: string
        readOnly:
          type: boolean
          description: Platform-protected account; mutations are rejected.
    MongoRBACUserCreate:
      type: object
      required:
        - user
        - db
        - password
        - roles
      properties:
        user:
          type: string
        db:
          type: string
        password:
          type: string
          format: password
        roles:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACRoleRef'
    MongoCollectionCapabilities:
      type: object
      properties:
        canReadDocuments:
          type: boolean
          x-omitempty: false
        canWriteDocuments:
          type: boolean
          x-omitempty: false
        canManageIndexes:
          type: boolean
          x-omitempty: false
        canSetValidation:
          type: boolean
          x-omitempty: false
        canDrop:
          type: boolean
          x-omitempty: false
    MongoCollectionInfo:
      type: object
      properties:
        name:
          type: string
          description: collection or view name
        type:
          type: string
          description: collection type (collection or view)
        isSystem:
          type: boolean
          description: whether this is a MongoDB system collection
          x-omitempty: false
        capabilities:
          $ref: '#/components/schemas/MongoCollectionCapabilities'
        options:
          type: object
          description: collection options, including viewOn/pipeline when type is view
    MongoRBACResourceCapability:
      type: object
      properties:
        type:
          type: string
          description: cluster, database, collection, allDatabases, collectionAcrossDatabases
        actions:
          type: array
          items:
            type: string
      required:
        - type
        - actions
    MongoRBACCapabilities:
      type: object
      properties:
        allDatabaseUsers:
          type: boolean
          description: Supports allDatabases on the account list endpoint.
        engineVersion:
          type: string
        resources:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACResourceCapability'
    MongoRBACRole:
      type: object
      properties:
        role:
          type: string
        db:
          type: string
        isBuiltin:
          type: boolean
        privileges:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACPrivilege'
        roles:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACRoleRef'
        inheritedRoles:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACRoleRef'
        inheritedPrivileges:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACPrivilege'
        revision:
          type: string
          description: Stale-form fingerprint. updateRole has no native CAS; external concurrent writes are not transactional.
    MongoRBACRoleWrite:
      type: object
      properties:
        role:
          type: string
        db:
          type: string
        privileges:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACPrivilege'
        roles:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACRoleRef'
        expectedRevision:
          type: string
      required:
        - role
        - db
        - privileges
        - roles
    MongoRBACBindingChange:
      type: object
      properties:
        action:
          type: string
          description: grant or revoke. Incremental; all other native roles are retained.
        roles:
          type: array
          items:
            $ref: '#/components/schemas/MongoRBACRoleRef'
      required:
        - action
        - roles
    clusterJarConfig:
      type: object
      properties:
        supported:
          type: boolean
        reason:
          type: string
        generation:
          type: integer
          format: int64
        maxFileBytes:
          type: integer
          format: int64
        maxTotalBytes:
          type: integer
          format: int64
        usedBytes:
          type: integer
          format: int64
        taskId:
          type: string
      required:
        - supported
        - generation
        - maxFileBytes
        - maxTotalBytes
        - usedBytes
    clusterJarKind:
      type: string
      enum:
        - udf
        - jdbc
    clusterJarReplica:
      type: object
      properties:
        component:
          type: string
        podName:
          type: string
        podUID:
          type: string
        status:
          type: string
        error:
          type: string
        generation:
          type: integer
          format: int64
        updatedAt:
          type: string
          format: date-time
      required:
        - component
        - podName
        - podUID
        - status
        - generation
    clusterJarPackage:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        kind:
          $ref: '#/components/schemas/clusterJarKind'
        filename:
          type: string
        sha256:
          type: string
        size:
          type: integer
          format: int64
        uri:
          type: string
        published:
          type: boolean
        status:
          type: string
        synced:
          type: integer
          format: int64
        total:
          type: integer
          format: int64
        createdBy:
          type: string
        createdAt:
          type: string
          format: date-time
        instances:
          type: array
          items:
            $ref: '#/components/schemas/clusterJarReplica'
      required:
        - id
        - name
        - kind
        - filename
        - sha256
        - size
        - uri
        - published
        - status
        - synced
        - total
        - createdBy
        - createdAt
        - instances
    clusterJarList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/clusterJarPackage'
        generation:
          type: integer
          format: int64
      required:
        - items
        - generation
    clusterJarPublish:
      type: object
      properties:
        generation:
          type: integer
          format: int64
          minimum: 0
      required:
        - generation
    clusterJarTask:
      type: object
      properties:
        taskId:
          type: string
    phoneNumber:
      description: The phonenumber for the user.
      example: '+8618912345678'
      pattern: ^\+\d{1,3}\d{11}$
      type: string
    user:
      description: Admin user info
      properties:
        id:
          description: The ID for the user
          type: string
        userName:
          description: The name of the user, is unique
          type: string
        displayName:
          description: The display name of the user
          type: string
        email:
          description: The email for the user
          type: string
          x-nullable: true
        phoneNumber:
          $ref: '#/components/schemas/phoneNumber'
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        isDefaultPassword:
          description: return true if the default admin user need to reset password
          type: boolean
        description:
          description: The description for the user
          type: string
      required:
        - id
        - userName
        - createdAt
        - updatedAt
    userUpdate:
      description: User update
      properties:
        displayName:
          description: The display name of the user
          type: string
        email:
          description: The email for the user
          type: string
          x-nullable: true
        description:
          description: The description for the user
          type: string
        phoneNumber:
          $ref: '#/components/schemas/phoneNumber'
      type: object
    apikeyCreate:
      description: APIKeyCreate is the payload for creating an APIKey
      properties:
        description:
          description: The description of the APIKey
          type: string
        expiredAt:
          description: The expired time of the APIKey
          type: string
          format: date-time
      required:
        - description
      type: object
    apikey:
      description: APIKey is the key for API access
      properties:
        accessKey:
          description: The name of the APIKey
          type: string
        description:
          description: The description for APIKey
          type: string
        expiredAt:
          description: The expired time of APIKey, return empty without setting duration
          type: string
          format: date-time
          x-nullable: true
        createAt:
          description: The create time of APIKey
          type: string
          format: date-time
      required:
        - accessKey
        - description
        - createAt
      type: object
    pageResult:
      description: PageResult info
      properties:
        first:
          description: a link to the first page of results. This link is optional for collections that cannot be indexed directly to a given page
          type: string
        last:
          description: a link to the last page of results. This link is optional for collections that cannot be indexed directly to a given page
          type: string
        next:
          description: a link to the next page of results. A response that does not contain a next link does not have further data to fetch
          type: string
        prev:
          description: a link to the previous page of results. A response that does not contain a prev link has no previous data. This link is optional for collections that cannot be traversed backward
          type: string
        totalSize:
          description: the total count of items in the list irrespective of pagination
          format: int64
          type: integer
      type: object
    apikeyList:
      description: APIKeys is a list of APIKey objects
      properties:
        items:
          description: Items is the list of APIKey objects in the list
          items:
            $ref: '#/components/schemas/apikey'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    apikeyWithSK:
      description: APIKeyWithSK is the response for creating an APIKey
      properties:
        accessKey:
          description: The accessKey of the APIKey
          type: string
        secretKey:
          description: The secretKey of the APIKey
          type: string
        description:
          description: The description of the APIKey
          type: string
        expiredAt:
          description: The expired time of APIKey
          type: string
          format: date-time
          x-nullable: true
        createAt:
          description: The create time of APIKey
          type: string
          format: date-time
      required:
        - accessKey
        - secretKey
        - description
        - createAt
      type: object
    orgStatus:
      x-nullable: false
      type: string
      enum:
        - Active
        - DeletionLocked
        - Purging
        - PurgeFailed
        - Deleted
    userOrg:
      description: UserOrg is the payload for user organization
      properties:
        status:
          x-nullable: false
          $ref: '#/components/schemas/orgStatus'
        expiredAt:
          type: string
          format: date-time
          nullable: true
        purgeError:
          type: string
        allowedActions:
          type: array
          items:
            type: string
        orgId:
          description: The ID of the organization
          type: string
        role:
          description: The role of the user in the organization
          type: string
        displayName:
          description: The display name of the organization
          type: string
        name:
          description: The name of the organization
          type: string
        description:
          description: The description of the organization
          type: string
      required:
        - status
        - expiredAt
        - allowedActions
        - orgId
        - role
        - name
      type: object
    userOrgList:
      description: UserOrgList is a list of UserOrgs
      properties:
        items:
          description: Items is the list of UserOrg objects in the list
          items:
            $ref: '#/components/schemas/userOrg'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    orgCreate:
      description: OrgCreate is the payload for organization creation
      properties:
        description:
          description: The description of the organization
          type: string
        displayName:
          description: The display name of the organization
          type: string
        name:
          description: The full, unique name of this Object in the format organizations/{name}, set during creation. name must be a valid RFC 1123 compliant DNS label
          type: string
      required:
        - name
      type: object
    org:
      description: Org info
      properties:
        status:
          x-nullable: false
          $ref: '#/components/schemas/orgStatus'
        expiredAt:
          type: string
          format: date-time
          nullable: true
        purgeError:
          type: string
        allowedActions:
          type: array
          items:
            type: string
        createdAt:
          description: |-
            CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.

            Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
        description:
          description: The description of the organization
          type: string
        displayName:
          description: The display name of the organization
          type: string
        id:
          type: string
          description: The ID of the organization
        name:
          description: The full, unique name of this Object in the format organizations/{name}, set during creation. name must be a valid RFC 1123 compliant DNS label
          type: string
        updatedAt:
          description: |-
            UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.

            Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
        enabled:
          description: return true if the organization is enabled
          type: boolean
      required:
        - status
        - expiredAt
        - allowedActions
        - createdAt
        - name
        - updatedAt
        - enabled
      type: object
    orgDeletionAction:
      type: string
      enum:
        - delete
        - purge
    orgDeletionBlocker:
      type: object
      required:
        - code
        - resourceType
        - count
      properties:
        code:
          x-nullable: false
          type: string
        resourceType:
          x-nullable: false
          type: string
        count:
          x-nullable: false
          type: integer
          format: int64
    orgConfigurationItem:
      type: object
      required:
        - id
        - displayName
      properties:
        id:
          x-nullable: false
          type: string
        displayName:
          x-nullable: false
          type: string
    orgConfigurationSummary:
      type: object
      required:
        - type
        - count
        - items
        - truncated
        - actionEffect
        - purgeEffect
      properties:
        type:
          x-nullable: false
          type: string
        count:
          x-nullable: false
          type: integer
          format: int64
        items:
          x-nullable: false
          type: array
          items:
            $ref: '#/components/schemas/orgConfigurationItem'
        truncated:
          x-nullable: false
          type: boolean
        actionEffect:
          x-nullable: false
          type: string
        purgeEffect:
          x-nullable: false
          type: string
    orgRetainedResource:
      type: object
      required:
        - type
        - count
        - retentionPolicy
      properties:
        type:
          x-nullable: false
          type: string
        count:
          x-nullable: false
          type: integer
          format: int64
        retentionPolicy:
          x-nullable: false
          type: string
    orgDeletionPreview:
      type: object
      required:
        - orgID
        - name
        - status
        - expiredAt
        - action
        - canProceed
        - blockers
        - configurations
        - retainedResources
      properties:
        orgID:
          x-nullable: false
          type: string
        name:
          x-nullable: false
          type: string
        status:
          x-nullable: false
          type: string
        expiredAt:
          type: string
          format: date-time
          nullable: true
        purgeError:
          type: string
        action:
          x-nullable: false
          type: string
        canProceed:
          x-nullable: false
          type: boolean
        blockers:
          x-nullable: false
          type: array
          items:
            $ref: '#/components/schemas/orgDeletionBlocker'
        configurations:
          x-nullable: false
          type: array
          items:
            $ref: '#/components/schemas/orgConfigurationSummary'
        retainedResources:
          x-nullable: false
          type: array
          items:
            $ref: '#/components/schemas/orgRetainedResource'
    orgLifecycleRequest:
      type: object
      required:
        - orgID
        - expectedExpiredAt
      properties:
        orgID:
          type: string
          pattern: ^[1-9][0-9]*$
        expectedExpiredAt:
          type: string
          format: date-time
    orgPurgeResult:
      type: object
      properties:
        orgID:
          type: string
        status:
          type: string
        expiredAt:
          type: string
          format: date-time
    orgUpdate:
      description: Organization update
      properties:
        description:
          description: The description of the organization
          type: string
        displayName:
          description: The display name of the organization
          type: string
      type: object
    orgMember:
      description: Org Member info
      properties:
        displayName:
          description: The display name of User. Read-Only
          type: string
        email:
          description: |
            The email of the user. Sourced from the user profile; may be empty
            if the user has not set one. Cannot be changed via the org-member
            API (use the user-profile API instead).
          type: string
        role:
          description: The role of the User in the Org.
          type: string
        userId:
          description: The ID of User. Read-Only
          type: string
        freezed:
          description: Return true if the member is freezed in the organization
          type: boolean
      required:
        - role
        - userId
      type: object
    orgMemberList:
      description: OrgMemberList is org member list
      properties:
        items:
          description: Items is the list of OrgMember objects in the list
          items:
            $ref: '#/components/schemas/orgMember'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    orgMemberAdd:
      description: MemberAdd is the payload for adding organization member
      properties:
        role:
          description: The name of the role in the organization
          type: string
          x-nullable: false
        userName:
          description: The name of the user
          type: string
          x-nullable: false
      required:
        - role
        - userName
      type: object
    orgMemberUpdate:
      description: Org Member update
      properties:
        role:
          description: The role of the User in the Org. Required
          type: string
      required:
        - role
      type: object
    permission:
      description: Permission information
      type: object
      properties:
        name:
          description: The name of the permission
          type: string
        group:
          description: The group of the permission
          type: string
        description:
          description: The description of the permission
          type: string
    permissionList:
      description: PermissionList is a list of Permissions
      properties:
        items:
          description: Items is the list of Permission objects in the list
          items:
            $ref: '#/components/schemas/permission'
          type: array
      required:
        - items
      type: object
    eventFilterType:
      description: Console do not support orgName.
      type: string
      enum:
        - orgName
        - operator
        - eventName
        - resourceName
        - resourceType
    localizedDescription:
      type: object
      properties:
        zh-CN:
          type: string
          x-nullable: true
        en-US:
          type: string
          x-nullable: true
    eventFilterOption:
      description: Represents a single filter result item.
      properties:
        title:
          description: The human-readable title of the filter option.
          type: string
        value:
          description: The actual value associated with the filter option.
          type: string
        description:
          $ref: '#/components/schemas/localizedDescription'
      required:
        - title
        - value
    eventFilterOptionList:
      description: A collection of filter results.
      properties:
        items:
          description: An array containing individual filter result items.
          type: array
          items:
            $ref: '#/components/schemas/eventFilterOption'
      required:
        - items
    eventResultStatus:
      description: result status of the operation event
      enum:
        - success
        - failed
      type: string
    eventResourceType:
      description: Type of the resource
      type: string
      enum:
        - cluster
        - role
    eventSource:
      description: event source
      enum:
        - user
        - admin
        - system
      type: string
    event:
      description: event is the information of operation event
      properties:
        id:
          description: ID of the event
          type: string
        resourceId:
          description: ID of the resource
          type: string
        resourceType:
          $ref: '#/components/schemas/eventResourceType'
        resourceTypeDescription:
          $ref: '#/components/schemas/localizedDescription'
        resourceName:
          description: Name of the resource
          type: string
        operator:
          description: operator of the event, if source is user, operator is user name; if source is system, operator is system name
          type: string
        operatorId:
          description: The user ID of the operator
          type: string
        details:
          description: Details will include the extra event info, such as update cluster which field, OpsRequest content etc
          type: string
        hasTask:
          description: hasTask is true if the event has a task
          type: boolean
        result:
          description: result of the operation event
          type: string
        eventName:
          description: Event name is OpsRequest name or cluster operation name
          type: string
        displayName:
          description: Display name is custom operation name
          type: string
        orgName:
          description: The org of the event
          type: string
        resultStatus:
          $ref: '#/components/schemas/eventResultStatus'
        source:
          $ref: '#/components/schemas/eventSource'
        end:
          description: event end time
          format: date-time
          type: string
        start:
          description: event start time
          format: date-time
          type: string
        createdAt:
          description: event created time
          format: date-time
          type: string
      type: object
    paginationResult:
      description: Pagination information
      properties:
        page:
          description: Current page number (1-based)
          type: integer
          minimum: 1
        pageSize:
          description: Number of records per page
          type: integer
          minimum: 1
        total:
          description: Total number of records
          type: integer
          minimum: 0
      required:
        - page
        - pageSize
        - total
      type: object
    eventList:
      description: EventList is a list of operation event objects
      properties:
        items:
          description: Items is the list of operation event objects in the list
          items:
            $ref: '#/components/schemas/event'
          type: array
        pagination:
          $ref: '#/components/schemas/paginationResult'
      required:
        - items
      type: object
    orgParameter:
      description: org parameter item
      type: object
      required:
        - id
        - orgId
        - name
        - category
        - type
        - constraints
        - value
        - description
      properties:
        id:
          type: string
          description: org parameter id
        orgId:
          type: string
          description: org id
        name:
          type: string
          description: org parameter name
        category:
          type: string
          description: org parameter category
        type:
          type: string
          description: type of org parameter value
        constraints:
          type: object
          description: org parameter constraints including min, max, enum, default value
          properties:
            min:
              type: string
              description: org parameter min value
            max:
              type: string
              description: org parameter max value
            enum:
              type: array
              items:
                type: string
              description: org parameter enum constraints
            default:
              type: string
              description: org parameter default value
        description:
          $ref: '#/components/schemas/localizedDescription'
        value:
          type: string
          description: org parameter value
    orgParameterList:
      description: org parameter list
      type: array
      items:
        $ref: '#/components/schemas/orgParameter'
    orgResourceQuota:
      description: org resource quota
      type: object
      required:
        - cpu
        - memory
        - storage
        - clusters
      properties:
        cpu:
          type: number
          description: Maximum available vCPU. if set to 0, no limit
          x-nullable: false
        memory:
          type: number
          description: Maximum available memory in GB. if set to 0, no limit
          x-nullable: false
        storage:
          type: number
          description: Maximum available storage in GB. if set to 0, no limit
          x-nullable: false
        clusters:
          type: object
          description: Number of the clusters. key is engine type, values is the maximum number of engine
          additionalProperties:
            type: integer
            description: Maximum number of clusters for the engine type
    orgResourceQuotaAndUsage:
      description: org resource quota
      type: object
      required:
        - cpu
        - memory
        - storage
        - clusters
        - usage
      properties:
        cpu:
          type: number
          description: Maximum available vCPU. if set to 0, no limit
          x-nullable: false
        memory:
          type: number
          description: Maximum available memory in GB. if set to 0, no limit
          x-nullable: false
        storage:
          type: number
          description: Maximum available storage in GB. if set to 0, no limit
          x-nullable: false
        clusters:
          type: object
          description: Number of the clusters. key is engine type, values is the maximum number of engine
          x-nullable: false
          additionalProperties:
            type: integer
            description: Maximum number of clusters for the engine type
        usage:
          $ref: '#/components/schemas/orgResourceQuota'
    networkMode:
      enum:
        - HostNetwork
        - NodePort
        - FixedPodIP
        - HeadlessService
        - LoadBalancer
      type: string
    networkConfig:
      type: object
      title: NetworkConfig
      description: Configuration of networking for this environment
      properties:
        nodePortEnabled:
          description: Enable node port service for this environment
          type: boolean
          default: true
        lbEnabled:
          description: Enable load balancer service for this environment
          type: boolean
          default: true
        domainEnabled:
          description: Enable domain service for this environment
          type: boolean
          default: false
        internetLBEnabled:
          description: Enable the Internet load balancer service for this environment
          type: boolean
          default: true
        networkModes:
          type: array
          items:
            $ref: '#/components/schemas/networkMode'
          description: Network modes of the environment
    logBackendType:
      type: string
      description: Log query backend configured for this environment.
      enum:
        - loki
        - victoria-logs
    environmentState:
      type: string
      description: Output only. State of the Environment resource
      enum:
        - PENDING
        - REGISTERED
        - PROVISIONING
        - NOTREADY
        - READY
        - WARNING
        - UNREACHABLE
        - DELETING
        - OUTOFSTOCK
        - UPDATING
    environmentType:
      type: string
      description: Type of this environment
      enum:
        - public
        - private
      default: public
    ipPoolProvider:
      type: string
      description: KBE provider used for Pod IP pool discovery and explicit selection.
      enum:
        - spiderpool
    clusterValidationPolicy:
      type: string
      description: Cluster operation validation policy, such as create, hscale, vscale, etc.
      enum:
        - Disabled
        - ValidateOnly
        - ForbiddenExecute
      default: ValidateOnly
    environmentArchitecture:
      title: EnvironmentArchitecture
      type: string
      description: Architecture of the environment data plane nodes (arm64, amd64, or multiarch for multiple architectures)
      enum:
        - arm64
        - amd64
        - multiarch
    environment:
      description: Environment info
      properties:
        provider:
          description: Provider
          title: Provider
          type: string
        region:
          description: Region
          title: Region
          type: string
        availabilityZones:
          title: Availability Zones
          description: Availability Zones
          items:
            type: string
          minItems: 1
          type: array
        networkConfig:
          $ref: '#/components/schemas/networkConfig'
        logBackend:
          $ref: '#/components/schemas/logBackendType'
        createdAt:
          description: CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
        description:
          description: The description of the organization
          type: string
        displayName:
          description: The display name of the context
          type: string
        id:
          format: uuid
          type: string
          description: environment id
        name:
          description: The full, unique name of this Object in the format contexts/{name}, set during creation. name must be a valid RFC 1123 compliant DNS label
          type: string
        orgName:
          description: Organization Name
          title: Organization Name
          type: string
        state:
          $ref: '#/components/schemas/environmentState'
        type:
          $ref: '#/components/schemas/environmentType'
        updatedAt:
          description: UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
        imageRegistry:
          type: string
          description: Image registry URL used by the environment. Must match image_registries.url, not image_registries.name.
        extraInfo:
          type: string
          description: extra info for environment
        kbVersion:
          type: string
          description: KubeBlocks version of the environment
        ipPoolProviders:
          description: KBE Pod IP pool providers enabled for discovery and explicit pool selection.
          type: array
          items:
            $ref: '#/components/schemas/ipPoolProvider'
        namespaces:
          items:
            type: string
          default:
            - kubeblocks-cloud-ns
          type: array
          description: namespace info for environment
        defaultStorageClass:
          type: string
          description: the default storageClass for the environment
        clusterValidationPolicy:
          $ref: '#/components/schemas/clusterValidationPolicy'
        architecture:
          $ref: '#/components/schemas/environmentArchitecture'
      required:
        - provider
        - region
        - availabilityZones
        - createdAt
        - id
        - name
        - type
        - orgName
        - state
        - updatedAt
        - defaultStorageClass
        - ipPoolProviders
      type: object
    environmentList:
      description: EnvironmentList is a list of Environments
      properties:
        items:
          description: Items is the list of Environment objects in the list
          items:
            $ref: '#/components/schemas/environment'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    stringList:
      description: Represents a list of strings.
      items:
        type: string
      type: array
    ipPoolSelectionRequirement:
      type: string
      enum:
        - required
        - optional
        - unsupported
    ipPoolSelectionPolicy:
      type: object
      description: Per-address-family requirements for explicit IP pool selection.
      properties:
        ipv4:
          $ref: '#/components/schemas/ipPoolSelectionRequirement'
        ipv6:
          $ref: '#/components/schemas/ipPoolSelectionRequirement'
      required:
        - ipv4
        - ipv6
    ipPoolIPFamily:
      type: string
      enum:
        - IPv4
        - IPv6
    ipPool:
      type: object
      description: Provider-neutral Pod IP pool summary.
      properties:
        name:
          type: string
        ipFamily:
          $ref: '#/components/schemas/ipPoolIPFamily'
        subnet:
          type: string
        disabled:
          type: boolean
        default:
          type: boolean
        allocatedIPCount:
          type: integer
          format: int64
        totalIPCount:
          type: integer
          format: int64
        availableIPCount:
          type: integer
          format: int64
        capacityReliable:
          type: boolean
        affinitySummary:
          type: array
          items:
            type: string
    ipPoolProviderList:
      type: object
      description: Pod IP pools and selection policy reported by one provider.
      properties:
        name:
          $ref: '#/components/schemas/ipPoolProvider'
        selectionPolicy:
          $ref: '#/components/schemas/ipPoolSelectionPolicy'
        items:
          type: array
          items:
            $ref: '#/components/schemas/ipPool'
      required:
        - name
        - selectionPolicy
        - items
    ipPoolList:
      type: object
      description: Pod IP pool discovery result for an environment.
      properties:
        providers:
          type: array
          items:
            $ref: '#/components/schemas/ipPoolProviderList'
      required:
        - providers
    storageClassInfo:
      description: StorageClassInfo provides detailed information about a specific storage class.
      properties:
        name:
          type: string
          description: the name of the storage class
        creationTimestamp:
          type: string
          description: the creation time of the storage class
        provisioner:
          type: string
          description: the provisioner of the storage class
        parameters:
          type: object
          additionalProperties:
            type: string
          description: the parameters of the storage class
        labels:
          type: object
          additionalProperties:
            type: string
          description: the labels of the storage class
        annotations:
          type: object
          description: the annotations of the storage class
          additionalProperties:
            type: string
        reclaimPolicy:
          type: string
          description: the reclaim policy of the storage class
        allowVolumeExpansion:
          type: boolean
          description: whether allow volume expansion
        volumeBindingMode:
          type: string
          description: the volume binding mode of the storage class
        pvcCount:
          type: string
          description: the number of PVCs
        allowClone:
          type: boolean
          description: whether allow clone
        allowSnapshot:
          type: boolean
          description: whether allow snapshot
        isDefaultClass:
          type: boolean
          description: whether is default class
        type:
          type: string
          description: the type of the storage class
        hostPath:
          description: the host path when using local storage provisioner
          type: string
        mountOptions:
          type: array
          items:
            type: string
          description: the mount options of the storage class
        createdAt:
          nullable: true
          type: string
          format: date-time
          description: the creation time of the storage class
        description:
          type: string
          description: the description of the storage class
        displayName:
          type: string
          description: the display name of the storage class
        enabled:
          type: boolean
          description: whether the storage class is enabled
        id:
          type: string
          description: the id of the storage class
        updatedAt:
          nullable: true
          type: string
          format: date-time
          description: the update time of the storage class
        minSizeGi:
          type: integer
          description: the minimum size of the storage class
      required:
        - name
        - creationTimestamp
        - provisioner
        - reclaimPolicy
        - allowVolumeExpansion
        - volumeBindingMode
        - pvcCount
        - allowClone
        - allowSnapshot
        - isDefaultClass
        - type
        - description
        - displayName
        - enabled
        - id
      type: object
    storageClassList:
      description: StorageClassList stands for stats for storage classes.
      properties:
        items:
          description: the list of storage classes
          type: array
          items:
            $ref: '#/components/schemas/storageClassInfo'
      type: object
    schedulerOption:
      type: object
      properties:
        name:
          type: string
        displayName:
          type: string
        default:
          type: boolean
    koordinatorReservationResourceClass:
      type: string
      enum:
        - database
        - business
    koordinatorReservationResources:
      type: object
      additionalProperties: false
      description: Resource requests supported by KBE for Koordinator Reservations. Values are Kubernetes quantities and responses use Kubernetes canonical quantity strings.
      properties:
        cpu:
          type: string
        memory:
          type: string
    koordinatorReservationSummaryItem:
      type: object
      properties:
        resourceClass:
          $ref: '#/components/schemas/koordinatorReservationResourceClass'
        nodeCount:
          type: integer
          format: int64
        total:
          $ref: '#/components/schemas/koordinatorReservationResources'
        allocated:
          $ref: '#/components/schemas/koordinatorReservationResources'
        available:
          $ref: '#/components/schemas/koordinatorReservationResources'
    koordinatorReservationSummary:
      type: object
      required:
        - enabled
        - schedulerOptions
        - items
      properties:
        enabled:
          type: boolean
        schedulerName:
          type: string
        defaultSchedulerName:
          type: string
        schedulerOptions:
          type: array
          items:
            $ref: '#/components/schemas/schedulerOption'
        items:
          type: array
          items:
            $ref: '#/components/schemas/koordinatorReservationSummaryItem'
    loadBalancerStatus:
      description: Status of the load balancer
      type: string
      enum:
        - Enabling
        - Enabled
        - Disabling
        - Disabled
        - Failed
    loadBalancerAvailableType:
      description: Whether the loadbalancer is available in the environment.
      type: string
      enum:
        - Available
        - Unavailable
        - Checking
        - Unknown
    loadBalancerIpamStatus:
      description: Whether the ipam is enabled.
      type: string
      enum:
        - Enabled
        - Disabled
    loadBalancer:
      description: The load balancer info
      properties:
        version:
          description: Version of the load balancer
          type: string
        type:
          description: Type of the load balancer
          type: string
        status:
          $ref: '#/components/schemas/loadBalancerStatus'
        available:
          $ref: '#/components/schemas/loadBalancerAvailableType'
        class:
          description: Class of the load balancer, only available on public cloud.
          type: string
        chargeType:
          description: Charge type of the load balancer, only available on public cloud.
          type: string
        ipam:
          $ref: '#/components/schemas/loadBalancerIpamStatus'
      required:
        - status
      type: object
    vipPool:
      description: VIP Pool
      properties:
        addresses:
          description: IP Addresses
          title: IP Addresses
          type: string
        id:
          description: ID of VIP Pool
          title: ID
          type: string
        name:
          description: Name of VIP Pool. It is the MetalLB IPAddressPool resource name, generated as kb-<id>.
          title: Name
          type: string
        poolName:
          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.
          title: Pool Name
          type: string
        total:
          description: Total number of IP addresses
          format: int64
          type: integer
        used:
          description: Used number of IP addresses
          format: int64
          type: integer
        usedIPs:
          description: Used IP addresses
          type: array
          items:
            type: string
        availableIPs:
          description: Available IP address candidates, limited to 4096 per pool. IPv4 and IPv6 share the limit equally, with unused slots reassigned to the other family. Large pools return a partial list.
          type: array
          items:
            type: string
      required:
        - addresses
        - total
        - used
      type: object
    vipPoolList:
      description: vipPoolList is a list of vip pools
      properties:
        items:
          description: Items is the list of vip pool objects in the list
          items:
            $ref: '#/components/schemas/vipPool'
          type: array
      required:
        - items
      type: object
    vipPortCheckRequest:
      description: VIP port check request
      properties:
        ip:
          description: VIP address to check
          type: string
        ports:
          description: TCP ports to check. When empty, only the occupied ports are returned.
          items:
            format: int32
            type: integer
          type: array
      required:
        - ip
      type: object
    vipPortCheckResult:
      description: VIP port check result
      properties:
        conflicts:
          description: Requested ports that are already in use
          items:
            format: int32
            type: integer
          type: array
        ip:
          description: Checked VIP address
          type: string
        occupiedPorts:
          description: Ports already used on the VIP. Resource ownership details are intentionally omitted.
          items:
            description: A port already used on the VIP
            properties:
              port:
                description: Port number
                format: int32
                type: integer
              protocol:
                description: Port protocol
                type: string
            required:
              - port
              - protocol
            type: object
          type: array
      required:
        - ip
        - occupiedPorts
      type: object
    nodeGroup:
      required:
        - name
        - nodes
      type: object
      description: NodeGroup creation info
      properties:
        name:
          type: string
          description: The full, unique name of this Object, name part must consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or '123-abc'
          pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
          format: string
        description:
          type: string
          description: the description of the node group
        nodes:
          items:
            type: string
            description: Node name (e.g. 'MyName',  or 'my.name',  or '123-abc')
            pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
            format: string
          type: array
          description: the nodes of the node group
    resourceStats:
      description: ResourceStats holds the requests, limits, and available stats for a resource.
      properties:
        allocatable:
          description: The amount of CPU or Memory resources that are available on the node. Unit is GiB for memory and Cores for CPU.
          format: double
          type: number
        limits:
          description: The maximum number of CPU or Memory resources pods are allowed to use on the node.  Unit is GiB for memory and Cores for CPU
          format: double
          type: number
        requests:
          description: The number of CPU or Memory resources requested by pods running on the node. Unit is GiB for memory and Cores for CPU.
          format: double
          type: number
        usage:
          description: The amount of CPU or Memory resources that are already used on the node. Unit is GiB for memory and Cores for CPU.
          format: double
          type: number
        capacity:
          description: The total amount of physical resources available on the node. Unit is GiB for memory and Cores for CPU.
          format: double
          type: number
      required:
        - usage
      type: object
    nodeResourceStats:
      description: ResourceStats holds the requests, limits, and available stats for a resource.
      properties:
        cpuStats:
          $ref: '#/components/schemas/resourceStats'
        memoryStats:
          $ref: '#/components/schemas/resourceStats'
        filesystemStats:
          $ref: '#/components/schemas/resourceStats'
        name:
          description: Name of the node.
          type: string
        instanceCount:
          description: Number of database cluster instances (pods) running on this node.
          type: integer
          format: int32
      required:
        - cpuStats
        - memoryStats
        - name
      type: object
    nodeResourceStatsList:
      description: NodeResourceStatsList is a list of NodeResourceStats
      properties:
        items:
          description: Items is the list of NodeResourceStats objects in the list
          items:
            $ref: '#/components/schemas/nodeResourceStats'
          type: array
        updatedAt:
          description: UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
      required:
        - items
        - updatedAt
      type: object
    environmentModuleStatus:
      type: string
      description: Status of an environment module. Enabled is only used as the desired state when creating an environment. NotInstalled, Installing, and InstallationFailed describe quick installation; Upgradeable, Upgrading, and UpgradeFailed describe quick upgrade. Upgradeable means the component is running but an ApeCloud-bundled newer version is available. Unknown means the current state could not be determined.
      enum:
        - Running
        - Updating
        - Error
        - Disabled
        - Enabled
        - NotInstalled
        - Installing
        - InstallationFailed
        - Upgradeable
        - Upgrading
        - UpgradeFailed
        - Uninstalling
        - UninstallationFailed
        - Unknown
    clusterInfo:
      type: object
      description: Cluster information
      properties:
        clusterName:
          type: string
          description: The name of the cluster
        clusterDefinition:
          type: string
          description: The definition of the cluster
        orgName:
          type: string
          description: The organization name
    environmentModule:
      type: object
      description: Single environment module information
      properties:
        name:
          type: string
          description: Environment module name
        version:
          type: string
          description: Currently installed environment module version
        status:
          $ref: '#/components/schemas/environmentModuleStatus'
        replicas:
          type: integer
          description: Number of replicas
        location:
          type: string
          description: Deployment location
        operationTaskId:
          type: string
          description: ID of the asynchronous task associated with the module's current operation state. It is omitted when the current state is not associated with a task.
        clusterInfo:
          $ref: '#/components/schemas/clusterInfo'
          description: Cluster information
        description:
          $ref: '#/components/schemas/localizedDescription'
          description: Module description in multiple languages
        displayName:
          $ref: '#/components/schemas/localizedDescription'
          description: Module display name in multiple languages
        optional:
          type: boolean
          description: indicate module is optional. If false, the module is required and must be installed
        defaultEnabled:
          type: boolean
          description: indicate whether module is enabled by default when creating environment. Only effective when optional is true
        actionWarning:
          $ref: '#/components/schemas/localizedDescription'
          description: Localized business-impact warning for the component action represented by the current status.
        uninstallSupported:
          type: boolean
          description: Whether the module supports the Uninstall action. A dry run checks whether it is currently safe to uninstall.
        uninstallWarning:
          $ref: '#/components/schemas/localizedDescription'
          description: Localized warning about resources and data removed by uninstallation.
      required:
        - name
        - status
    environmentModuleInfo:
      type: object
      description: Environment module information in an environment
      properties:
        environmentId:
          type: string
          description: Environment ID
        lastUpdated:
          type: string
          format: date-time
          description: Last update time of the data
        environmentModules:
          type: array
          items:
            $ref: '#/components/schemas/environmentModule'
    benchmarkType:
      type: string
      description: Type of benchmark
      enum:
        - pgbench
        - sysbench
        - tpcc
        - tpch
        - ycsb
        - esrally
    benchmarkStatus:
      type: string
      description: the status of benchmark
      enum:
        - Pending
        - Running
        - Completed
        - Failed
    benchmark:
      description: Benchmark is the benchmark object
      type: object
      properties:
        id:
          type: string
          description: ID of benchmark
        name:
          type: string
          description: Name of benchmark
        type:
          $ref: '#/components/schemas/benchmarkType'
        config:
          type: string
          description: Config of benchmark
        prepareLog:
          type: string
          description: the log of benchmark in prepare stage
        runLog:
          type: string
          description: the log of benchmark in run stage
        cleanupLog:
          type: string
          description: the log of benchmark in cleanup stage
        result:
          type: string
          description: the result of benchmark, only available when benchmark is complete
        message:
          type: string
          description: the message of benchmark, only available when benchmark is failed
        cluster:
          type: string
          description: the cluster name
        clusterID:
          type: string
          description: the cluster id
        command:
          type: string
          description: the actual command executed during the benchmark run stage
        database:
          type: string
          description: the database name
        completionTimestamp:
          format: date-time
          type: string
          description: the completion timestamp of benchmark
        createdAt:
          format: date-time
          type: string
          description: the create timestamp of benchmark
        extra:
          type: string
          description: extra args for benchmark
        status:
          $ref: '#/components/schemas/benchmarkStatus'
    benchmarkList:
      description: BenchmarkList is a list of benchmarks
      type: array
      items:
        $ref: '#/components/schemas/benchmark'
    deleteBenchOption:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
    benchmarkStep:
      type: string
      description: Step of benchmark
      default: all
      enum:
        - prepare
        - run
        - cleanup
        - all
    pgbench:
      description: pgbench is the pgbench benchmark object
      required:
        - address
        - cluster
        - database
        - password
        - username
      type: object
      properties:
        step:
          $ref: '#/components/schemas/benchmarkStep'
        limitCpu:
          type: string
          description: the cpu limit for test container
          default: '1'
        limitMemory:
          type: string
          description: the memory limit for test container
          default: 2Gi
        requestCpu:
          type: string
          description: the cpu request for test container
          default: '0.25'
        requestMemory:
          type: string
          description: the memory request for test container
          default: 0.5Gi
        name:
          type: string
          description: the name of benchmark
        cluster:
          type: string
          description: the cluster name
        database:
          type: string
          description: the database name
        username:
          type: string
          description: Username for database
        password:
          type: string
          description: Password for database
        address:
          type: string
          description: Address for database
        scale:
          type: integer
          description: Scale of pgbench
        clients:
          type: integer
          description: Number of clients to run
        threads:
          type: integer
          description: Number of threads to use
        duration:
          type: integer
          description: the seconds of test duration
        selectOnly:
          type: boolean
          description: Run select only test
          default: false
        extraArgs:
          type: string
          description: Extra arguments for pgbench
    sysbenchTestType:
      type: string
      description: Test type for sysbench
      default: oltp_read_write
      enum:
        - oltp_delete
        - oltp_insert
        - oltp_point_select
        - oltp_read_only
        - oltp_read_write
        - oltp_update_index
        - oltp_update_non_index
        - oltp_write_only
        - select_random_points
        - select_random_ranges
        - bulk_insert
        - oltp_read_write_pct
    sysbench:
      description: sysbench is the sysbench benchmark object
      required:
        - address
        - cluster
        - database
        - password
        - username
      type: object
      properties:
        step:
          $ref: '#/components/schemas/benchmarkStep'
        limitCpu:
          type: string
          description: the cpu limit for test container
          default: '1'
        limitMemory:
          type: string
          description: the memory limit for test container
          default: 2Gi
        requestCpu:
          type: string
          description: the cpu request for test container
          default: '0.25'
        requestMemory:
          type: string
          description: the memory request for test container
          default: 0.5Gi
        name:
          type: string
          description: the name of benchmark
        cluster:
          type: string
          description: the cluster name
        database:
          type: string
          description: the database name
        threads:
          type: integer
          description: Number of threads to use
          nullable: true
        duration:
          type: integer
          description: the seconds of test duration
          nullable: true
        tableSize:
          type: integer
          description: Number of rows per table
          nullable: true
        tableNum:
          type: integer
          description: Number of tables
          nullable: true
        testType:
          $ref: '#/components/schemas/sysbenchTestType'
        readPercent:
          type: integer
          description: Percentage of reads, only used for oltp_read_write_pct
          nullable: true
        writePercent:
          type: integer
          description: Percentage of writes, only used for oltp_read_write_pct
          nullable: true
        username:
          type: string
          description: Username for database
        password:
          type: string
          description: Password for database
        address:
          type: string
          description: Address for database
        extraArgs:
          type: string
          description: Extra arguments for sysbench
    tpcc:
      description: tpcc is the tpcc benchmark object
      required:
        - address
        - cluster
        - database
        - password
        - username
      type: object
      properties:
        step:
          $ref: '#/components/schemas/benchmarkStep'
        limitCpu:
          type: string
          description: the cpu limit for test container
          default: '1'
        limitMemory:
          type: string
          description: the memory limit for test container
          default: 2Gi
        requestCpu:
          type: string
          description: the cpu request for test container
          default: '0.25'
        requestMemory:
          type: string
          description: the memory request for test container
          default: 0.5Gi
        name:
          type: string
          description: the name of benchmark
        cluster:
          type: string
          description: the cluster name
        database:
          type: string
          description: the database name
        username:
          type: string
          description: Username for database
        password:
          type: string
          description: Password for database
        address:
          type: string
          description: Address for database
        threads:
          type: integer
          description: Number of threads to use
          nullable: true
        warehouses:
          type: integer
          description: Number of warehouses
          nullable: true
        duration:
          type: integer
          description: the minutes of test duration
          nullable: true
        limitTxPerMin:
          type: integer
          description: limit the number of transactions per minute, 0 means no limit
        newOrderWeight:
          type: integer
          description: Percentage of new order transactions
          nullable: true
        paymentWeight:
          type: integer
          description: Percentage of payment transactions
          nullable: true
        orderStatusWeight:
          type: integer
          description: Percentage of order status transactions
          nullable: true
        deliveryWeight:
          type: integer
          description: Percentage of delivery transactions
          nullable: true
        stockLevelWeight:
          type: integer
          description: Percentage of stock level transactions
          nullable: true
        loadWorkers:
          type: integer
          description: number of parallel threads used to create initial content
          default: 4
        runTxnsPerTerminal:
          type: integer
          description: number of transactions to run per thread
          nullable: true
        extraArgs:
          type: string
          description: Extra arguments for tpcc
    ycsbRedisMode:
      type: string
      description: Redis mode
      enum:
        - single
        - sentinel
        - cluster
    ycsb:
      description: ycsb is the ycsb benchmark object
      required:
        - address
        - cluster
        - username
      type: object
      properties:
        step:
          $ref: '#/components/schemas/benchmarkStep'
        limitCpu:
          type: string
          description: the cpu limit for test container
          default: '1'
        limitMemory:
          type: string
          description: the memory limit for test container
          default: 2Gi
        requestCpu:
          type: string
          description: the cpu request for test container
          default: '0.25'
        requestMemory:
          type: string
          description: the memory request for test container
          default: 0.5Gi
        name:
          type: string
          description: the name of benchmark
        database:
          type: string
          description: the database name
          default: test
        cluster:
          type: string
          description: the cluster name
        username:
          type: string
          description: Username for database
        password:
          type: string
          description: Password for database
        address:
          type: string
          description: Address for database
        recordCount:
          type: integer
          description: Number of records to load into database
          nullable: true
        operationCount:
          type: integer
          description: Number of operations to perform
          nullable: true
        readProportion:
          type: integer
          description: Percentage of read operations
          nullable: true
        updateProportion:
          type: integer
          description: Percentage of update operations
          nullable: true
        insertProportion:
          type: integer
          description: Percentage of insert operations
        readModifyWriteProportion:
          type: integer
          description: Percentage of read-modify-write operations
        scanProportion:
          type: integer
          description: Percentage of scan operations
        threads:
          type: integer
          description: Number of client threads to run
          nullable: true
        extraArgs:
          type: string
          description: Extra arguments for ycsb
        redisMode:
          $ref: '#/components/schemas/ycsbRedisMode'
        redisSentinelMaster:
          type: string
          description: Redis sentinel master
        redisSentinelUsername:
          type: string
          description: Redis sentinel username
        redisSentinelPassword:
          type: string
          description: Redis sentinel password
    esrallyOnError:
      type: string
      description: Rally request error handling behavior
      default: abort
      enum:
        - abort
        - continue
    esrallyTelemetry:
      type: string
      description: Rally runtime telemetry device
      enum:
        - node-stats
        - recovery-stats
        - ccr-stats
        - segment-stats
        - transform-stats
        - searchable-snapshots-stats
        - shard-stats
        - data-stream-stats
        - ingest-pipeline-stats
        - disk-usage-stats
        - geoip-stats
    esrallyDataProfile:
      type: string
      description: Generated Elasticsearch dataset shape
      default: logs
      enum:
        - logs
        - metrics
        - http_logs
        - metricbeat
        - geonames
        - nyc_taxis
        - noaa
        - nested
        - pmc
        - so
        - dense_vector
    esrallyWorkload:
      type: string
      description: Generated Rally workload profile
      default: all
      enum:
        - index
        - search
        - mixed
        - all
    esrally:
      description: esrally is the Elasticsearch Rally benchmark object
      required:
        - address
        - cluster
        - username
      type: object
      properties:
        step:
          $ref: '#/components/schemas/benchmarkStep'
        limitCpu:
          type: string
          description: the cpu limit for test container
          default: '1'
        limitMemory:
          type: string
          description: the memory limit for test container
          default: 2Gi
        requestCpu:
          type: string
          description: the cpu request for test container
          default: '0.25'
        requestMemory:
          type: string
          description: the memory request for test container
          default: 0.5Gi
        name:
          type: string
          description: the name of benchmark
        cluster:
          type: string
          description: the cluster name
        username:
          type: string
          description: Username for Elasticsearch
        password:
          type: string
          description: Password for Elasticsearch
        address:
          type: string
          description: Address for Elasticsearch
        onError:
          $ref: '#/components/schemas/esrallyOnError'
        telemetry:
          type: array
          description: Rally telemetry devices
          items:
            $ref: '#/components/schemas/esrallyTelemetry'
        dataProfile:
          $ref: '#/components/schemas/esrallyDataProfile'
        documentCount:
          type: integer
          minimum: 1
          default: 10000
          nullable: true
          description: Number of generated documents
        workload:
          $ref: '#/components/schemas/esrallyWorkload'
        extraArgs:
          type: string
          description: Extra arguments for esrally
    clusterType:
      title: ClusterType
      type: string
      nullable: true
      description: Describes the type of cluster
      default: Normal
      enum:
        - Normal
        - DisasterRecovery
        - BlueGreenDeployment
    tag:
      description: tag info
      properties:
        id:
          description: The id of the tag
          format: int64
          type: string
        key:
          description: the key of the tag
          type: string
        value:
          description: The value corresponding to the key
          type: string
      required:
        - id
      type: object
    endpointType:
      description: Type of endpoint
      type: string
      enum:
        - ClusterIP
        - NodePort
        - LoadBalancer
        - PodIP
        - HostNetwork
        - PodFQDN
    endpointNetworkType:
      description: Network type of endpoint
      type: string
      enum:
        - Internet
        - Intranet
    endpoint:
      description: Endpoint is the information of cluster endpoints
      properties:
        title:
          description: title of the endpoint
          type: string
        component:
          description: Component type name
          type: string
        hosts:
          description: Endpoint hosts
          type: array
          items:
            type: string
        port:
          description: Endpoint port
          type: integer
          format: int32
        type:
          $ref: '#/components/schemas/endpointType'
        networkType:
          $ref: '#/components/schemas/endpointNetworkType'
        serviceName:
          description: Service name of endpoint
          type: string
        podService:
          description: Pod service name of endpoint
          type: boolean
        portName:
          description: Port name of endpoint
          type: string
        instances:
          description: Endpoint backend instances
          type: array
          items:
            type: string
        mutable:
          description: Whether the endpoint is mutable
          type: boolean
      required:
        - title
        - component
        - hosts
        - port
        - type
        - networkType
        - serviceName
        - portName
        - mutable
      type: object
    clusterListItem:
      description: KubeBlocks cluster information
      properties:
        cloudProvider:
          description: Cloud Provider
          type: string
        cloudRegion:
          description: Cloud Provider
          type: string
        availabilityZones:
          title: Availability Zones
          description: Availability Zones
          items:
            type: string
          type: array
        createdAt:
          description: CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
        displayName:
          description: Display name of cluster.
          type: string
        engine:
          description: Cluster Application Engine
          type: string
        mode:
          description: Cluster topology mode
          type: string
        environmentName:
          description: Environment Name
          type: string
        environmentDisplayName:
          description: Environment Display Name
          type: string
        id:
          description: ID of cluster
          type: string
        name:
          description: Name of cluster. Name must be unique within an Org
          type: string
        parentId:
          title: ParentId
          type: string
          nullable: true
          description: When two clusters have a relationship, parentId records the parent cluster id.Can be empty when there is no relationship
        parentName:
          title: ParentName
          type: string
          nullable: true
          description: the name of parent cluster
        parentDisplayName:
          title: ParentDisplayName
          type: string
          nullable: true
          description: the display name of parent cluster
        dependencyType:
          title: DependencyType
          type: string
          nullable: true
          description: |
            the dependency relationship between the cluster and the refClusterName
            query parameter. `Dependency` means the cluster is referenced by the
            refClusterName cluster (the refClusterName depends on it); `Dependent`
            means the cluster references the refClusterName cluster (it depends on
            the refClusterName). Only set when list clusters with refClusterName.
        dependencyLabel:
          title: DependencyLabel
          type: object
          additionalProperties:
            type: string
          description: |
            the localized title of the serviceRef through which the refClusterName
            cluster depends on the returned cluster. Only set for clusters with
            dependencyType `Dependency`.
        clusterType:
          $ref: '#/components/schemas/clusterType'
        delay:
          title: Delay
          type: number
          format: double
          nullable: true
        status:
          description: Cluster Status
          type: string
        terminationPolicy:
          description: Cluster termination policy
          type: string
        updatedAt:
          description: UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
        version:
          description: Cluster Application Version
          type: string
        classCode:
          description: Cluster main component classCode
          type: string
        storage:
          description: Cluster main component storage
          type: string
        codeShort:
          description: Cluster main component codeShort
          type: string
        orgName:
          description: Org Name
          type: string
        project:
          description: Name of project, it is the alias of environment namespace
          type: string
        tags:
          description: Tags bound to the cluster
          items:
            $ref: '#/components/schemas/tag'
          type: array
        endpoints:
          description: Cached user-visible endpoints of the cluster; omitted unless includeEndpoints is true
          items:
            $ref: '#/components/schemas/endpoint'
          type: array
          x-omitempty: true
      required:
        - cloudProvider
        - createdAt
        - engine
        - environmentName
        - id
        - name
        - status
        - terminationPolicy
        - updatedAt
        - version
      type: object
    clusterList:
      description: ClusterList is a list of KubeBlocks clusters
      properties:
        items:
          description: Items is the list of KubeBlocks cluster objects in the list
          items:
            $ref: '#/components/schemas/clusterListItem'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    clusterLicense:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        expiredAt:
          type: string
          format: date-time
        key:
          type: string
          format: binary
        keys:
          type: object
          additionalProperties:
            type: string
    parameterTemplatePartition:
      enum:
        - default
        - custom
      type: string
    paramTplsItem:
      description: the item of the parameter template
      type: object
      properties:
        component:
          type: string
          description: component type, refer to componentDef and support NamePrefix
        paramTplName:
          title: Parameter Template Name
          type: string
          description: name of assigned parameter template
        paramTplID:
          type: string
          description: id of parameter template
          nullable: true
        orgName:
          type: string
          description: org name of the parameter template
          nullable: true
        paramTplPartition:
          $ref: '#/components/schemas/parameterTemplatePartition'
    paramTpls:
      type: array
      description: Items is the list of parameter template in the list
      items:
        $ref: '#/components/schemas/paramTplsItem'
    clusterTerminationPolicy:
      title: Termination Policy
      type: string
      description: The termination policy of cluster.
      default: Delete
      enum:
        - DoNotTerminate
        - Delete
    instanceTemplateCreate:
      type: object
      additionalProperties: false
      description: 'Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.'
      required:
        - name
        - replicas
      properties:
        nodeGroup:
          type: string
          description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
        name:
          type: string
          minLength: 1
          description: Instance template name; must match a chart-rendered instance.
        replicas:
          type: integer
          minimum: 0
          description: Replica count for this instance template.
        availabilityZone:
          type: string
          description: Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
        storageClass:
          type: string
          description: StorageClass name for all persistent volumes in this template. Copied from component volumeClaimTemplates, preserving volume sizes and other settings while overriding storageClassName. Chart instance volume templates are cleared; omitted or empty leaves instance volumeClaimTemplates unset.
        env:
          type: array
          description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
          items:
            type: object
            required:
              - name
              - value
            properties:
              name:
                type: string
                minLength: 1
              value:
                type: string
                description: Literal string; optional values may be empty. valueFrom is unsupported.
    ioQuantity:
      description: IO Quantity describes IOPS and BPS of a volume
      properties:
        readIOPS:
          type: integer
          nullable: true
          format: int64
        writeIOPS:
          type: integer
          format: int64
          nullable: true
        readBPS:
          type: integer
          nullable: true
          format: int64
        writeBPS:
          type: integer
          nullable: true
          format: int64
      type: object
    componentVolumeItem:
      description: ComponentVolumeItem is the information of a component volume
      type: object
      properties:
        name:
          type: string
          description: volume name
        storage:
          title: Storage(Gi)
          minimum: 1
          type: number
          description: Storage size, the unit is Gi.
          format: double
        ioLimits:
          $ref: '#/components/schemas/ioQuantity'
        ioReserves:
          $ref: '#/components/schemas/ioQuantity'
    ipPoolSelection:
      type: object
      description: Provider-qualified Pod IP pool selection for component pod IP allocation.
      required:
        - provider
      properties:
        provider:
          $ref: '#/components/schemas/ipPoolProvider'
        ipv4Pools:
          type: array
          items:
            type: string
          description: IPv4 pool names resolved within the selected provider.
        ipv6Pools:
          type: array
          items:
            type: string
          description: IPv6 pool names resolved within the selected provider.
    componentNetwork:
      type: object
      description: Per-component network configuration.
      properties:
        ipPool:
          $ref: '#/components/schemas/ipPoolSelection'
    componentItemCreate:
      type: object
      description: ComponentItem is the information of a component
      required:
        - component
      properties:
        annotations:
          type: object
          additionalProperties:
            type: string
          description: User-provided component annotations, merged over chart defaults. Platform-managed keys cannot be overridden. Omitted or empty preserves defaults; empty string values are literal values, not deletions.
        labels:
          type: object
          additionalProperties:
            type: string
          description: User-provided component labels, merged over chart defaults. Key prefixes before / matching kubeblocks.io, kubernetes.io, k8s.io or any of their subdomains are reserved. Keys and values must satisfy Kubernetes label syntax. Omitted or empty preserves defaults; empty string values are literal values, not deletions.
        nodeGroup:
          type: string
          description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
        availabilityZone:
          type: string
          description: Component AZ, enabled in the environment. Required when placementScope is component and this component has no templates; otherwise forbidden. An omitted nodeGroup does not inherit the cluster host group.
        component:
          type: string
          description: component type, refer to componentDef and support NamePrefix
        compNum:
          title: CompNum
          type: integer
          description: The number of components, if often used as shards number
        replicas:
          title: Replicas
          type: integer
          description: The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3. When instanceTemplates is provided, this must equal the sum of all template replica counts.
        instanceTemplates:
          type: array
          minItems: 1
          description: Per-template replicas and optional overlays (env, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. 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.
          items:
            $ref: '#/components/schemas/instanceTemplateCreate'
        skipResourceConstraints:
          type: boolean
          description: Whether to skip resource constraint validation when creating cluster
          default: false
        classCode:
          type: string
        cpu:
          title: CPU
          type: number
          description: CPU cores.
          format: double
          minimum: 0
          exclusiveMinimum: true
        memory:
          title: Memory(Gi)
          type: number
          description: Memory, the unit is Gi.
          format: double
          minimum: 0
          exclusiveMinimum: true
        storageClass:
          title: StorageClass
          type: string
          description: StorageClass name
        volumes:
          type: array
          items:
            $ref: '#/components/schemas/componentVolumeItem'
        systemAccountSecretName:
          description: The name of the secret that contains the system account credentials
          type: string
        network:
          $ref: '#/components/schemas/componentNetwork'
    componentsCreate:
      type: array
      description: Components is the list of components
      items:
        $ref: '#/components/schemas/componentItemCreate'
    initOptionItem:
      description: InitOptionItem is the information of init option
      type: object
      properties:
        component:
          type: string
          description: component type, refer to componentDef and support NamePrefix'
        initParams:
          type: object
          additionalProperties:
            type: string
        specName:
          type: string
          description: config spec name
    initOptions:
      type: array
      description: InitOptions is the list of init option
      items:
        $ref: '#/components/schemas/initOptionItem'
    backupRetentionPolicy:
      type: string
      description: backup retention policy when cluster is deleted
      enum:
        - All
        - LastOne
        - WipeOut
    clusterBackup:
      description: clusterBackup is the payload for cluster backup
      properties:
        pitrEnabled:
          default: false
          description: PITREnabled or not
          type: boolean
        continuousBackupMethod:
          description: continuous backup method for pitr
          type: string
        autoBackup:
          default: false
          description: autoBackup or not
          type: boolean
        autoBackupMethod:
          description: name of the backup method
          type: string
        backupRepo:
          description: backupRepoName is the name of backupRepo and it is used to store the backup data
          type: string
        cronExpression:
          description: cronExpression specifies the cron expression
          type: string
        retentionPeriod:
          description: retentionPeriod specifies the retention period
          type: string
        retentionPolicy:
          $ref: '#/components/schemas/backupRetentionPolicy'
        snapshotVolumes:
          description: snapshotVolumes specifies whether to take snapshots of persistent volumes to back up
          type: boolean
          nullable: true
        incrementalBackupEnabled:
          description: specify whether to enable incremental backup
          default: false
          type: boolean
        incrementalCronExpression:
          description: the crop expression for incremental backup schedule
          type: string
      type: object
    serviceDescriptor:
      type: object
      description: serviceDescriptor that will be used in serviceRef. The field definition is in line with kubeblocks.
      properties:
        host:
          type: string
        port:
          type: string
        endpoint:
          type: string
        username:
          type: string
        password:
          type: string
    serviceRef:
      type: object
      description: |
        defines a serviceRef that references service provided by other cluster or external service.
        Only one of cluster or serviceDescriptor field should be set.
      required:
        - name
      properties:
        name:
          type: string
          description: refers to the serviceRef name defined in engineoption
        cluster:
          type: string
          description: |
            the cluster name that will be used in serviceRef. The referenced cluster should 
            be at the same organization as the current cluster.
        clusterDefinition:
          type: string
          description: the cluster definition of the referenced cluster.
        serviceDescriptor:
          $ref: '#/components/schemas/serviceDescriptor'
        extraForManualInput:
          type: object
          additionalProperties:
            type: string
          description: |
            extra fields for manual input of the serviceRef. The keys must be defined in the
            engineoption modeServiceRef.extraForManualInput. They are mapped to helm values
            via the corresponding helmValuePath.extraForManualInput.
    clusterObjectStorageConfig:
      type: object
      description: Specify the object storage config for cluster like starrocks
      required:
        - serviceRef
        - bucket
      properties:
        serviceRef:
          $ref: '#/components/schemas/serviceRef'
        bucket:
          type: string
          description: the bucket name for the object storage
        usePathStyle:
          type: boolean
          description: whether the object storage is using path-style. If false, virtual host style will be used.
        region:
          type: string
          description: region to use. If using a s3-compatible service that does not require a region (like minio), leave it blank.
    clusterMaintainceWindow:
      type: object
      properties:
        startHour:
          type: integer
          description: start hour, must be 0-23, use UTC timezone
          x-omitempty: false
        endHour:
          type: integer
          description: end hour, must be 0-23 and greater than start hour, use UTC timezone
          x-omitempty: false
        weekdays:
          type: string
          x-omitempty: false
          description: weekdays, comma separated values of 1-7
      description: the maintenance window for a cluster
    schedulingPolicyType:
      type: string
      enum:
        - HardAntiAffinity
        - SoftAntiAffinity
        - Disabled
      default: Disabled
      description: |
        * `HardAntiAffinity` - Strictly enforce pod anti-affinity across nodes. Pods will not be scheduled when the anti-affinity constraints cannot be satisfied.
        * `SoftAntiAffinity` - Prefer to spread pods across nodes using anti-affinity, but allow scheduling on the same node when constraints cannot be fully satisfied.
        * `Disabled` - Do not apply pod anti-affinity constraints on nodes.
    clusterCreate:
      required:
        - engine
        - environmentName
        - name
      type: object
      properties:
        parentId:
          title: ParentId
          type: string
          nullable: true
          description: When two clusters have a relationship, parentId records the parent cluster id.Can be empty when there is no relationship
        clusterType:
          $ref: '#/components/schemas/clusterType'
        orgName:
          title: Org Name
          type: string
          description: Org Name
        environmentName:
          title: Environment Name
          type: string
          description: Environment Name
        project:
          title: Project
          type: string
          default: kubeblocks-cloud-ns
          description: Name of project, it is the alias of environment namespace
        name:
          title: Name
          type: string
          description: Name of cluster. Name must be unique within an Org
        engine:
          title: Engine
          type: string
          description: Cluster Application Engine
        license:
          $ref: '#/components/schemas/clusterLicense'
        paramTpls:
          $ref: '#/components/schemas/paramTpls'
        version:
          title: Version
          type: string
          description: Cluster Application Version
        terminationPolicy:
          $ref: '#/components/schemas/clusterTerminationPolicy'
        mode:
          title: Mode
          type: string
          description: Cluster topology mode
        components:
          $ref: '#/components/schemas/componentsCreate'
        extra:
          title: Extra
          type: object
          additionalProperties:
            type: object
            properties: {}
          description: Extra configuration for cluster. This will be added to helm values to render the cluster chart.
        initOptions:
          $ref: '#/components/schemas/initOptions'
        singleZone:
          title: Single availability zones
          description: 'Deprecated: use availabilityZones to specify the eligible availability zones. To select one zone, provide a single-element list.'
          deprecated: true
          type: boolean
          default: false
        availabilityZones:
          title: Availability Zones
          description: Eligible availability zones for cluster-level placement on KubeBlocks 1.x. Supply one zone for single-zone placement or multiple zones for preferred spread across those zones. An omitted or empty list uses the environment's availability zones.
          items:
            type: string
          type: array
        backup:
          description: Set cluster backup
          $ref: '#/components/schemas/clusterBackup'
        nodeGroup:
          title: NodeGroup
          description: Specify a NodeGroup for the cluster
          type: string
          nullable: true
        displayName:
          description: Display name of cluster.
          type: string
        static:
          description: if cluster is static cluster
          type: boolean
        networkMode:
          description: Specify the network mode for intra-cluster communication
          $ref: '#/components/schemas/networkMode'
        vipPoolName:
          title: VIP Pool Name
          description: Name of the VIP Pool (VIP Pool poolName) used as the MetalLB address pool for LoadBalancer services. Only effective when networkMode is LoadBalancer.
          type: string
        serviceRefs:
          type: array
          items:
            $ref: '#/components/schemas/serviceRef'
        objectStorageConfig:
          $ref: '#/components/schemas/clusterObjectStorageConfig'
        maintainceWindow:
          $ref: '#/components/schemas/clusterMaintainceWindow'
        schedulingPolicy:
          description: Scheduling policy for this cluster.
          $ref: '#/components/schemas/schedulingPolicyType'
        schedulerName:
          title: Scheduler Name
          type: string
          nullable: true
          description: Scheduler used by this cluster. If omitted, KBE uses the environment default. When koordinatorEnabled is true for the target environment, the environment default is the globally configured Koordinator scheduler.
        reservationResourceClass:
          nullable: true
          $ref: '#/components/schemas/koordinatorReservationResourceClass'
      description: KubeBlocks cluster information
    componentItem:
      type: object
      description: ComponentItem is the information of a component
      properties:
        annotations:
          type: object
          additionalProperties:
            type: string
          description: User-provided component annotations. Does not include chart defaults or system-generated values.
        labels:
          type: object
          additionalProperties:
            type: string
          description: User-provided component labels. Does not include chart defaults or system-generated values.
        nodeGroup:
          type: string
          description: Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
        availabilityZone:
          type: string
          description: Explicit component AZ selection, if configured.
        instanceTemplates:
          type: array
          x-omitempty: true
          description: Instance template assignments with effective replicas, placement and storage class, and user-provided env.
          items:
            $ref: '#/components/schemas/instanceTemplateCreate'
        name:
          type: string
          description: component name
        component:
          type: string
          description: component type, refer to componentDef and support NamePrefix
        compNum:
          title: CompNum
          type: integer
          description: number of components
        replicas:
          title: Replicas
          type: integer
          description: The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3.
        classCode:
          type: string
        cpu:
          title: CPU
          type: number
          description: CPU cores.
          format: double
        memory:
          title: Memory(Gi)
          type: number
          description: Memory, the unit is Gi.
          format: double
        storageClass:
          title: StorageClass
          type: string
          description: StorageClass name
        volumes:
          type: array
          items:
            $ref: '#/components/schemas/componentVolumeItem'
        codeShort:
          description: Cluster main component codeShort
          type: string
        systemAccountSecretName:
          description: The name of the secret that contains the system account credentials
          type: string
        network:
          $ref: '#/components/schemas/componentNetwork'
    components:
      type: array
      description: Components is the list of components
      items:
        $ref: '#/components/schemas/componentItem'
    clusterReference:
      type: object
      description: Cluster reference information returned by cluster detail APIs.
      properties:
        cluster:
          type: string
          description: Name of the cluster that references this cluster.
        clusterDefinition:
          type: string
          description: Cluster definition of the referencing cluster.
    cluster:
      required:
        - engine
        - environmentName
        - name
      type: object
      properties:
        id:
          title: ID
          type: string
          description: Cluster ID
        parentId:
          title: ParentId
          type: string
          nullable: true
          description: When two clusters have a relationship, parentId records the parent cluster id.Can be empty when there is no relationship
        parentName:
          title: ParentName
          type: string
          nullable: true
          description: the name of parent cluster
        parentDisplayName:
          title: ParentDisplayName
          type: string
          nullable: true
          description: the display name of parent cluster
        clusterType:
          $ref: '#/components/schemas/clusterType'
        delay:
          title: Delay
          type: number
          format: double
          nullable: true
        orgName:
          title: Org Name
          type: string
          description: Org Name
        cloudProvider:
          title: Cloud Provider
          type: string
          description: Cloud Provider
        environmentId:
          title: Environment ID
          type: string
          description: ID of the environment
        environmentName:
          title: Environment Name
          type: string
          description: Environment Name
        cloudRegion:
          title: Cloud Region
          type: string
          description: Cloud Region
        project:
          title: Project
          type: string
          default: kubeblocks-cloud-ns
          description: Name of project, it is the alias of environment namespace
        name:
          title: Name
          type: string
          description: Name of cluster. Name must be unique within an Org
        hash:
          title: Hash
          type: string
          description: Hash of cluster. Name must be unique within an Org
        engine:
          title: Engine
          type: string
          description: Cluster Application Engine
        license:
          $ref: '#/components/schemas/clusterLicense'
        paramTpls:
          $ref: '#/components/schemas/paramTpls'
        version:
          title: Version
          type: string
          description: Cluster Application Version
        terminationPolicy:
          $ref: '#/components/schemas/clusterTerminationPolicy'
        tlsEnabled:
          title: TLS Enabled
          type: boolean
          description: Enable the cluster to provide TLS connection or not.
          default: false
        nodePortEnabled:
          title: NodePort service enabled
          type: boolean
          description: Enable the cluster to provide NodePort service or not.
          default: false
        status:
          title: Status
          type: string
          description: Cluster Status
        createdAt:
          title: CreatedAt
          type: string
          description: CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
          format: date-time
        updatedAt:
          title: UpdatedAt
          type: string
          description: UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
          format: date-time
        mode:
          title: Mode
          type: string
          description: Cluster topology mode
        proxyEnabled:
          title: ProxyEnabled
          type: boolean
          description: Proxy Enabled
          default: false
        components:
          $ref: '#/components/schemas/components'
        extra:
          title: Extra
          type: object
          additionalProperties:
            type: object
            properties: {}
          description: Extra configuration for cluster
        initOptions:
          $ref: '#/components/schemas/initOptions'
        singleZone:
          title: Single availability zones
          description: Use single availability zones
          type: boolean
          default: false
        availabilityZones:
          title: Availability Zones
          description: Availability Zones
          items:
            type: string
          type: array
        podAntiAffinityEnabled:
          title: PodAntiAffinityEnabled
          description: Enable pod antiaffinity for cluster
          type: boolean
          default: true
        backup:
          description: Set cluster backup
          $ref: '#/components/schemas/clusterBackup'
        nodeGroup:
          title: NodeGroup
          description: Specify a NodeGroup for the cluster
          type: string
          nullable: true
        codeShort:
          description: Cluster main component codeShort
          type: string
        displayName:
          description: Display name of cluster.
          type: string
        static:
          description: if cluster is static cluster
          type: boolean
        networkMode:
          description: Specify the network mode for intra-cluster communication
          $ref: '#/components/schemas/networkMode'
        serviceRefs:
          description: serviceRefs used by this cluster
          type: array
          items:
            $ref: '#/components/schemas/serviceRef'
        referencedBy:
          description: this list of objects (currently, object is a cluster) that uses this cluster as a serviceRef
          type: array
          items:
            $ref: '#/components/schemas/clusterReference'
        objectStorageConfig:
          $ref: '#/components/schemas/clusterObjectStorageConfig'
        maintainceWindow:
          $ref: '#/components/schemas/clusterMaintainceWindow'
        schedulingPolicy:
          description: Scheduling policy for this cluster.
          $ref: '#/components/schemas/schedulingPolicyType'
        schedulerName:
          title: Scheduler Name
          type: string
          nullable: true
          description: Effective scheduler used when the cluster was created.
        reservationResourceClass:
          nullable: true
          $ref: '#/components/schemas/koordinatorReservationResourceClass'
      description: KubeBlocks cluster details
    clusterBatchUpdateData:
      type: object
      properties:
        displayName:
          description: Display name of cluster. This will be applied to all clusters in the batch.
          type: string
          nullable: true
        maintainceWindow:
          $ref: '#/components/schemas/clusterMaintainceWindow'
          description: Maintenance window. This will be applied to all clusters in the batch.
      description: ClusterBatchUpdateData contains the update information to be applied to all clusters in the batch
    clusterBatchUpdate:
      type: object
      required:
        - clusterIDs
        - update
      properties:
        clusterIDs:
          type: array
          items:
            type: string
          description: List of cluster ID to update
          minItems: 1
          maxItems: 50
        update:
          $ref: '#/components/schemas/clusterBatchUpdateData'
          description: Update information to be applied to all clusters
      description: ClusterBatchUpdate is the payload for batch updating multiple clusters with the same update information
    clusterUpdate:
      type: object
      properties:
        terminationPolicy:
          $ref: '#/components/schemas/clusterTerminationPolicy'
        displayName:
          description: Display name of cluster.
          type: string
          nullable: true
        maintainceWindow:
          $ref: '#/components/schemas/clusterMaintainceWindow'
        newServiceRefs:
          type: array
          description: |
            ServiceRefs to add to the cluster. Each serviceRef must be supported
            by the current engine mode and must not duplicate the existing
            serviceRefs of the cluster.
          items:
            $ref: '#/components/schemas/serviceRef'
        serviceRefsUpdate:
          type: array
          description: |
            ServiceRefs to update. Each serviceRef name must match an existing
            serviceRef of the cluster, and the corresponding engine option
            modeServiceRef.update.enable must be true. ServiceRefs that auto
            create their ServiceDescriptor and Secret get their corresponding
            K8s objects updated; serviceRefs with manual input must be handled
            by each engine individually and are rejected.
          items:
            $ref: '#/components/schemas/serviceRef'
      description: ClusterUpdate is the payload to update a KubeBlocks cluster
    instanceStorageItem:
      description: Instance storage information
      properties:
        name:
          description: Specify the name of storage, which must be unique.
          title: name
          type: string
        size:
          description: Specify the size of storage, the unit is Gi.
          title: size
          type: string
        ioReserves:
          $ref: '#/components/schemas/ioQuantity'
        ioLimits:
          $ref: '#/components/schemas/ioQuantity'
      required:
        - name
        - size
      type: object
    instance:
      description: Instance is the information of KubeBlocks cluster instances
      properties:
        accessMode:
          description: Access mode for instance
          type: string
        orgName:
          description: Org name
          type: string
        cloud:
          description: Cloud for instance
          type: string
        cluster:
          description: Cluster name
          type: string
        componentName:
          description: Component name
          type: string
        componentDef:
          description: ComponentDefinition name
          type: string
        instanceTemplate:
          description: Instance template name within the actual component. Omitted when no template identity is available.
          type: string
        component:
          description: component type, refer to componentDef and support NamePrefix
          type: string
        cpu:
          description: cpu with uint cores.
          type: string
        createdAt:
          description: created at
          type: string
        memory:
          description: Memory with uint Gi.
          type: string
        name:
          description: Instance name
          type: string
        node:
          description: node name
          type: string
        containers:
          description: Container names in the pod
          type: array
          items:
            type: string
        podIP:
          description: Pod IP address
          type: string
        region:
          description: Region for instance
          type: string
        role:
          description: Role for instance
          type: string
        status:
          required:
            - phase
          type: object
          properties:
            phase:
              type: string
              description: The current phase of the cluster
            reason:
              type: string
              description: A brief reason for the cluster's current phase
            message:
              type: string
              description: A human-readable message indicating details about the cluster's current phase
          description: Status for instance
        storage:
          description: storage sets the storage size value mapping key
          type: array
          items:
            $ref: '#/components/schemas/instanceStorageItem'
        zone:
          description: Available zone for instance
          type: string
      required:
        - accessMode
        - cloud
        - cluster
        - component
        - cpu
        - createdAt
        - memory
        - name
        - node
        - region
        - role
        - status
        - zone
      type: object
    instanceList:
      description: ClusterList is a list of KubeBlocks clusters
      properties:
        items:
          description: Items is the list of KubeBlocks cluster objects in the list
          items:
            $ref: '#/components/schemas/instance'
          type: array
      required:
        - items
      type: object
    offlineInstance:
      description: Offline instance is the information of KubeBlocks cluster instances
      properties:
        cluster:
          description: Cluster name
          type: string
        componentName:
          description: Component name
          type: string
        component:
          description: component type, refer to componentDef and support NamePrefix
          type: string
        name:
          description: Instance name
          type: string
      required:
        - cluster
        - component
        - name
      type: object
    offlineInstanceList:
      description: OfflineInstanceList is a list of offline KubeBlocks cluster instances
      properties:
        items:
          description: Items is the list of offline KubeBlocks cluster instance objects in the list
          items:
            $ref: '#/components/schemas/offlineInstance'
          type: array
      required:
        - items
      type: object
    clusterEventItem:
      description: Kubernetes event for a cluster, component or InstanceSet
      type: object
      required:
        - clusterName
        - objectKind
        - objectName
        - objectUID
        - name
        - type
        - reason
        - message
        - source
        - count
        - eventTime
      properties:
        clusterName:
          type: string
        objectKind:
          description: Kubernetes kind of the involved object
          type: string
        objectName:
          type: string
        objectUID:
          type: string
        componentName:
          type: string
        name:
          type: string
        type:
          type: string
        reason:
          type: string
        message:
          type: string
        source:
          type: string
        count:
          type: integer
          format: int32
        eventTime:
          description: Last observation time, falling back to the event creation time
          type: string
          format: date-time
    clusterEventList:
      type: object
      required:
        - items
        - truncated
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/clusterEventItem'
        truncated:
          description: Whether more matching events exist than the limit
          type: boolean
    instanceEventItem:
      description: Instance event
      properties:
        clusterName:
          description: Cluster name of the event
          type: string
        instanceName:
          description: Instance name of the event
          type: string
        name:
          description: Name of the event
          type: string
        reason:
          description: Reason of the event
          type: string
        message:
          description: Message of the event
          type: string
        type:
          description: Type of the event
          type: string
        source:
          description: Source of the event
          type: string
        count:
          description: Count of the event
          type: integer
          format: int32
        eventTime:
          description: Last timestamp of the event
          type: string
          format: date-time
      required:
        - clusterName
        - instanceName
        - name
        - reason
        - message
        - type
        - count
        - eventTime
      type: object
    instanceEventList:
      description: Instance event list
      properties:
        items:
          description: Items is the list of instance event objects in the list
          items:
            $ref: '#/components/schemas/instanceEventItem'
          type: array
      required:
        - items
      type: object
    instanceLog:
      type: object
      description: Instance log is the container log of the specified cluster instance
      properties:
        containers:
          type: array
          description: containers is all containers of the instance(pod)
          items:
            type: string
        log:
          type: string
          description: log is the log of the specified container
    haHistory:
      type: object
      description: HA history is the records of HA operations, include `switchover` and `failover`
      properties:
        componentName:
          type: string
        type:
          type: string
        oldPrimary:
          type: string
        newPrimary:
          type: string
        status:
          type: string
        message:
          type: string
        operatorID:
          type: string
        operatorName:
          type: string
        opsrequestName:
          type: string
        opsrequestNamespace:
          type: string
        startAt:
          type: string
          format: date-time
        endAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
      required:
        - componentName
        - type
        - oldPrimary
        - newPrimary
        - status
        - message
        - startAt
        - endAt
        - createdAt
    haHistoryList:
      type: object
      description: HA history list
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/haHistory'
      required:
        - items
    taskScheduleType:
      type: string
      enum:
        - immediate
        - scheduled
        - maintenanceWindow
      description: Schedule type for task execution
    taskSchedule:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/taskScheduleType'
        startTime:
          type: string
          format: date-time
          description: Start time of the execution window (required for scheduled type)
          x-nullable: true
        endTime:
          type: string
          format: date-time
          description: End time of the execution window (required for scheduled type)
          x-nullable: true
      required:
        - type
    instanceTemplateReplicas:
      type: object
      description: HScale assignment for one instance template. name and replicas only.
      required:
        - name
        - replicas
      properties:
        name:
          type: string
          minLength: 1
          description: Instance template name on the live Cluster spec.
        replicas:
          type: integer
          minimum: 0
          description: Target replica count for this instance template.
    opsHScale:
      description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. Replica scaling requires explicit template targets when the current mode component declares instanceTemplate.ops hscale.
      required:
        - component
      properties:
        component:
          description: component type
          type: string
          minLength: 1
        backupName:
          description: name of the backup to restore from
          type: string
          nullable: true
        replicas:
          description: number of replicas
          type: integer
          nullable: true
        instanceTemplates:
          type: array
          minItems: 1
          description: Explicit template replica targets, required when the current mode component instanceTemplate.ops includes hscale. Otherwise omit for component-level scaling. Requires top-level replicas and every name from instanceTemplate.names, without missing, extra, or duplicate names. Template replica counts must sum to the component target; equal distribution is not required by the API. Component and template changes are sent together in one OpsRequest using current Cluster replicas to calculate scaleIn/scaleOut deltas. Shard-count scaling cannot include this list.
          items:
            $ref: '#/components/schemas/instanceTemplateReplicas'
        onlineInstancesToOffline:
          type: array
          items:
            type: string
          description: List of online instance names to be switched to offline during scaling in.
          nullable: true
        OfflineInstancesToOnline:
          type: array
          items:
            type: string
          description: List of offline instance names to be switched to online during scaling out.
          nullable: true
        shards:
          description: number of shards, mutually exclusive with replicas.
          type: integer
          nullable: true
        preConditionDeadlineSeconds:
          description: Specifies the maximum time in seconds that the OpsRequest will wait for its pre-conditions to be met before it aborts the operation
          type: integer
          nullable: true
          minimum: 0
        force:
          type: boolean
          description: force the scaling operation without pre-check
          default: false
        schedule:
          $ref: '#/components/schemas/taskSchedule'
      type: object
    clusterModeTransition:
      type: object
      description: Parameters for switching the engine mode of a cluster.
      required:
        - mode
      properties:
        mode:
          type: string
          description: Target engine mode.
        schedule:
          $ref: '#/components/schemas/taskSchedule'
        hScale:
          $ref: '#/components/schemas/opsHScale'
        networkMode:
          description: Specify the network mode the cluster transitions to. Defaults to the network mode of the cluster when omitted.
          $ref: '#/components/schemas/networkMode'
    logRetention:
      type: object
      description: Log retention in days.
      required:
        - pod
        - running
        - error
        - slow
        - audit
      properties:
        pod:
          type: integer
          format: int64
          minimum: 1
        running:
          type: integer
          format: int64
          minimum: 1
        error:
          type: integer
          format: int64
          minimum: 1
        slow:
          type: integer
          format: int64
          minimum: 1
        audit:
          type: integer
          format: int64
          minimum: 1
    sortType:
      description: Represents the type of sorting.
      enum:
        - asc
        - desc
      type: string
    clusterRawLogItem:
      type: object
      description: Cluster raw log item represents a single log entry
      properties:
        message:
          type: string
        timestamp:
          type: integer
          format: int64
    clusterLogPagination:
      type: object
      description: Cluster log pagination is the pagination of the cluster log
      properties:
        endTime:
          type: string
        limit:
          type: string
        nextEndTime:
          type: string
        nextStartTime:
          type: string
        startTime:
          type: string
    clusterRawLogResponse:
      type: object
      description: Cluster raw log is the raw log of the cluster
      properties:
        filenames:
          type: array
          items:
            type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/clusterRawLogItem'
        pagination:
          $ref: '#/components/schemas/clusterLogPagination'
    clusterSlowLogDetail:
      type: object
      description: Slow log fields emitted by oteld
      properties:
        templateId:
          type: string
          description: Query template identifier
          x-omitempty: true
        normalizedQuery:
          type: string
          description: Normalized SQL or command template
          x-omitempty: true
        appName:
          type: string
          description: Application or client name reported by the database
          x-omitempty: true
        rowsExamined:
          type: integer
          format: int64
          description: Rows examined by the query
          x-nullable: true
          x-omitempty: true
        rowsSent:
          type: integer
          format: int64
          description: Rows returned or sent by the query
          x-nullable: true
          x-omitempty: true
        lockTime:
          type: number
          format: double
          description: Lock wait time in seconds
          x-nullable: true
          x-omitempty: true
    clusterExecutionLogItem:
      type: object
      description: Cluster execution log item represents a single log entry
      properties:
        client:
          type: string
          x-omitempty: false
        command:
          type: string
          x-omitempty: false
        dbName:
          type: string
          x-omitempty: false
        executionTime:
          type: number
          format: double
          x-omitempty: false
        slowLog:
          $ref: '#/components/schemas/clusterSlowLogDetail'
          x-omitempty: true
        extra:
          additionalProperties: {}
          type: object
          x-omitempty: false
        timestamp:
          type: integer
          format: int64
          x-omitempty: false
        user:
          type: string
          x-omitempty: false
    clusterExecutionLog:
      type: object
      description: Cluster execution log is the execution log of the cluster
      properties:
        items:
          items:
            $ref: '#/components/schemas/clusterExecutionLogItem'
          type: array
        pagination:
          $ref: '#/components/schemas/clusterLogPagination'
    DmsExplainRequest:
      type: object
      properties:
        query:
          type: string
          description: the sql string
        database:
          type: string
          description: the database for explaining the SQL
          default: ''
    DmsPagination:
      type: object
      properties:
        offset:
          type: integer
          format: int64
          nullable: true
          description: Zero-based offset of this showData page.
        limit:
          type: integer
          format: int64
          nullable: true
        hasMore:
          type: boolean
          nullable: true
          description: Whether another showData page exists; determined by reading one extra row.
        nextOffset:
          type: integer
          format: int64
          nullable: true
          description: Present only when hasMore is true.
        totalRows:
          type: integer
          format: int64
          nullable: true
          description: Exact count returned only by countOnly requests (including zero).
        orderColumns:
          type: array
          items:
            type: string
          description: Primary-key columns used for ordering; empty means ordering is not guaranteed. Pages are not a fixed snapshot.
        rows_count:
          type: integer
        page:
          type: integer
        pages_count:
          type: integer
        per_page:
          type: integer
    DmsRow:
      type: array
      items:
        type: object
    DmsResultStats:
      type: object
      properties:
        columns_count:
          type: integer
        rows_count:
          type: integer
        rows_affected:
          type: integer
        query_start_time:
          type: string
          format: date-time
        query_finish_time:
          type: string
          format: date-time
    DmsResult:
      type: object
      properties:
        pagination:
          $ref: '#/components/schemas/DmsPagination'
        columns:
          type: array
          items:
            type: string
        rows:
          type: array
          items:
            $ref: '#/components/schemas/DmsRow'
        stats:
          $ref: '#/components/schemas/DmsResultStats'
    DmsQueryResponse:
      type: object
      properties:
        data:
          type: array
          description: result set of query
          items:
            $ref: '#/components/schemas/DmsResult'
        errMessage:
          type: array
          description: error message set of query
          items:
            type: string
          nullable: true
    clusterSlowLogLocalizedText:
      type: object
      description: Localized slow log diagnosis text with dynamic arguments
      properties:
        message:
          $ref: '#/components/schemas/localizedDescription'
        args:
          type: object
          additionalProperties:
            type: string
          description: Dynamic values used by the message
    clusterSlowLogDiagnosisIssue:
      type: object
      description: A single detected slow log diagnosis issue
      properties:
        code:
          type: string
          x-omitempty: false
        severity:
          type: string
          description: Issue severity. Current values are info, low, medium, and high.
          x-omitempty: false
        source:
          type: string
          description: Evidence source used by the local rule
          x-omitempty: false
        message:
          $ref: '#/components/schemas/localizedDescription'
        evidence:
          type: array
          items:
            $ref: '#/components/schemas/clusterSlowLogLocalizedText'
        nodeId:
          type: string
    clusterSlowLogRecommendation:
      type: object
      description: A rule-based recommendation for a slow log diagnosis
      properties:
        type:
          type: string
          description: Recommendation type. Current values are create_index, rewrite_sql, reduce_result_set, and investigate_lock.
          x-omitempty: false
        sql:
          type: string
        description:
          $ref: '#/components/schemas/clusterSlowLogLocalizedText'
        source:
          type: string
          description: Evidence source used by the local rule
          x-omitempty: false
        safety:
          type: string
          description: Recommendation safety level. Current values are manual_review_required and safe_hint_only.
          x-omitempty: false
    clusterSlowLogDiagnosis:
      type: object
      description: Primary rule-based diagnosis card for a slow log EXPLAIN result
      properties:
        engine:
          type: string
          description: Diagnosis engine. Current value is rule_based.
          x-omitempty: false
        summary:
          $ref: '#/components/schemas/clusterSlowLogLocalizedText'
        primaryIssue:
          $ref: '#/components/schemas/clusterSlowLogDiagnosisIssue'
        optimizationStrategy:
          $ref: '#/components/schemas/clusterSlowLogLocalizedText'
        recommendedAction:
          $ref: '#/components/schemas/clusterSlowLogRecommendation'
        expectedBenefit:
          type: string
          description: Expected optimization benefit. Current values are unknown, low, medium, and high.
          x-omitempty: false
    clusterSlowLogPlanNode:
      type: object
      description: Best-effort visual execution plan node parsed from EXPLAIN.
      properties:
        id:
          type: string
          x-omitempty: false
        parentId:
          type: string
        operation:
          type: string
          x-omitempty: false
        table:
          type: string
        accessType:
          type: string
        detail:
          type: string
        costStart:
          type: number
          format: double
        costEnd:
          type: number
          format: double
        rows:
          type: integer
          format: int64
        issueCode:
          type: string
        issueSeverity:
          type: string
    clusterSlowLogExplainResponse:
      type: object
      description: Explain response for a selected slow log template sample
      properties:
        templateId:
          type: string
          description: Query template identifier
          x-omitempty: false
        sql:
          type: string
          description: Concrete sample SQL used for EXPLAIN
          x-omitempty: false
        sqlType:
          type: string
          description: Statement type accepted by the backend safety check
          x-omitempty: false
        database:
          type: string
          description: Database selected from the slow log sample
          x-omitempty: false
        normalizedQuery:
          type: string
          description: Normalized SQL template from oteld
        sampleTimestamp:
          type: integer
          format: int64
          description: Timestamp of the selected sample in epoch nanoseconds
          x-omitempty: false
        executionTime:
          type: number
          format: double
          description: Execution time of the selected sample in seconds
          x-omitempty: false
        sample:
          $ref: '#/components/schemas/clusterExecutionLogItem'
        explainResult:
          $ref: '#/components/schemas/DmsQueryResponse'
        diagnosis:
          $ref: '#/components/schemas/clusterSlowLogDiagnosis'
        planNodes:
          type: array
          x-omitempty: true
          items:
            $ref: '#/components/schemas/clusterSlowLogPlanNode'
    clusterSlowLogTemplate:
      type: object
      description: Aggregated slow log query template
      properties:
        templateId:
          type: string
          description: Query template identifier
          x-omitempty: false
        normalizedQuery:
          type: string
          description: Normalized SQL or command template
          x-omitempty: false
        sampleSQL:
          type: string
          description: Representative SQL sample for the template
          x-omitempty: false
        totalCount:
          type: integer
          format: int64
          x-omitempty: false
        totalExecutionTime:
          type: number
          format: double
          description: Total execution time in seconds
          x-omitempty: false
        avgExecutionTime:
          type: number
          format: double
          description: Average execution time in seconds
          x-omitempty: false
        minExecutionTime:
          type: number
          format: double
          description: Minimum execution time in seconds
          x-omitempty: false
        maxExecutionTime:
          type: number
          format: double
          description: Maximum execution time in seconds
          x-omitempty: false
        stddevExecutionTime:
          type: number
          format: double
          description: Standard deviation of execution time in seconds
          x-omitempty: false
        p50ExecutionTime:
          type: number
          format: double
          description: P50 execution time in seconds
          x-omitempty: false
        p90ExecutionTime:
          type: number
          format: double
          description: P90 execution time in seconds
          x-omitempty: false
        p95ExecutionTime:
          type: number
          format: double
          description: P95 execution time in seconds
          x-omitempty: false
        p99ExecutionTime:
          type: number
          format: double
          description: P99 execution time in seconds
          x-omitempty: false
        dbCount:
          type: integer
          format: int64
          description: Number of unique database names in the time range
          x-omitempty: false
        userCount:
          type: integer
          format: int64
          description: Number of unique users in the time range
          x-omitempty: false
        clientIPCount:
          type: integer
          format: int64
          description: Number of unique client IPs in the time range
          x-omitempty: false
        appCount:
          type: integer
          format: int64
          description: Number of unique application names in the time range
          x-omitempty: false
        avgRowsExamined:
          type: number
          format: double
          description: Average rows examined by the template
          x-nullable: true
          x-omitempty: true
        avgRowsSent:
          type: number
          format: double
          description: Average rows returned or sent by the template
          x-nullable: true
          x-omitempty: true
        avgLockTime:
          type: number
          format: double
          description: Average lock wait time in seconds
          x-nullable: true
          x-omitempty: true
        dbNames:
          type: array
          description: Sampled database names for the template
          items:
            type: string
          x-omitempty: true
        users:
          type: array
          description: Sampled users for the template
          items:
            type: string
          x-omitempty: true
        clientIPs:
          type: array
          description: Sampled client IPs for the template
          items:
            type: string
          x-omitempty: true
        apps:
          type: array
          description: Sampled application names for the template
          items:
            type: string
          x-omitempty: true
    clusterSlowLogTemplateList:
      type: object
      description: Query template list for slow logs
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/clusterSlowLogTemplate'
    clusterExecutionLogAggregateItem:
      type: object
      description: Aggregate item for grouped execution logs
      properties:
        groupKey:
          type: string
        count:
          type: integer
          format: int64
        avgExecutionTime:
          type: number
          format: double
        maxExecutionTime:
          type: number
          format: double
    clusterExecutionLogAggregateSummary:
      type: object
      description: Aggregate summary for execution logs
      properties:
        totalCount:
          type: integer
          format: int64
        groupCount:
          type: integer
          format: int64
    clusterExecutionLogAggregateResponse:
      type: object
      description: Aggregate response for cluster execution logs
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/clusterExecutionLogAggregateItem'
        summary:
          $ref: '#/components/schemas/clusterExecutionLogAggregateSummary'
    clusterSlowLogDatabaseDistribution:
      type: object
      description: Slow log count for a database
      properties:
        dbName:
          type: string
          x-omitempty: false
        count:
          type: integer
          format: int64
          x-omitempty: false
    clusterSlowLogStats:
      type: object
      description: Summary statistics for slow logs
      properties:
        totalSlowLogs:
          type: integer
          format: int64
          x-omitempty: false
        avgExecutionTime:
          type: number
          format: double
          x-omitempty: false
        p95Latency:
          type: number
          format: double
          x-omitempty: false
        activeDBs:
          type: integer
          format: int64
          x-nullable: true
        databaseDistribution:
          type: array
          description: Slow log count distribution grouped by database. Null means the engine does not expose a stable database field.
          x-nullable: true
          x-omitempty: false
          items:
            $ref: '#/components/schemas/clusterSlowLogDatabaseDistribution'
    clusterLogHitsItem:
      type: object
      description: A single time bucket in the log hits histogram
      properties:
        timestamp:
          type: integer
          format: int64
          x-omitempty: false
        count:
          type: integer
          format: int64
          x-omitempty: false
        avgExecutionTime:
          type: number
          format: double
          description: Average slow log execution time in seconds for this time bucket. Only returned for slow logs.
          x-omitempty: true
    clusterLogHitsResponse:
      type: object
      description: Log hits histogram response with time-bucketed counts
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/clusterLogHitsItem'
        total:
          type: integer
          format: int64
          x-omitempty: false
    reconfigureCreate:
      description: ReconfigureCreate is the payload to reconfigure a KubeBlocks cluster
      properties:
        component:
          description: component type
          type: string
          minLength: 1
        configFileName:
          description: config file name
          type: string
        parameters:
          additionalProperties:
            type: string
          description: Specify parameters list to be updated
          type: object
        rawContent:
          description: The raw content of the configuration file
          type: string
        schedule:
          $ref: '#/components/schemas/taskSchedule'
      required:
        - component
      type: object
    opsStop:
      description: OpsStop is the payload to stop a KubeBlocks cluster
      properties:
        componentNames:
          type: array
          items:
            type: string
          description: List of component names to stop
          nullable: true
        schedule:
          $ref: '#/components/schemas/taskSchedule'
      type: object
    opsStart:
      description: OpsStart is the payload to start a KubeBlocks cluster
      properties:
        schedule:
          $ref: '#/components/schemas/taskSchedule'
      type: object
    opsRestart:
      description: OpsRestart is the payload to restart a KubeBlocks cluster
      required:
        - component
      properties:
        component:
          description: component type
          type: string
          minLength: 1
        force:
          type: boolean
          description: whether to force restart the component
        preConditionDeadlineSeconds:
          description: Specifies the maximum time in seconds that the OpsRequest will wait for its pre-conditions to be met before it aborts the operation
          type: integer
          nullable: true
          minimum: 0
        schedule:
          $ref: '#/components/schemas/taskSchedule'
      type: object
    opsRebuildInstanceInstanceParam:
      description: instance params for RebuildInstance ops
      type: object
      required:
        - name
      properties:
        name:
          type: string
          description: Pod name of the instance
        targetNodeName:
          type: string
          description: The instance will rebuild on the specified node. If not set, it will rebuild on a random node.
    opsRebuildInstance:
      description: rebuild the instances of the cluster.
      properties:
        ignoreRoleCheck:
          type: boolean
          description: will ignore role check during rebuilding instance.
        requests:
          items:
            properties:
              backupName:
                type: string
              instances:
                type: array
                minItems: 1
                items:
                  $ref: '#/components/schemas/opsRebuildInstanceInstanceParam'
            required:
              - instances
          type: array
        schedule:
          $ref: '#/components/schemas/taskSchedule'
      type: object
    koordinatorReservationAllocatePolicy:
      type: string
      enum:
        - Restricted
        - Aligned
    koordinatorReservationStatus:
      type: object
      properties:
        phase:
          type: string
        nodeName:
          type: string
        allocatable:
          $ref: '#/components/schemas/koordinatorReservationResources'
        allocated:
          $ref: '#/components/schemas/koordinatorReservationResources'
        available:
          $ref: '#/components/schemas/koordinatorReservationResources'
    koordinatorNodeReservation:
      type: object
      required:
        - resourceClass
        - resources
      properties:
        resourceClass:
          $ref: '#/components/schemas/koordinatorReservationResourceClass'
        reservationName:
          type: string
          readOnly: true
        resources:
          $ref: '#/components/schemas/koordinatorReservationResources'
        ttl:
          type: string
          default: 24h
          description: Kubernetes duration string. Koordinator defaults omitted ttl to 24h.
        allocateOnce:
          type: boolean
        preAllocation:
          type: boolean
        allocatePolicy:
          $ref: '#/components/schemas/koordinatorReservationAllocatePolicy'
        status:
          $ref: '#/components/schemas/koordinatorReservationStatus'
    nodeStatus:
      type: string
      description: Status of the node
      enum:
        - Ready
        - Warning
        - UnderMaintenance
        - Unschedulable
        - Draining
    node:
      description: node info
      properties:
        cpu:
          description: CPU cores of the node
          format: int64
          type: integer
        cpuStats:
          $ref: '#/components/schemas/resourceStats'
        createdAt:
          description: |-
            CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.

            Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
        hostName:
          description: Host name of the node
          type: string
        instanceType:
          description: Instance type of the node
          type: string
        ip:
          description: IP address of the node
          type: string
        memory:
          description: Memory of the node, unit is GiB
          format: int64
          type: integer
        memoryStats:
          $ref: '#/components/schemas/resourceStats'
        zone:
          description: Zone of the node
          type: string
        region:
          description: Region of the node
          type: string
        nodeGroup:
          description: Node Group of the node
          type: string
        controlPlane:
          description: node is in control plane
          type: boolean
        dataPlane:
          description: node is in data plane
          type: boolean
        managed:
          description: Whether the node is managed (has data-plane or control-plane label)
          type: boolean
        koordinatorReservations:
          type: array
          items:
            $ref: '#/components/schemas/koordinatorNodeReservation'
        status:
          $ref: '#/components/schemas/nodeStatus'
          description: Node status
      required:
        - createdAt
        - hostName
        - ip
        - status
      type: object
    nodeList:
      description: nodeList is a list of nodes
      properties:
        items:
          description: Items is the list of Org objects in the list
          items:
            $ref: '#/components/schemas/node'
          type: array
      required:
        - items
      type: object
    instanceTemplateUpgrade:
      type: object
      required:
        - name
        - serviceVersion
      properties:
        name:
          type: string
          minLength: 1
        serviceVersion:
          type: string
          minLength: 1
          maxLength: 32
    opsUpgrade:
      description: Upgrade a component or selected instance templates. For template upgrades, the server overrides version with the minimum resulting template version.
      properties:
        version:
          type: string
          minLength: 1
        instanceTemplates:
          type: array
          items:
            $ref: '#/components/schemas/instanceTemplateUpgrade'
        component:
          type: string
        schedule:
          $ref: '#/components/schemas/taskSchedule'
          description: Scheduled execution configuration
          nullable: true
      required:
        - version
        - component
      type: object
    instanceTemplateServiceVersions:
      type: object
      properties:
        name:
          type: string
        currentVersion:
          type: string
        upgradeableVersions:
          type: array
          items:
            type: string
    componentVersionArchitecture:
      type: object
      description: |
        Architecture support configuration for this component versions.
        If not set, the component versions support all architectures.
      nullable: true
      properties:
        amd64:
          type: array
          items:
            type: string
          description: |
            List of versions that support amd64 architecture.
            Supports version patterns: exact version "8.0.33", major version "8.0", version range ">=8.0.30", etc.
            If not set, all versions support amd64.
          nullable: true
        arm64:
          type: array
          items:
            type: string
          description: |
            List of versions that support arm64 architecture.
            Supports version patterns: exact version "8.0.33", major version "8.0", version range ">=8.0.30", etc.
            If not set, all versions support arm64.
          nullable: true
    engineServiceVersionsItem:
      type: object
      properties:
        default:
          type: boolean
        defaultMinorVersion:
          type: string
        majorVersion:
          type: string
        minorVersions:
          type: array
          items:
            type: string
        architecture:
          $ref: '#/components/schemas/componentVersionArchitecture'
    engineServiceVersions:
      type: object
      properties:
        instanceTemplates:
          x-omitempty: true
          type: array
          items:
            $ref: '#/components/schemas/instanceTemplateServiceVersions'
        component:
          type: string
          description: component type, refer to componentDef and support NamePrefix
        upgradeableVersions:
          type: array
          items:
            type: string
        currentVersion:
          type: string
        versions:
          type: array
          items:
            $ref: '#/components/schemas/engineServiceVersionsItem'
    opsVolumeExpandVolumesItems0:
      type: object
      required:
        - name
        - storage
      properties:
        name:
          type: string
          minLength: 1
          description: Volume name.
        storage:
          type: string
          description: Desired size with Gi suffix, for example 30Gi.
    instanceTemplateVolumeExpand:
      type: object
      required:
        - name
        - volumes
      properties:
        name:
          type: string
          minLength: 1
          description: Template name from the current mode component instanceTemplate.names.
        volumes:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/opsVolumeExpandVolumesItems0'
    opsVolumeExpand:
      description: Expand component volumes and explicit targets for components with template expansion enabled.
      properties:
        instanceTemplates:
          type: array
          minItems: 1
          description: Required when the current mode component instanceTemplate.ops includes storageExpansion; otherwise omit for component-level expansion. Explicit targets require this capability. Every configured template must explicitly specify the same volume names and target capacities as component-level volumes. Names identify templates, not Pods. Targets are forwarded together in one OpsRequest without filling in, merging, or removing template targets. KubeBlocks may materialize template volumeClaimTemplates for explicitly targeted inherited volumes.
          items:
            $ref: '#/components/schemas/instanceTemplateVolumeExpand'
        component:
          type: string
          minLength: 1
        volumes:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/opsVolumeExpandVolumesItems0'
      required:
        - volumes
        - component
      type: object
    opsVScale:
      description: OpsVScale is the payload to vertically scale a KubeBlocks cluster
      required:
        - component
      properties:
        component:
          description: component type
          type: string
          minLength: 1
        cpu:
          description: number of cpu
          type: string
        memory:
          description: memory size
          type: string
        classCode:
          description: Class code for component-level vertical scaling.
          type: string
        schedule:
          $ref: '#/components/schemas/taskSchedule'
      type: object
    opsPromote:
      description: OpsPromote is the payload to promote a KubeBlocks cluster
      required:
        - componentName
        - instanceName
      properties:
        componentName:
          type: string
          minLength: 1
        instanceName:
          type: string
          x-nullable: false
        schedule:
          $ref: '#/components/schemas/taskSchedule'
      type: object
    opsExposeType:
      type: string
      description: Specifies the type of exposure for the KubeBlocks cluster. Internal exposure creates an internal-ro ClusterIP service and requires readonly=true; it is independent of vpc and internet exposure.
      enum:
        - vpc
        - internet
        - internal
    opsExposeVPCServiceType:
      description: Specifies the type of service for the KubeBlocks cluster.
      enum:
        - LoadBalancer
        - NodePort
      type: string
      default: LoadBalancer
    opsExpose:
      description: OpsExpose is the payload to expose a KubeBlocks cluster
      properties:
        component:
          type: string
          minLength: 1
        enable:
          type: boolean
        readonly:
          description: Select the configured read-only role. Must be true for internal exposure.
          type: boolean
        type:
          $ref: '#/components/schemas/opsExposeType'
        vpcServiceType:
          description: Service type for vpc exposure. Omit for internal exposure, which always uses ClusterIP.
          $ref: '#/components/schemas/opsExposeVPCServiceType'
        portsMapping:
          type: array
          items:
            type: object
            properties:
              old:
                type: integer
              new:
                type: integer
        loadBalancerIP:
          type: string
          description: The requested IPv4 or IPv6 address of the LoadBalancer service. If not set, IP addresses will be assigned by the system. For dual-stack MetalLB services, the system allocates the missing address family from the same VIP pool. Only available when vpcServiceType is LoadBalancer.
          nullable: true
        loadBalancerIPPoolID:
          type: string
          description: The IP pool ID of the LoadBalancer service. If not set, the IP pool will be assigned by the system. All VIPs of a dual-stack MetalLB service are allocated from the same pool. Only available when vpcServiceType is LoadBalancer.
          nullable: true
        domain:
          type: string
          description: The custom domain for accessing the cluster. If not set, the default domain will be used. Max 253 characters in total (1-63 characters per segment), allowing only lowercase letters, numbers, and hyphens (-); each segment must start and end with a letter or number.
          nullable: true
          maxLength: 253
          pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
      required:
        - enable
        - type
        - component
      type: object
    opsLicense:
      description: OpsLicense is the payload to update a KubeBlocks cluster license
      required:
        - licenseId
      properties:
        component:
          description: component type
          type: string
          minLength: 1
        licenseId:
          description: license ID
          type: string
          minLength: 1
      type: object
    opsParameter:
      description: custom ops parameter
      type: object
      properties:
        name:
          type: string
        value:
          type: string
      required:
        - name
        - value
    opsCustom:
      description: Create a custom KubeBlocks OpsRequest. Specify exactly one of compName and compNames. Switchover requires a single component.
      required:
        - opsType
      anyOf:
        - required:
            - compName
          not:
            required:
              - compNames
        - required:
            - compNames
          not:
            required:
              - compName
      properties:
        compName:
          description: component name
          type: string
          minLength: 1
          x-nullable: true
        compNames:
          description: Component names for a single OpsRequest. Mutually exclusive with compName. All components share the same params.
          type: array
          x-omitempty: true
          minItems: 1
          maxItems: 1024
          uniqueItems: true
          items:
            type: string
            minLength: 1
        opsType:
          description: ops definition name.
          type: string
          minLength: 1
        dependentOnOps:
          description: ops definition name.
          items:
            type: string
          type: array
        params:
          description: custom ops parameters
          type: array
          items:
            type: object
            $ref: '#/components/schemas/opsParameter'
        schedule:
          $ref: '#/components/schemas/taskSchedule'
          description: Scheduled execution configuration
          nullable: true
      type: object
    opsIoQuotas:
      description: IO Quotas describes IOPS and BPS for volumes of a KubeBlocks cluster
      properties:
        component:
          type: string
          minLength: 1
        volumes:
          type: array
          minItems: 1
          items:
            type: object
            properties:
              name:
                type: string
                description: volume name
              ioReserves:
                $ref: '#/components/schemas/ioQuantity'
              ioLimits:
                $ref: '#/components/schemas/ioQuantity'
            required:
              - name
      required:
        - volumes
        - component
      type: object
    clusterTags:
      properties:
        clusterId:
          description: The cluster id corresponding to the tag
          type: string
        tags:
          items:
            $ref: '#/components/schemas/tag'
          type: array
      type: object
    tagUpdate:
      description: Tag update
      properties:
        key:
          description: The key of the tag
          type: string
        value:
          description: the value corresponding th the key
          type: string
        id:
          description: the id of the tag
          type: integer
          format: int64
      required:
        - key
        - value
        - id
      type: object
    orgTagsList:
      properties:
        items:
          items:
            $ref: '#/components/schemas/tag'
          type: array
      required:
        - items
      type: object
    tagCreate:
      description: Tag create
      properties:
        clusterId:
          description: The cluster id corresponding to the tag
          type: string
        items:
          description: The key value pair of the tag needed to create
          items:
            properties:
              id:
                type: string
              key:
                type: string
                x-nullable: false
              value:
                type: string
                x-nullable: false
            required:
              - key
              - value
            type: object
          type: array
      required:
        - clusterId
        - items
      type: object
    endpointList:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          description: Items is the list of endpoint objects in the list
          items:
            $ref: '#/components/schemas/endpoint'
    sqlAuditStatus:
      type: object
      description: SQL audit log status
      required:
        - enabled
      properties:
        enabled:
          type: boolean
          description: Whether SQL audit log is enabled
        options:
          type: object
          additionalProperties: true
          description: Additional configuration options for SQL audit log (engine-specific)
    sqlAuditRequest:
      type: object
      description: Request to update SQL audit log status
      required:
        - component
        - enabled
      properties:
        component:
          type: string
          description: Component type to update SQL audit log for
        enabled:
          type: boolean
          description: Whether to enable SQL audit log
    sqlAuditResponse:
      type: object
      description: Response after updating SQL audit log status
      required:
        - enabled
      properties:
        enabled:
          type: boolean
          description: Whether SQL audit log is enabled after the operation
        taskId:
          type: string
          description: Task ID if the operation is asynchronous (e.g. reconfigure)
    tdeStatus:
      type: object
      description: Transparent data encryption status
      required:
        - enable
      properties:
        enable:
          type: boolean
          description: Whether TDE is enabled
        options:
          type: object
          additionalProperties: true
          description: Additional configuration options for TDE
    tdeRequest:
      type: object
      description: Request to enable transparent data encryption. Disabling TDE is not supported.
      required:
        - component
        - enable
      properties:
        component:
          type: string
          description: Component type to update TDE for
        enable:
          type: boolean
          description: Whether to enable TDE. Must be true because disabling TDE is not supported.
    tdeResponse:
      type: object
      description: Response after enabling transparent data encryption
      required:
        - enable
      properties:
        enable:
          type: boolean
          description: Whether TDE is enabled after the operation
        taskId:
          type: string
          description: Task ID if the operation is asynchronous (e.g. reconfigure)
    mysqlSpaceSummary:
      type: object
      required:
        - databaseName
        - databaseSizeBytes
        - dataBytes
        - indexBytes
        - freeBytes
        - tableCount
        - tableListTruncated
        - indexListTruncated
      properties:
        databaseName:
          type: string
        databaseSizeBytes:
          type: integer
          format: int64
        dataBytes:
          type: integer
          format: int64
        indexBytes:
          type: integer
          format: int64
        freeBytes:
          type: integer
          format: int64
          description: DATA_FREE reported by information_schema. Its per-table meaning is most reliable with innodb_file_per_table.
        tableCount:
          type: integer
          format: int64
        tableListTruncated:
          type: boolean
        indexListTruncated:
          type: boolean
        indexSizeSource:
          type: string
    mysqlStorageInstanceUsage:
      type: object
      properties:
        instanceName:
          type: string
        pvcName:
          type: string
        role:
          type: string
        componentName:
          type: string
        totalBytes:
          type: integer
          format: int64
        usedBytes:
          type: integer
          format: int64
        availableBytes:
          type: integer
          format: int64
        usageRatio:
          type: number
          format: double
          nullable: true
        updatedAt:
          type: string
        source:
          type: string
    mysqlStorageOverview:
      type: object
      required:
        - source
        - instances
      properties:
        source:
          type: string
        instances:
          type: array
          items:
            $ref: '#/components/schemas/mysqlStorageInstanceUsage'
    mysqlDatabaseSpace:
      type: object
      required:
        - name
        - dataBytes
        - indexBytes
        - freeBytes
        - totalBytes
        - tableCount
      properties:
        name:
          type: string
        dataBytes:
          type: integer
          format: int64
          x-omitempty: false
        indexBytes:
          type: integer
          format: int64
          x-omitempty: false
        freeBytes:
          type: integer
          format: int64
          x-omitempty: false
        totalBytes:
          type: integer
          format: int64
          x-omitempty: false
        tableCount:
          type: integer
          format: int64
          x-omitempty: false
    mysqlTableSpace:
      type: object
      required:
        - database
        - name
        - engine
        - rows
        - dataBytes
        - indexBytes
        - freeBytes
        - totalBytes
        - avgRowLength
      properties:
        database:
          type: string
        name:
          type: string
        engine:
          type: string
        rows:
          type: integer
          format: int64
          x-omitempty: false
          description: Estimated row count for InnoDB tables.
        dataBytes:
          type: integer
          format: int64
          x-omitempty: false
        indexBytes:
          type: integer
          format: int64
          x-omitempty: false
        freeBytes:
          type: integer
          format: int64
          x-omitempty: false
        totalBytes:
          type: integer
          format: int64
          x-omitempty: false
        avgRowLength:
          type: integer
          format: int64
          x-omitempty: false
        fragmentationRatio:
          type: number
          format: double
          nullable: true
          description: freeBytes divided by totalBytes plus freeBytes when available.
        createTime:
          type: string
        updateTime:
          type: string
    mysqlIndexSpace:
      type: object
      required:
        - database
        - table
        - name
        - isUnique
        - isPrimary
        - cardinality
      properties:
        database:
          type: string
        table:
          type: string
        name:
          type: string
        sizeBytes:
          type: integer
          format: int64
          nullable: true
          description: Estimated from mysql.innodb_index_stats pages multiplied by innodb_page_size.
        isUnique:
          type: boolean
          x-omitempty: false
        isPrimary:
          type: boolean
          x-omitempty: false
        cardinality:
          type: integer
          format: int64
          x-omitempty: false
        scanCount:
          type: integer
          format: int64
          nullable: true
          description: COUNT_READ from performance_schema; resets with server statistics.
        lastStatUpdate:
          type: string
    mysqlSpaceSource:
      type: object
      required:
        - name
        - kind
        - status
        - collectedAt
      properties:
        name:
          type: string
        kind:
          type: string
        status:
          type: string
        collectedAt:
          type: string
        message:
          type: string
    mysqlSpaceAnalysis:
      type: object
      required:
        - summary
        - storageOverview
        - databases
        - selectedDatabase
        - tables
        - indexes
        - sources
        - collectedAt
      properties:
        summary:
          $ref: '#/components/schemas/mysqlSpaceSummary'
        storageOverview:
          $ref: '#/components/schemas/mysqlStorageOverview'
        databases:
          type: array
          description: Sizes of all non-system MySQL databases.
          items:
            $ref: '#/components/schemas/mysqlDatabaseSpace'
        selectedDatabase:
          type: string
          description: Database used for table and index details.
        tables:
          type: array
          description: Top tables from selectedDatabase.
          items:
            $ref: '#/components/schemas/mysqlTableSpace'
        indexes:
          type: array
          description: Top indexes from selectedDatabase. Individual index size can be unavailable when mysql.innodb_index_stats is inaccessible.
          items:
            $ref: '#/components/schemas/mysqlIndexSpace'
        sources:
          type: array
          items:
            $ref: '#/components/schemas/mysqlSpaceSource'
        collectedAt:
          type: string
          description: Backend collection timestamp in UTC.
    mysqlSQLFingerprint:
      type: object
      required:
        - queryID
        - fingerprint
        - querySummary
        - calls
        - totalTimeMs
        - meanTimeMs
        - maxTimeMs
        - rows
        - rowsSent
        - rowsAffected
        - rowsExamined
        - lockTimeMs
        - errors
        - warnings
        - tmpTables
        - tmpDiskTables
        - noIndexUsed
        - noGoodIndexUsed
        - database
      properties:
        queryID:
          type: string
          description: MySQL Performance Schema DIGEST value.
        fingerprint:
          type: string
          description: Stable SQL fingerprint identifier. M1 uses DIGEST.
        querySummary:
          type: string
          description: Normalized DIGEST_TEXT. Raw SQL text is intentionally not returned.
        calls:
          type: integer
          format: int64
          description: Number of executions accumulated in the current digest row.
        totalTimeMs:
          type: number
          format: double
          description: Total statement wait time in milliseconds.
        meanTimeMs:
          type: number
          format: double
          description: Mean statement wait time in milliseconds.
        maxTimeMs:
          type: number
          format: double
          description: Maximum statement wait time in milliseconds.
        rows:
          type: integer
          format: int64
          description: Sum of rows sent and rows affected.
        rowsSent:
          type: integer
          format: int64
          description: Total rows sent to clients.
        rowsAffected:
          type: integer
          format: int64
          description: Total rows affected by statements.
        rowsExamined:
          type: integer
          format: int64
          description: Total rows examined by statements.
        lockTimeMs:
          type: number
          format: double
          description: Total statement lock time in milliseconds.
        errors:
          type: integer
          format: int64
          description: Total statement errors.
        warnings:
          type: integer
          format: int64
          description: Total statement warnings.
        tmpTables:
          type: integer
          format: int64
          description: Total internal temporary tables created.
        tmpDiskTables:
          type: integer
          format: int64
          description: Total internal on-disk temporary tables created.
        noIndexUsed:
          type: integer
          format: int64
          description: Executions that used no index.
        noGoodIndexUsed:
          type: integer
          format: int64
          description: Executions for which no good index was found.
        database:
          type: string
          description: Default schema name associated with the digest row.
        firstSeen:
          type: string
          description: UTC timestamp when the digest was first observed.
        lastSeen:
          type: string
          description: UTC timestamp when the digest was most recently observed.
    mysqlSQLAnalysis:
      type: object
      required:
        - source
        - status
        - collectedAt
        - limit
        - orderBy
        - items
      properties:
        source:
          type: string
          description: Data source. M1 uses performance_schema.events_statements_summary_by_digest.
        status:
          type: string
          description: Source status. Expected values are available or unavailable.
        unavailableReason:
          type: string
          description: Reason when status is unavailable, such as performance_schema_disabled, digest_consumer_disabled, permission_denied, or query_failed.
        message:
          type: string
          description: User-facing recovery guidance when SQL analysis is unavailable.
        collectedAt:
          type: string
          description: Backend collection timestamp in UTC. It is not a sampling-window end time.
        firstSeen:
          type: string
          description: Earliest FIRST_SEEN timestamp across currently visible digest rows, when available.
        lastSeen:
          type: string
          description: Latest LAST_SEEN timestamp across currently visible digest rows, when available.
        limit:
          type: integer
          format: int64
          description: Effective row limit after backend normalization.
        orderBy:
          type: string
          description: Effective sort key. Expected values are totalTime, meanTime, maxTime, or calls.
        totalTimeMsAll:
          type: number
          format: double
          x-nullable: true
          description: Total execution time in milliseconds across all visible digest rows, not limited to the returned top-N items.
        callsAll:
          type: integer
          format: int64
          x-nullable: true
          description: Total execution count across all visible digest rows, not limited to the returned top-N items.
        digestLost:
          type: integer
          format: int64
          x-nullable: true
          description: Number of statement digests not recorded because the digest table was full, when exposed by the server.
        items:
          type: array
          description: SQL fingerprint ranking rows from Performance Schema. The list may be empty when no statement statistics exist.
          items:
            $ref: '#/components/schemas/mysqlSQLFingerprint'
    performanceTrendRange:
      type: object
      required:
        - label
        - start
        - end
        - durationSeconds
      properties:
        label:
          type: string
          description: Controlled query range label. Values are 1h, 6h, 24h, or 7d.
        start:
          type: string
        end:
          type: string
        durationSeconds:
          type: integer
          format: int64
    performanceTrendSummary:
      type: object
      required:
        - metric
        - displayName
        - category
        - unit
        - min
        - max
        - avg
        - latest
      properties:
        metric:
          type: string
        displayName:
          $ref: '#/components/schemas/localizedDescription'
        category:
          type: string
          description: Metric category. Values include availability, performance, connections, resource, capacity, innodb, and vacuumWraparound.
        dimension:
          type: string
          description: Optional series dimension. Values include cluster, instance, pvc, and database.
        labels:
          type: object
          additionalProperties:
            type: string
          description: Optional dimension labels, for example instance, pvc, role, or datname.
        unit:
          type: string
        warnThreshold:
          type: number
          format: double
          description: Optional warning threshold in the same unit as this metric.
        critThreshold:
          type: number
          format: double
          description: Optional critical threshold in the same unit as this metric.
        thresholdDirection:
          type: string
          description: Optional threshold direction. Values are above, below, or boolean.
        min:
          type: number
          format: double
        max:
          type: number
          format: double
        avg:
          type: number
          format: double
        latest:
          type: number
          format: double
        changeDirection:
          type: string
          description: Change direction when at least two samples exist. Values are increasing, decreasing, or stable.
    performanceTrendPoint:
      type: object
      required:
        - timestamp
        - value
      properties:
        timestamp:
          type: string
        value:
          type: number
          format: double
    performanceTrendSeries:
      type: object
      required:
        - metric
        - displayName
        - category
        - unit
        - points
      properties:
        metric:
          type: string
        displayName:
          $ref: '#/components/schemas/localizedDescription'
        category:
          type: string
          description: Metric category. Values include availability, performance, connections, resource, capacity, innodb, and vacuumWraparound.
        dimension:
          type: string
          description: Optional series dimension. Values include cluster, instance, pvc, and database.
        labels:
          type: object
          additionalProperties:
            type: string
          description: Optional dimension labels, for example instance, pvc, role, or datname.
        unit:
          type: string
        warnThreshold:
          type: number
          format: double
          description: Optional warning threshold in the same unit as this metric.
        critThreshold:
          type: number
          format: double
          description: Optional critical threshold in the same unit as this metric.
        thresholdDirection:
          type: string
          description: Optional threshold direction. Values are above, below, or boolean.
        points:
          type: array
          items:
            $ref: '#/components/schemas/performanceTrendPoint'
    performanceTrendSource:
      type: object
      required:
        - name
        - kind
        - status
        - collectedAt
      properties:
        name:
          type: string
        kind:
          type: string
        status:
          type: string
          description: Coarse source status. Values are success, partial, failed, skipped, or noData.
        collectedAt:
          type: string
        message:
          type: string
    performanceTrends:
      type: object
      required:
        - range
        - granularity
        - summary
        - series
        - sources
        - warnings
        - collectedAt
      properties:
        range:
          $ref: '#/components/schemas/performanceTrendRange'
        granularity:
          type: string
          description: Controlled backend query step.
        summary:
          type: array
          description: Per-series numeric summary. changeDirection is present only when at least two points exist.
          items:
            $ref: '#/components/schemas/performanceTrendSummary'
        series:
          type: array
          description: Successfully collected and displayable metric series only. Unsupported, empty, or failed metrics are not represented as per-metric entries.
          items:
            $ref: '#/components/schemas/performanceTrendSeries'
        sources:
          type: array
          description: Coarse collection source status. Messages are sanitized and do not expose PromQL, endpoints, credentials, or raw internal errors.
          items:
            $ref: '#/components/schemas/performanceTrendSource'
        warnings:
          type: array
          items:
            type: string
        collectedAt:
          type: string
          description: Backend collection timestamp in UTC.
    mssqlSQLOrder:
      type: string
      enum:
        - totalElapsedMs
        - meanElapsedMs
        - maxElapsedMs
        - totalCpuMs
        - meanCpuMs
        - logicalReads
        - physicalReads
        - logicalWrites
        - executions
      default: totalElapsedMs
    mssqlSQLStatement:
      type: object
      required:
        - id
        - queryHash
        - database
        - sql
        - sqlTruncated
        - createdAt
        - lastExecutedAt
        - executions
        - totalElapsedMs
        - meanElapsedMs
        - maxElapsedMs
        - totalCpuMs
        - meanCpuMs
        - logicalReads
        - physicalReads
        - logicalWrites
        - rows
      properties:
        id:
          type: string
        queryHash:
          type: string
        database:
          type: string
        sql:
          type: string
        sqlTruncated:
          type: boolean
        createdAt:
          type: string
        lastExecutedAt:
          type: string
        executions:
          type: integer
          format: int64
        totalElapsedMs:
          type: number
          format: double
        meanElapsedMs:
          type: number
          format: double
        maxElapsedMs:
          type: number
          format: double
        totalCpuMs:
          type: number
          format: double
        meanCpuMs:
          type: number
          format: double
        logicalReads:
          type: integer
          format: int64
        physicalReads:
          type: integer
          format: int64
        logicalWrites:
          type: integer
          format: int64
        rows:
          type: integer
          format: int64
    mssqlSQLAnalysis:
      type: object
      required:
        - capturedAt
        - source
        - orderBy
        - truncated
        - items
      properties:
        capturedAt:
          type: string
        source:
          type: string
        orderBy:
          type: string
        truncated:
          type: boolean
        items:
          type: array
          items:
            $ref: '#/components/schemas/mssqlSQLStatement'
      description: Completed executions of statements still in the plan cache, accumulated since each statement creation time. Not a time-window history. Time values use milliseconds; read/write counts use 8 KiB pages.
    mssqlCachedPlan:
      type: object
      required:
        - capturedAt
        - xml
        - available
      properties:
        capturedAt:
          type: string
        xml:
          type: string
        available:
          type: boolean
      description: Cached compiled plan for the selected live request. No captured SQL is executed. This is not an actual runtime plan.
    mssqlDatabaseSpace:
      type: object
      required:
        - name
        - state
        - accessible
        - dataBytes
        - logBytes
      properties:
        name:
          type: string
        state:
          type: string
        accessible:
          type: boolean
        dataBytes:
          type: integer
          format: int64
        logBytes:
          type: integer
          format: int64
    mssqlFileSpace:
      type: object
      required:
        - name
        - type
        - sizeBytes
        - maxBytes
        - growth
        - percentGrowth
      properties:
        name:
          type: string
        type:
          type: string
        sizeBytes:
          type: integer
          format: int64
        usedBytes:
          type: integer
          format: int64
        maxBytes:
          type: integer
          format: int64
          description: '-1 means grow until the volume is full; zero disables growth.'
        growth:
          type: integer
          format: int64
          description: Percent when percentGrowth is true; otherwise number of 8 KiB pages. Zero disables autogrowth.
        percentGrowth:
          type: boolean
    mssqlTableSpace:
      type: object
      required:
        - schema
        - name
        - rows
        - reservedBytes
        - usedBytes
        - indexBytes
        - unusedBytes
      properties:
        schema:
          type: string
        name:
          type: string
        rows:
          type: integer
          format: int64
        reservedBytes:
          type: integer
          format: int64
        usedBytes:
          type: integer
          format: int64
        indexBytes:
          type: integer
          format: int64
        unusedBytes:
          type: integer
          format: int64
    mssqlSpaceAnalysis:
      type: object
      required:
        - capturedAt
        - database
        - databases
        - files
        - tables
        - tablesTruncated
        - dataBytes
        - dataUsedBytes
        - logBytes
        - logUsedBytes
        - logReuseWait
        - recommendations
      properties:
        capturedAt:
          type: string
        database:
          type: string
        databases:
          type: array
          items:
            $ref: '#/components/schemas/mssqlDatabaseSpace'
        files:
          type: array
          items:
            $ref: '#/components/schemas/mssqlFileSpace'
        tables:
          type: array
          items:
            $ref: '#/components/schemas/mssqlTableSpace'
        tablesTruncated:
          type: boolean
        dataBytes:
          type: integer
          format: int64
        dataUsedBytes:
          type: integer
          format: int64
        logBytes:
          type: integer
          format: int64
        logUsedBytes:
          type: integer
          format: int64
        logReuseWait:
          type: string
        recommendations:
          type: array
          items:
            type: string
      description: Current database files and on-disk table allocations. Free pages are reusable inside the database and do not imply immediately reclaimable filesystem bytes. Historical disk usage is provided by the cluster storage usage history API.
    mssqlRequest:
      type: object
      required:
        - requestId
        - startedAt
        - status
        - command
        - database
        - sql
        - sqlTruncated
        - elapsedMs
        - cpuMs
        - reads
        - logicalReads
        - writes
        - waitType
        - waitMs
        - waitResource
        - blockingSessionId
      properties:
        requestId:
          type: integer
          format: int64
        startedAt:
          type: string
          description: Opaque SQL Server local start time, used to detect session or request reuse. Pass back unchanged; it is not a UTC timestamp.
        status:
          type: string
        command:
          type: string
        database:
          type: string
        sql:
          type: string
          description: Current statement extracted with byte offsets. Truncated to 8192 characters.
        sqlTruncated:
          type: boolean
        elapsedMs:
          type: integer
          format: int64
        cpuMs:
          type: integer
          format: int64
        reads:
          type: integer
          format: int64
        logicalReads:
          type: integer
          format: int64
        writes:
          type: integer
          format: int64
        waitType:
          type: string
        waitMs:
          type: integer
          format: int64
        waitResource:
          type: string
        blockingSessionId:
          type: integer
          format: int64
    mssqlSession:
      type: object
      required:
        - sessionId
        - startedAt
        - status
        - user
        - host
        - application
        - client
        - database
        - openTransactions
        - transactionSeconds
        - lastSql
        - lastSqlTruncated
        - requests
        - requestsTruncated
      properties:
        sessionId:
          type: integer
          format: int64
        startedAt:
          type: string
          description: Opaque SQL Server local start time, used to detect session or request reuse. Pass back unchanged; it is not a UTC timestamp.
        status:
          type: string
        user:
          type: string
        host:
          type: string
        application:
          type: string
        client:
          type: string
        database:
          type: string
        openTransactions:
          type: integer
          format: int64
        transactionSeconds:
          type: integer
          format: int64
        lastSql:
          type: string
          description: Most recent batch on the connection, not necessarily the SQL that acquired its locks. Truncated to 8192 characters.
        lastSqlTruncated:
          type: boolean
        requests:
          type: array
          items:
            $ref: '#/components/schemas/mssqlRequest'
        requestsTruncated:
          type: boolean
    mssqlSessionSnapshot:
      type: object
      required:
        - capturedAt
        - sessions
        - truncated
      properties:
        capturedAt:
          type: string
        sessions:
          type: array
          items:
            $ref: '#/components/schemas/mssqlSession'
        truncated:
          type: boolean
    mssqlWait:
      type: object
      required:
        - sessionId
        - requestId
        - blockingSessionId
        - waitType
        - waitMs
        - resource
        - source
      properties:
        sessionId:
          type: integer
          format: int64
        requestId:
          type: integer
          format: int64
          description: Request ID, or -1 when a waiting task cannot be associated with a live request.
        blockingSessionId:
          type: integer
          format: int64
          description: SQL Server blocking owner. Negative values are special owners, not session IDs.
        waitType:
          type: string
        waitMs:
          type: integer
          format: int64
        resource:
          type: string
        source:
          type: string
    mssqlLock:
      type: object
      required:
        - sessionId
        - requestId
        - database
        - resourceType
        - resource
        - entityId
        - mode
        - status
        - ownerType
      properties:
        sessionId:
          type: integer
          format: int64
        requestId:
          type: integer
          format: int64
        database:
          type: string
        resourceType:
          type: string
        resource:
          type: string
        entityId:
          type: string
        mode:
          type: string
        status:
          type: string
        ownerType:
          type: string
    mssqlLockSnapshot:
      type: object
      required:
        - capturedAt
        - sessions
        - waits
        - locks
        - truncated
      properties:
        capturedAt:
          type: string
        sessions:
          type: array
          items:
            $ref: '#/components/schemas/mssqlSession'
        waits:
          type: array
          items:
            $ref: '#/components/schemas/mssqlWait'
        locks:
          type: array
          items:
            $ref: '#/components/schemas/mssqlLock'
        truncated:
          type: boolean
      description: Bounded live DMV observations. Edges are SQL Server reported blocking identifiers. Collection is not atomic; graph cycles are not historical deadlock evidence.
    postgresqlSession:
      type: object
      required:
        - pid
        - user
        - database
        - applicationName
        - clientAddr
        - clientPort
        - state
        - waitEventType
        - waitEvent
        - durationSeconds
        - xactDurationSeconds
        - queryDigest
        - querySummary
        - backendType
      properties:
        pid:
          type: integer
          format: int64
        user:
          type: string
        database:
          type: string
        applicationName:
          type: string
        clientAddr:
          type: string
          description: Client address.
        clientPort:
          type: string
          description: Client port.
        state:
          type: string
        waitEventType:
          type: string
        waitEvent:
          type: string
        backendStart:
          type: string
          description: Backend start timestamp if available.
        queryStart:
          type: string
          description: Query start timestamp if available.
        xactStart:
          type: string
          description: Transaction start timestamp if available.
        durationSeconds:
          type: integer
          format: int64
        xactDurationSeconds:
          type: integer
          format: int64
        queryDigest:
          type: string
        querySummary:
          type: string
        backendType:
          type: string
    postgresqlSessionList:
      type: array
      items:
        $ref: '#/components/schemas/postgresqlSession'
    postgresqlSpaceSummary:
      type: object
      required:
        - tableCount
        - indexCount
        - toastRelationCount
        - tableListTruncated
        - indexListTruncated
      properties:
        databaseName:
          type: string
        databaseSizeBytes:
          type: integer
          format: int64
        tableCount:
          type: integer
          format: int64
        indexCount:
          type: integer
          format: int64
        toastRelationCount:
          type: integer
          format: int64
        largestTableBytes:
          type: integer
          format: int64
        largestIndexBytes:
          type: integer
          format: int64
        tableListTruncated:
          type: boolean
        indexListTruncated:
          type: boolean
    postgresqlStorageInstanceUsage:
      type: object
      properties:
        instanceName:
          type: string
          description: Kubernetes pod name for this PostgreSQL replica storage sample.
        pvcName:
          type: string
          description: PersistentVolumeClaim name when it can be read from metrics labels.
        role:
          type: string
          description: Raw PostgreSQL replica role value read from metrics labels, kept aligned with instance detail display.
        componentName:
          type: string
          description: Optional KubeBlocks component name when it can be read from metrics labels.
        totalBytes:
          type: integer
          format: int64
          description: Physical PVC capacity in bytes for this replica storage sample.
        usedBytes:
          type: integer
          format: int64
          description: Physical PVC used bytes for this replica storage sample.
        availableBytes:
          type: integer
          format: int64
          description: Available bytes derived from totalBytes - usedBytes when both values are available.
        usageRatio:
          type: number
          format: double
          nullable: true
          description: usedBytes / totalBytes for this replica storage sample when both values are available.
        updatedAt:
          type: string
          description: Metrics collection timestamp in UTC.
        source:
          type: string
    postgresqlStorageOverview:
      type: object
      required:
        - source
        - instances
      properties:
        source:
          type: string
        instances:
          type: array
          description: Physical PostgreSQL replica storage usage split by pod/PVC/role.
          items:
            $ref: '#/components/schemas/postgresqlStorageInstanceUsage'
    postgresqlDatabaseSpace:
      type: object
      properties:
        name:
          type: string
        sizeBytes:
          type: integer
          format: int64
    postgresqlTableSpace:
      type: object
      properties:
        database:
          type: string
        schema:
          type: string
        name:
          type: string
        relationOid:
          type: integer
          format: int64
        totalBytes:
          type: integer
          format: int64
        tableBytes:
          type: integer
          format: int64
        indexBytes:
          type: integer
          format: int64
        toastBytes:
          type: integer
          format: int64
        toastRelationOid:
          type: integer
          format: int64
        liveTuples:
          type: integer
          format: int64
        deadTuples:
          type: integer
          format: int64
        seqScan:
          type: integer
          format: int64
        indexScan:
          type: integer
          format: int64
        lastVacuum:
          type: string
        lastAutoVacuum:
          type: string
        lastAnalyze:
          type: string
        lastAutoAnalyze:
          type: string
    postgresqlIndexSpace:
      type: object
      properties:
        database:
          type: string
        schema:
          type: string
        table:
          type: string
        name:
          type: string
        tableRelationOid:
          type: integer
          format: int64
        relationOid:
          type: integer
          format: int64
        sizeBytes:
          type: integer
          format: int64
        isPrimary:
          type: boolean
        isUnique:
          type: boolean
        scanCount:
          type: integer
          format: int64
        tuplesRead:
          type: integer
          format: int64
        tuplesFetch:
          type: integer
          format: int64
    postgresqlToastRelationSpace:
      type: object
      properties:
        database:
          type: string
        schema:
          type: string
        table:
          type: string
        tableRelationOid:
          type: integer
          format: int64
        toastRelationOid:
          type: integer
          format: int64
        toastBytes:
          type: integer
          format: int64
    postgresqlSpaceSource:
      type: object
      required:
        - name
        - kind
        - status
        - collectedAt
      properties:
        name:
          type: string
        kind:
          type: string
        status:
          type: string
        collectedAt:
          type: string
        message:
          type: string
    postgresqlSpaceAnalysis:
      type: object
      required:
        - summary
        - storageOverview
        - databases
        - selectedDatabase
        - tables
        - indexes
        - toastRelations
        - sources
        - collectedAt
      properties:
        summary:
          $ref: '#/components/schemas/postgresqlSpaceSummary'
        storageOverview:
          $ref: '#/components/schemas/postgresqlStorageOverview'
        databases:
          type: array
          description: Sizes of all connectable non-template databases in the PostgreSQL instance.
          items:
            $ref: '#/components/schemas/postgresqlDatabaseSpace'
        selectedDatabase:
          type: string
          description: Database used for tables, indexes, and toastRelations in this response.
        tables:
          type: array
          description: Top tables from selectedDatabase.
          items:
            $ref: '#/components/schemas/postgresqlTableSpace'
        indexes:
          type: array
          description: Top indexes from selectedDatabase.
          items:
            $ref: '#/components/schemas/postgresqlIndexSpace'
        toastRelations:
          type: array
          description: Toast relations derived from selectedDatabase table space data.
          items:
            $ref: '#/components/schemas/postgresqlToastRelationSpace'
        sources:
          type: array
          items:
            $ref: '#/components/schemas/postgresqlSpaceSource'
        collectedAt:
          type: string
          description: Backend collection timestamp in UTC.
    postgresqlSQLFingerprint:
      type: object
      required:
        - queryID
        - fingerprint
        - querySummary
        - calls
        - totalTimeMs
        - meanTimeMs
        - maxTimeMs
        - rows
        - database
        - user
        - topLevel
      properties:
        queryID:
          type: string
          description: PostgreSQL pg_stat_statements queryid represented as a string.
        fingerprint:
          type: string
          description: Stable SQL fingerprint identifier for UI grouping. M1 uses queryID.
        querySummary:
          type: string
          description: Redacted SQL summary. Full raw SQL is intentionally not returned.
        calls:
          type: integer
          format: int64
          description: Number of executions accumulated by pg_stat_statements since statsReset.
        totalTimeMs:
          type: number
          format: double
          description: Total execution time in milliseconds accumulated by pg_stat_statements since statsReset.
        meanTimeMs:
          type: number
          format: double
          description: Mean execution time in milliseconds.
        maxTimeMs:
          type: number
          format: double
          description: Max execution time in milliseconds.
        rows:
          type: integer
          format: int64
          description: Rows returned or affected by the fingerprint, as reported by pg_stat_statements.
        database:
          type: string
          description: Database name resolved from pg_stat_statements.dbid when visible.
        user:
          type: string
          description: Database user name resolved from pg_stat_statements.userid when visible.
        topLevel:
          type: boolean
          description: Whether pg_stat_statements recorded the statement as top-level. Legacy PostgreSQL versions without the toplevel column report true.
    postgresqlSQLAnalysis:
      type: object
      required:
        - source
        - status
        - collectedAt
        - limit
        - orderBy
        - items
      properties:
        source:
          type: string
          description: Data source. M1 uses pg_stat_statements only.
        status:
          type: string
          description: Source status. Expected values are available or unavailable.
        unavailableReason:
          type: string
          description: Reason when status is unavailable, such as extension_disabled, permission_denied, or query_failed.
        statsReset:
          type: string
          description: UTC timestamp reported by pg_stat_statements_info.stats_reset when available. Empty means the source did not expose this timestamp.
        collectedAt:
          type: string
          description: Backend collection timestamp in UTC. It is not a sampling-window end time.
        limit:
          type: integer
          format: int64
          description: Effective row limit after backend normalization.
        orderBy:
          type: string
          description: Effective sort key. Expected values are totalTime, meanTime, maxTime, or calls.
        totalTimeMsAll:
          type: number
          format: double
          x-nullable: true
          description: Total execution time in milliseconds across all visible pg_stat_statements rows, not limited to the returned top-N items. Present only when the source is available.
        callsAll:
          type: integer
          format: int64
          x-nullable: true
          description: Total execution count across all visible pg_stat_statements rows, not limited to the returned top-N items. Present only when the source is available.
        items:
          type: array
          description: SQL fingerprint ranking rows from pg_stat_statements. The list may be empty when no statement statistics exist.
          items:
            $ref: '#/components/schemas/postgresqlSQLFingerprint'
    DmsExecutionPlanPlanningMode:
      type: string
      enum:
        - standard
        - generic
    DmsExecutionPlanMode:
      type: string
      enum:
        - estimate
        - analyze
        - actual
        - autotrace
    DmsExecutionPlanRawFormat:
      type: string
      enum:
        - json
        - xml
        - text
        - table
    DmsExecutionPlanNodeCategory:
      type: string
      enum:
        - result
        - sort
        - join
        - table_scan
        - index_scan
        - lookup
        - materialize
        - aggregate
        - exchange
        - modify
        - other
    DmsExecutionPlanNodeCost:
      type: object
      properties:
        startup:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        total:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        self:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        percent:
          type: number
          format: double
          nullable: true
          x-omitempty: true
    DmsExecutionPlanNodeRows:
      type: object
      properties:
        estimated:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        actual:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        actualPerLoop:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        removedByFilter:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        mismatchRatio:
          type: number
          format: double
          nullable: true
          x-omitempty: true
    DmsExecutionPlanNodeTiming:
      type: object
      properties:
        startupMs:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        totalMs:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        selfMs:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        loops:
          type: number
          format: double
          nullable: true
          x-omitempty: true
    DmsExecutionPlanNodeConditions:
      type: object
      properties:
        filter:
          type: string
          nullable: true
          x-omitempty: true
        indexCond:
          type: string
          nullable: true
          x-omitempty: true
        joinCond:
          type: string
          nullable: true
          x-omitempty: true
        hashCond:
          type: string
          nullable: true
          x-omitempty: true
        sortKey:
          type: array
          items:
            type: string
    DmsExecutionPlanNode:
      type: object
      properties:
        id:
          type: string
        parentIds:
          type: array
          items:
            type: string
        childIds:
          type: array
          items:
            type: string
        order:
          type: integer
          format: int64
          nullable: true
          x-omitempty: true
        category:
          $ref: '#/components/schemas/DmsExecutionPlanNodeCategory'
        nodeType:
          type: string
        label:
          type: string
        relationName:
          type: string
          nullable: true
          x-omitempty: true
        schemaName:
          type: string
          nullable: true
          x-omitempty: true
        alias:
          type: string
          nullable: true
          x-omitempty: true
        indexName:
          type: string
          nullable: true
          x-omitempty: true
        cost:
          $ref: '#/components/schemas/DmsExecutionPlanNodeCost'
          nullable: true
          x-omitempty: true
        rows:
          $ref: '#/components/schemas/DmsExecutionPlanNodeRows'
          nullable: true
          x-omitempty: true
        timing:
          $ref: '#/components/schemas/DmsExecutionPlanNodeTiming'
          nullable: true
          x-omitempty: true
        conditions:
          $ref: '#/components/schemas/DmsExecutionPlanNodeConditions'
          nullable: true
          x-omitempty: true
        details:
          type: object
          additionalProperties: true
          x-omitempty: true
    DmsExecutionPlanEdgeRows:
      type: object
      properties:
        estimated:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        actual:
          type: number
          format: double
          nullable: true
          x-omitempty: true
    DmsExecutionPlanEdge:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
        target:
          type: string
        rows:
          $ref: '#/components/schemas/DmsExecutionPlanEdgeRows'
          nullable: true
          x-omitempty: true
        widthWeight:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        label:
          type: string
          nullable: true
          x-omitempty: true
    DmsExecutionPlanSummary:
      type: object
      properties:
        totalCost:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        totalActualTimeMs:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        planRows:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        actualRows:
          type: number
          format: double
          nullable: true
          x-omitempty: true
        nodeCount:
          type: integer
          format: int64
        maxCostNodeId:
          type: string
          nullable: true
          x-omitempty: true
        maxRowsNodeId:
          type: string
          nullable: true
          x-omitempty: true
        maxTimeNodeId:
          type: string
          nullable: true
          x-omitempty: true
    DmsExecutionPlanWarningSeverity:
      type: string
      enum:
        - info
        - warning
        - critical
    DmsExecutionPlanWarning:
      type: object
      properties:
        code:
          type: string
        severity:
          $ref: '#/components/schemas/DmsExecutionPlanWarningSeverity'
        nodeId:
          type: string
          nullable: true
          x-omitempty: true
        message:
          type: string
    DmsExecutionPlanResult:
      type: object
      properties:
        originSQL:
          type: string
        explainSQL:
          type: string
          nullable: true
          x-omitempty: true
        engineType:
          type: string
        mode:
          $ref: '#/components/schemas/DmsExecutionPlanMode'
        planMode:
          $ref: '#/components/schemas/DmsExecutionPlanPlanningMode'
        parameterized:
          type: boolean
          x-omitempty: false
        parameterCount:
          type: integer
          format: int64
          nullable: true
          x-omitempty: true
        hasActualStats:
          type: boolean
          x-omitempty: false
        rawFormat:
          $ref: '#/components/schemas/DmsExecutionPlanRawFormat'
        rawPlan:
          type: object
          description: Engine-native raw plan payload exposed for fallback display. SDKs model it as a free-form JSON object.
          additionalProperties: true
          x-omitempty: true
        rootNodeIds:
          type: array
          items:
            type: string
        nodes:
          type: array
          items:
            $ref: '#/components/schemas/DmsExecutionPlanNode'
        edges:
          type: array
          items:
            $ref: '#/components/schemas/DmsExecutionPlanEdge'
        summary:
          $ref: '#/components/schemas/DmsExecutionPlanSummary'
          nullable: true
          x-omitempty: true
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/DmsExecutionPlanWarning'
        fallbackTable:
          $ref: '#/components/schemas/DmsQueryResponse'
          nullable: true
          x-omitempty: true
    postgresqlSQLFingerprintExplainResponse:
      type: object
      required:
        - queryID
        - fingerprint
        - database
        - user
        - topLevel
        - planMode
        - parameterized
        - explainResult
      properties:
        queryID:
          type: string
          description: PostgreSQL pg_stat_statements queryid represented as a string.
        fingerprint:
          type: string
          description: Stable SQL fingerprint identifier for UI grouping. Currently aligned with PostgreSQL pg_stat_statements queryid.
        database:
          type: string
          description: Database name from the requested SQL fingerprint identity.
        user:
          type: string
          description: Database user from the requested SQL fingerprint identity.
        topLevel:
          type: boolean
          description: Top-level flag from the requested SQL fingerprint identity.
        statementSource:
          type: string
          description: Server-side source used to resolve the parameterized SQL statement. Raw SQL is not returned.
        statementResolvedAt:
          type: string
          description: Timestamp when the parameterized SQL statement was resolved.
        planMode:
          $ref: '#/components/schemas/DmsExecutionPlanPlanningMode'
          description: Whether DMS produced a standard estimated plan or a generic parameterized estimated plan.
        parameterized:
          type: boolean
          description: Whether generic parameterized planning was used (planMode is generic). False means standard planning, not that historical parameter values were used. This endpoint never retrieves historical parameter values.
          x-omitempty: false
        parameterCount:
          type: integer
          format: int64
          nullable: true
          x-omitempty: true
          description: Number of parameters when DMS can determine it. It may be omitted for PostgreSQL generic-plan paths that do not expose the count.
        explainResult:
          $ref: '#/components/schemas/DmsExecutionPlanResult'
          description: Normalized DMS estimated visual plan. The resolved statement and generated EXPLAIN SQL are intentionally removed.
    elasticsearchHotThreadsType:
      type: string
      enum:
        - cpu
        - wait
        - block
      default: cpu
    elasticsearchTask:
      type: object
      required:
        - taskId
        - nodeId
        - nodeName
        - action
        - runningTimeMillis
        - cancellable
      properties:
        taskId:
          type: string
        nodeId:
          type: string
        nodeName:
          type: string
        action:
          type: string
        description:
          type: string
        type:
          type: string
        startTime:
          type: string
        runningTimeMillis:
          type: integer
          format: int64
        cancellable:
          type: boolean
        cancelled:
          type: boolean
    elasticsearchHotThreads:
      type: object
      required:
        - type
        - content
        - truncated
      properties:
        nodeName:
          type: string
        type:
          type: string
        content:
          type: string
        truncated:
          type: boolean
    elasticsearchTaskAnalysis:
      type: object
      required:
        - tasks
        - hotThreads
        - sources
        - warnings
        - collectedAt
      properties:
        tasks:
          type: array
          description: List of currently running tasks, sorted by running time in descending order
          items:
            $ref: '#/components/schemas/elasticsearchTask'
        hotThreads:
          type: array
          items:
            $ref: '#/components/schemas/elasticsearchHotThreads'
        sources:
          type: array
          items:
            $ref: '#/components/schemas/performanceTrendSource'
        warnings:
          type: array
          items:
            type: string
        collectedAt:
          type: string
    elasticsearchIndexSortBy:
      type: string
      enum:
        - name
        - documents
        - totalStoreBytes
        - segments
      default: totalStoreBytes
    elasticsearchSortOrder:
      type: string
      enum:
        - asc
        - desc
      default: desc
    elasticsearchIndexStorage:
      type: object
      required:
        - name
        - health
        - status
        - primaryShards
        - replicaShards
        - documents
        - deletedDocuments
        - primaryStoreBytes
        - totalStoreBytes
        - segments
      properties:
        name:
          type: string
        uuid:
          type: string
        health:
          type: string
        status:
          type: string
        primaryShards:
          type: integer
          format: int64
          nullable: true
        replicaShards:
          type: integer
          format: int64
          nullable: true
        documents:
          type: integer
          format: int64
          nullable: true
        deletedDocuments:
          type: integer
          format: int64
          nullable: true
        primaryStoreBytes:
          type: integer
          format: int64
          nullable: true
        totalStoreBytes:
          type: integer
          format: int64
          nullable: true
        segments:
          type: integer
          format: int64
          nullable: true
    elasticsearchNodeAllocation:
      type: object
      required:
        - nodeName
        - shards
        - diskIndicesBytes
        - diskUsedBytes
        - diskAvailableBytes
        - diskTotalBytes
        - diskPercent
      properties:
        nodeName:
          type: string
        host:
          type: string
        ip:
          type: string
        shards:
          type: integer
          format: int64
          nullable: true
        diskIndicesBytes:
          type: integer
          format: int64
          nullable: true
        diskUsedBytes:
          type: integer
          format: int64
          nullable: true
        diskAvailableBytes:
          type: integer
          format: int64
          nullable: true
        diskTotalBytes:
          type: integer
          format: int64
          nullable: true
        diskPercent:
          type: number
          format: double
          nullable: true
    elasticsearchDiskWatermarks:
      type: object
      required:
        - low
        - high
        - floodStage
      properties:
        low:
          type: string
        high:
          type: string
        floodStage:
          type: string
    elasticsearchStorageAnalysis:
      type: object
      required:
        - indices
        - allocations
        - watermarks
        - sources
        - warnings
        - collectedAt
      properties:
        indices:
          type: array
          items:
            $ref: '#/components/schemas/elasticsearchIndexStorage'
        allocations:
          type: array
          items:
            $ref: '#/components/schemas/elasticsearchNodeAllocation'
        watermarks:
          $ref: '#/components/schemas/elasticsearchDiskWatermarks'
        sources:
          type: array
          items:
            $ref: '#/components/schemas/performanceTrendSource'
        warnings:
          type: array
          items:
            type: string
        collectedAt:
          type: string
    elasticsearchShardState:
      type: string
      enum:
        - STARTED
        - INITIALIZING
        - RELOCATING
        - UNASSIGNED
    elasticsearchShard:
      type: object
      properties:
        index:
          type: string
          x-go-name: Index
          nullable: true
        shard:
          type: integer
          x-go-name: Shard
          nullable: true
          format: int64
        primary:
          type: boolean
          x-go-name: Primary
          nullable: true
        state:
          type: string
          x-go-name: State
          nullable: true
        documents:
          type: integer
          x-go-name: Documents
          nullable: true
          format: int64
        storeBytes:
          type: integer
          x-go-name: StoreBytes
          nullable: true
          format: int64
        nodeId:
          type: string
          x-go-name: NodeID
          nullable: true
        nodeName:
          type: string
          x-go-name: NodeName
          nullable: true
        unassignedReason:
          type: string
          x-go-name: UnassignedReason
          nullable: true
    elasticsearchShardList:
      type: object
      required:
        - shards
        - collectedAt
      properties:
        shards:
          type: array
          items:
            $ref: '#/components/schemas/elasticsearchShard'
        collectedAt:
          type: string
    elasticsearchShardNode:
      type: object
      properties:
        id:
          type: string
          x-go-name: ID
          nullable: true
        name:
          type: string
          x-go-name: Name
          nullable: true
    elasticsearchRecoveryTranslog:
      type: object
      properties:
        recovered:
          type: integer
          x-go-name: Recovered
          nullable: true
          format: int64
        total:
          type: integer
          x-go-name: Total
          nullable: true
          format: int64
        percent:
          type: string
          x-go-name: Percent
          nullable: true
    elasticsearchRecoverySize:
      type: object
      properties:
        totalBytes:
          type: integer
          x-go-name: TotalBytes
          nullable: true
          format: int64
        reusedBytes:
          type: integer
          x-go-name: ReusedBytes
          nullable: true
          format: int64
        recoveredBytes:
          type: integer
          x-go-name: RecoveredBytes
          nullable: true
          format: int64
        percent:
          type: string
          x-go-name: Percent
          nullable: true
    elasticsearchShardRecovery:
      type: object
      properties:
        index:
          type: string
          x-go-name: Index
          nullable: true
        shard:
          type: integer
          x-go-name: Shard
          nullable: true
          format: int64
        type:
          type: string
          x-go-name: Type
          nullable: true
        stage:
          type: string
          x-go-name: Stage
          nullable: true
        primary:
          type: boolean
          x-go-name: Primary
          nullable: true
        startTimeMillis:
          type: integer
          x-go-name: StartTimeMillis
          nullable: true
          format: int64
        totalTimeMillis:
          type: integer
          x-go-name: TotalTimeMillis
          nullable: true
          format: int64
        source:
          $ref: '#/components/schemas/elasticsearchShardNode'
          x-go-name: Source
        target:
          $ref: '#/components/schemas/elasticsearchShardNode'
          x-go-name: Target
        translog:
          $ref: '#/components/schemas/elasticsearchRecoveryTranslog'
          x-go-name: Translog
        size:
          $ref: '#/components/schemas/elasticsearchRecoverySize'
          x-go-name: Size
    elasticsearchRecoveryList:
      type: object
      required:
        - recoveries
        - collectedAt
      properties:
        recoveries:
          type: array
          items:
            $ref: '#/components/schemas/elasticsearchShardRecovery'
        collectedAt:
          type: string
    elasticsearchUnassignedInfo:
      type: object
      properties:
        reason:
          type: string
          x-go-name: Reason
          nullable: true
        at:
          type: string
          x-go-name: At
          nullable: true
        details:
          type: string
          x-go-name: Details
          nullable: true
        lastAllocationStatus:
          type: string
          x-go-name: LastAllocationStatus
          nullable: true
    elasticsearchAllocationDecider:
      type: object
      properties:
        decider:
          type: string
          x-go-name: Decider
          nullable: true
        decision:
          type: string
          x-go-name: Decision
          nullable: true
        explanation:
          type: string
          x-go-name: Explanation
          nullable: true
    elasticsearchNodeAllocationDecision:
      type: object
      properties:
        nodeId:
          type: string
          x-go-name: NodeID
          nullable: true
        nodeName:
          type: string
          x-go-name: NodeName
          nullable: true
        nodeDecision:
          type: string
          x-go-name: NodeDecision
          nullable: true
        deciders:
          type: array
          items:
            $ref: '#/components/schemas/elasticsearchAllocationDecider'
          x-go-name: Deciders
    elasticsearchAllocationExplanation:
      type: object
      properties:
        index:
          type: string
          x-go-name: Index
          nullable: true
        shard:
          type: integer
          x-go-name: Shard
          nullable: true
          format: int64
        primary:
          type: boolean
          x-go-name: Primary
          nullable: true
        currentState:
          type: string
          x-go-name: CurrentState
          nullable: true
        currentNode:
          $ref: '#/components/schemas/elasticsearchShardNode'
          x-go-name: CurrentNode
        unassignedInfo:
          $ref: '#/components/schemas/elasticsearchUnassignedInfo'
          x-go-name: UnassignedInfo
        canAllocate:
          type: string
          x-go-name: CanAllocate
          nullable: true
        allocateExplanation:
          type: string
          x-go-name: AllocateExplanation
          nullable: true
        canRemainOnCurrentNode:
          type: string
          x-go-name: CanRemainOnCurrentNode
          nullable: true
        canRemainDecisions:
          type: array
          items:
            $ref: '#/components/schemas/elasticsearchAllocationDecider'
          x-go-name: CanRemainDecisions
        canRebalanceCluster:
          type: string
          x-go-name: CanRebalanceCluster
          nullable: true
        canRebalanceClusterDecisions:
          type: array
          items:
            $ref: '#/components/schemas/elasticsearchAllocationDecider'
          x-go-name: CanRebalanceClusterDecisions
        canRebalanceToOtherNode:
          type: string
          x-go-name: CanRebalanceToOtherNode
          nullable: true
        rebalanceExplanation:
          type: string
          x-go-name: RebalanceExplanation
          nullable: true
        nodeAllocationDecisions:
          type: array
          items:
            $ref: '#/components/schemas/elasticsearchNodeAllocationDecision'
          x-go-name: NodeAllocationDecisions
    postgresqlLockRow:
      type: object
      required:
        - pid
        - lockType
        - mode
        - granted
      properties:
        pid:
          type: integer
          format: int64
        lockType:
          type: string
        mode:
          type: string
        granted:
          type: boolean
        relationOid:
          type: string
        relationName:
          type: string
        databaseName:
          type: string
        transactionID:
          type: string
        virtualTransaction:
          type: string
        virtualXID:
          type: string
        tuple:
          type: string
        page:
          type: string
        classID:
          type: string
        objID:
          type: string
        objSubID:
          type: string
    postgresqlWaitGraphNode:
      type: object
      required:
        - pid
      properties:
        pid:
          type: integer
          format: int64
        session:
          $ref: '#/components/schemas/postgresqlSession'
    postgresqlWaitGraphEdgeEvidence:
      type: object
      required:
        - lockRows
        - limitation
      properties:
        lockRows:
          type: array
          description: Lock rows the backend can associate with this wait edge.
          items:
            $ref: '#/components/schemas/postgresqlLockRow'
        limitation:
          type: string
          description: Non-empty when the backend cannot associate precise lock rows with this edge.
    postgresqlWaitGraphEdge:
      type: object
      required:
        - blockingPid
        - blockedPid
        - evidence
      properties:
        blockingPid:
          type: integer
          format: int64
          description: PID that blocks another session.
        blockedPid:
          type: integer
          format: int64
          description: PID that is blocked by another session.
        evidence:
          $ref: '#/components/schemas/postgresqlWaitGraphEdgeEvidence'
    postgresqlWaitGraph:
      type: object
      description: Wait graph related to the selected PID. It contains the selected session's ancestor and descendant wait edges that the backend can prove from the current snapshot; unrelated side branches are intentionally excluded.
      required:
        - nodes
        - edges
      properties:
        nodes:
          type: array
          items:
            $ref: '#/components/schemas/postgresqlWaitGraphNode'
        edges:
          type: array
          items:
            $ref: '#/components/schemas/postgresqlWaitGraphEdge'
    postgresqlDeadlockEvidence:
      type: object
      required:
        - detected
        - cyclePids
      properties:
        detected:
          type: boolean
        cyclePids:
          type: array
          items:
            type: integer
            format: int64
    postgresqlLockAnalysis:
      type: object
      required:
        - selectedSession
        - directBlockingSessions
        - directBlockedSessions
        - lockRows
        - waitGraph
        - deadlock
        - cannotProve
        - warnings
        - capturedAt
      properties:
        selectedSession:
          $ref: '#/components/schemas/postgresqlSession'
        directBlockingSessions:
          type: array
          description: Sessions that directly block the selected session in the current snapshot.
          items:
            $ref: '#/components/schemas/postgresqlSession'
        directBlockedSessions:
          type: array
          description: Sessions that are directly blocked by the selected session in the current snapshot.
          items:
            $ref: '#/components/schemas/postgresqlSession'
        lockRows:
          type: array
          items:
            $ref: '#/components/schemas/postgresqlLockRow'
        waitGraph:
          $ref: '#/components/schemas/postgresqlWaitGraph'
        deadlock:
          $ref: '#/components/schemas/postgresqlDeadlockEvidence'
        cannotProve:
          type: boolean
          description: Whether the current snapshot cannot prove the lock relationship conclusively.
        warnings:
          type: array
          items:
            type: string
        capturedAt:
          type: string
          description: Snapshot capture timestamp in UTC.
    damengTablespaceItem:
      type: object
      required:
        - name
        - totalMb
        - freeMb
        - usedMb
        - usageRatio
      properties:
        name:
          type: string
          description: Tablespace name.
        totalMb:
          type: number
          format: double
          description: Total size in megabytes.
        freeMb:
          type: number
          format: double
          description: Free size in megabytes.
        usedMb:
          type: number
          format: double
          description: Used size in megabytes.
        usageRatio:
          type: number
          format: double
          description: Usage ratio as percentage (0-100).
    damengSchemaItem:
      type: object
      required:
        - name
        - sizeBytes
      properties:
        name:
          type: string
          description: Schema (owner) name.
        sizeBytes:
          type: integer
          format: int64
          description: Total segment size in bytes across all objects owned by this schema.
    damengTableSizeItem:
      type: object
      required:
        - schema
        - tableName
        - sizeBytes
      properties:
        schema:
          type: string
          description: Schema (owner) name.
        tableName:
          type: string
          description: Table name.
        sizeBytes:
          type: integer
          format: int64
          description: Total segment size in bytes for this table.
        rowCount:
          type: integer
          format: int64
          description: Estimated number of rows from DBA_TABLES.NUM_ROWS.
    damengIndexItem:
      type: object
      required:
        - schema
        - indexName
        - tableName
        - sizeBytes
        - isUnique
      properties:
        schema:
          type: string
          description: Schema (owner) name.
        indexName:
          type: string
          description: Index name.
        tableName:
          type: string
          description: Parent table name.
        sizeBytes:
          type: integer
          format: int64
          description: Segment size in bytes from DBA_SEGMENTS.
        indexType:
          type: string
          description: Index type (e.g. NORMAL, BITMAP, CLUSTER).
        isUnique:
          type: boolean
          description: Whether the index enforces uniqueness.
    damengSpaceAnalysis:
      type: object
      required:
        - tablespaces
      properties:
        tablespaces:
          type: array
          description: Tablespace size and usage information from dba_free_space and dba_data_files.
          items:
            $ref: '#/components/schemas/damengTablespaceItem'
        schemas:
          type: array
          description: Schema-level size aggregation from DBA_SEGMENTS grouped by OWNER.
          items:
            $ref: '#/components/schemas/damengSchemaItem'
        tables:
          type: array
          description: Top-N tables ordered by total size from DBA_SEGMENTS (SEGMENT_TYPE='TABLE').
          items:
            $ref: '#/components/schemas/damengTableSizeItem'
        indexes:
          type: array
          description: Top-N indexes ordered by size from DBA_INDEXES joined with DBA_SEGMENTS.
          items:
            $ref: '#/components/schemas/damengIndexItem'
    damengLongExecSQLEntry:
      type: object
      required:
        - sqlText
        - execTimeMs
        - nRuns
      properties:
        sqlText:
          type: string
          description: SQL text from V$SYSTEM_LONG_EXEC_SQLS.
        execTimeMs:
          type: integer
          format: int64
          description: Execution time in milliseconds.
        sessionId:
          type: string
          description: Session ID, when available.
        sqlId:
          type: string
          description: SQL ID, when available.
        nRuns:
          type: integer
          format: int64
          description: Number of executions.
        finishTime:
          type: string
          description: SQL finish time in UTC, when available.
    damengLargeMemSQLEntry:
      type: object
      required:
        - sqlText
        - memUsedKb
        - nRuns
      properties:
        sqlText:
          type: string
          description: SQL text from V$SYSTEM_LARGE_MEM_SQLS.
        memUsedKb:
          type: integer
          format: int64
          description: Memory used in kilobytes.
        sessionId:
          type: string
          description: Session ID, when available.
        sqlId:
          type: string
          description: SQL ID, when available.
        finishTime:
          type: string
          description: SQL finish time in UTC, when available.
        nRuns:
          type: integer
          format: int64
          description: Number of executions.
    damengSQLAnalysis:
      type: object
      required:
        - topLongExecSql
        - topLargeMemSql
      properties:
        topLongExecSql:
          type: array
          description: Top long-running SQL entries from V$SYSTEM_LONG_EXEC_SQLS ordered by execution time descending.
          items:
            $ref: '#/components/schemas/damengLongExecSQLEntry'
        topLargeMemSql:
          type: array
          description: Top high-memory SQL entries from V$SYSTEM_LARGE_MEM_SQLS ordered by memory usage descending.
          items:
            $ref: '#/components/schemas/damengLargeMemSQLEntry'
    damengSessionDetail:
      type: object
      required:
        - sessId
      properties:
        sessId:
          type: integer
          format: int64
          description: Dameng session ID from V$SESSIONS.
        userName:
          type: string
          description: Database user name.
        state:
          type: string
          description: Session state (ACTIVE, IDLE, etc.).
        clientIp:
          type: string
          description: Client IP address.
        clientType:
          type: string
          description: Client type.
        createTime:
          type: string
          description: Session creation time.
        lastSendTime:
          type: string
          description: Last SQL send time.
        sqlText:
          type: string
          description: Current or last SQL text from V$SESSIONS.
        fullSql:
          type: string
          description: Full SQL text via SF_GET_SESSION_SQL.
        trxId:
          type: string
          description: Transaction ID.
        trxDurationSec:
          type: integer
          format: int64
          description: Seconds since last SQL send time.
        appName:
          type: string
          description: Application name.
        currSchema:
          type: string
          description: Current schema.
        autoCommit:
          type: string
          description: Auto-commit status (Y/N).
    damengLockRow:
      type: object
      required:
        - trxId
      properties:
        trxId:
          type: integer
          format: int64
          description: Transaction ID holding the lock.
        lockType:
          type: string
          description: Lock type.
        lockMode:
          type: string
          description: Lock mode.
        sessId:
          type: integer
          format: int64
          description: Session ID associated with this lock.
        clientIp:
          type: string
          description: Client IP address for the session.
        sqlText:
          type: string
          description: SQL text for the session.
        userName:
          type: string
          description: User name for the session.
    damengLockAnalysis:
      type: object
      required:
        - selectedSession
        - locks
        - capturedAt
      properties:
        selectedSession:
          $ref: '#/components/schemas/damengSessionDetail'
        locks:
          type: array
          description: Lock records for the selected session's transaction.
          items:
            $ref: '#/components/schemas/damengLockRow'
        capturedAt:
          type: string
          description: Backend collection timestamp in UTC.
    damengSessionListItem:
      type: object
      required:
        - sessId
        - hasLock
      properties:
        sessId:
          type: integer
          format: int64
          description: Dameng session ID from V$SESSIONS.
        userName:
          type: string
          description: Database user name.
        state:
          type: string
          description: Session state (ACTIVE, IDLE, etc.).
        clientIp:
          type: string
          description: Client IP address.
        trxId:
          type: string
          description: Transaction ID.
        hasLock:
          type: boolean
          description: Whether this session has locks from V$LOCK.
        sqlText:
          type: string
          description: Current SQL text from V$SESSIONS.
        currSchema:
          type: string
          description: Current schema (database context).
        appName:
          type: string
          description: Application name.
        durationSec:
          type: integer
          format: int64
          description: Session duration in seconds.
        clientType:
          type: string
          description: Client type.
        autoCommit:
          type: string
          description: Auto-commit status.
    kingbaseSession:
      type: object
      required:
        - pid
        - state
        - queryDigest
        - querySummary
      properties:
        pid:
          type: integer
          format: int64
        user:
          type: string
        database:
          type: string
        applicationName:
          type: string
        clientAddr:
          type: string
        clientPort:
          type: integer
          format: int32
        state:
          type: string
        waitEventType:
          type: string
        waitEvent:
          type: string
        backendStart:
          type: string
        queryStart:
          type: string
        xactStart:
          type: string
        durationSeconds:
          type: integer
          format: int64
          minimum: 0
        xactDurationSeconds:
          type: integer
          format: int64
          minimum: 0
        queryDigest:
          type: string
        querySummary:
          type: string
        backendType:
          type: string
    kingbaseDiagnosticSourceStatus:
      type: string
      enum:
        - success
        - partial
        - failed
        - skipped
        - noData
    kingbaseDiagnosticSource:
      type: object
      required:
        - name
        - status
        - collectedAt
      properties:
        name:
          type: string
        status:
          $ref: '#/components/schemas/kingbaseDiagnosticSourceStatus'
        collectedAt:
          type: string
        message:
          type: string
    kingbaseSessionList:
      type: object
      required:
        - items
        - limit
        - source
        - warnings
        - collectedAt
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/kingbaseSession'
        limit:
          type: integer
          format: int64
          minimum: 1
          maximum: 200
        source:
          $ref: '#/components/schemas/kingbaseDiagnosticSource'
        warnings:
          type: array
          items:
            type: string
        collectedAt:
          type: string
    kingbaseLockRow:
      type: object
      required:
        - pid
        - lockType
        - mode
        - granted
      properties:
        pid:
          type: integer
          format: int64
        lockType:
          type: string
        mode:
          type: string
        granted:
          type: boolean
        relationOid:
          type: string
        relationName:
          type: string
        databaseName:
          type: string
        transactionID:
          type: string
        virtualTransaction:
          type: string
        virtualXID:
          type: string
        tuple:
          type: string
        page:
          type: string
        classID:
          type: string
        objID:
          type: string
        objSubID:
          type: string
    kingbaseLockAnalysis:
      type: object
      required:
        - selectedSession
        - lockRows
        - cannotProve
        - warnings
        - source
        - capturedAt
      properties:
        selectedSession:
          $ref: '#/components/schemas/kingbaseSession'
        lockRows:
          type: array
          items:
            $ref: '#/components/schemas/kingbaseLockRow'
        cannotProve:
          type: boolean
        warnings:
          type: array
          items:
            type: string
        source:
          $ref: '#/components/schemas/kingbaseDiagnosticSource'
        capturedAt:
          type: string
    kingbaseSessionDetail:
      type: object
      required:
        - session
        - source
        - warnings
        - collectedAt
      properties:
        session:
          $ref: '#/components/schemas/kingbaseSession'
        source:
          $ref: '#/components/schemas/kingbaseDiagnosticSource'
        warnings:
          type: array
          items:
            type: string
        collectedAt:
          type: string
    clickhouseSession:
      type: object
      required:
        - queryId
      properties:
        queryId:
          type: string
          description: ClickHouse query_id. Use it with the KILL QUERY endpoint.
        initialQueryId:
          type: string
          description: query_id of the initial (distributed) query when this row is a remote sub-query.
        user:
          type: string
          description: User that started the query.
        address:
          type: string
          description: Client address.
        port:
          type: integer
          format: int64
          description: Client port.
        database:
          type: string
          description: Current database of the query.
        hostName:
          type: string
          description: ClickHouse server host that reported the query.
        elapsedSeconds:
          type: number
          format: double
          description: Seconds elapsed since the query started.
        readRows:
          type: integer
          format: int64
          description: Rows read so far.
        readBytes:
          type: integer
          format: int64
          description: Bytes read so far.
        writtenRows:
          type: integer
          format: int64
          description: Rows written so far.
        writtenBytes:
          type: integer
          format: int64
          description: Bytes written so far.
        memoryUsageBytes:
          type: integer
          format: int64
          description: Current memory usage in bytes.
        memoryLimitBytes:
          type: integer
          format: int64
          description: max_memory_usage from the query Settings map (only explicitly modified settings). Zero means the query did not set a limit, so the server default applies.
        memoryUsageRatio:
          type: number
          format: double
          description: memory_usage / memoryLimitBytes (0-1). Zero when the query did not explicitly set max_memory_usage. Values close to 1 indicate the query is about to hit its memory limit.
        peakMemoryUsageBytes:
          type: integer
          format: int64
          description: Peak memory usage in bytes. Zero when the server version does not expose peak_memory_usage.
        isInitialQuery:
          type: boolean
          description: Whether this row is the initial query rather than a remote sub-query.
        queryStartTime:
          type: string
          description: Estimated query start time in RFC3339 UTC, computed from elapsed because system.processes has no start timestamp.
        query:
          type: string
          description: Query text with string and numeric literals and comments masked as ? before returning.
        querySummary:
          type: string
          description: Single-line masked query summary suitable for list rendering.
    clickhouseSource:
      type: object
      properties:
        name:
          type: string
          description: Source expression, for example clusterAllReplicas('ck', system.processes).
        kind:
          type: string
          description: Logical source kind (system table or collection step).
        status:
          type: string
          description: Collection status (success, partial, failed).
        message:
          type: string
          description: Short human-readable status detail.
    clickhouseSessionList:
      type: object
      required:
        - collectedAt
        - items
        - sources
      properties:
        collectedAt:
          type: string
          description: Collection time in RFC3339 UTC.
        clusterMode:
          type: string
          description: Detected deployment mode (standalone or cluster). When clusterAllReplicas fails and the local node is used instead, this is reported as standalone.
        items:
          type: array
          description: Active queries collected from system.processes, ordered by the requested metric.
          items:
            $ref: '#/components/schemas/clickhouseSession'
        sources:
          type: array
          description: Per-source collection status. In cluster mode one entry is returned per clusterAllReplicas expression.
          items:
            $ref: '#/components/schemas/clickhouseSource'
    clickhouseSQLAnalysisRange:
      type: object
      properties:
        label:
          type: string
          description: Requested range label (1h, 6h, 24h, 7d).
        start:
          type: string
          description: Range start in RFC3339 UTC.
        end:
          type: string
          description: Range end in RFC3339 UTC.
        durationSeconds:
          type: integer
          format: int64
          description: Range duration in seconds.
    clickhouseSQLSummary:
      type: object
      properties:
        queryCount:
          type: integer
          format: int64
          description: Finished and failed queries in the selected range.
        failedCount:
          type: integer
          format: int64
          description: Queries that ended with ExceptionWhileProcessing.
        slowQueryCount:
          type: integer
          format: int64
          description: Queries whose duration is at least 1000 ms.
        totalDurationMs:
          type: number
          format: double
          description: Sum of query_duration_ms for all finished and failed queries.
    clickhouseSlowQuery:
      type: object
      properties:
        queryId:
          type: string
          description: ClickHouse query_id.
        initialQueryId:
          type: string
          description: Initial query_id for a distributed query.
        type:
          type: string
          description: query_log type (QueryFinish or ExceptionWhileProcessing).
        user:
          type: string
          description: User that ran the query.
        database:
          type: string
          description: Current database at execution time.
        queryKind:
          type: string
          description: Query kind reported by ClickHouse.
        query:
          type: string
          description: Query text with string and numeric literals and comments masked as ?.
        normalizedQueryHash:
          type: string
          description: normalized_query_hash as a string to avoid precision loss in clients.
        durationMs:
          type: number
          format: double
          description: query_duration_ms.
        readRows:
          type: integer
          format: int64
          description: Rows read by the query.
        readBytes:
          type: integer
          format: int64
          description: Bytes read by the query.
        memoryUsageBytes:
          type: integer
          format: int64
          description: Memory usage in bytes.
        resultRows:
          type: integer
          format: int64
          description: Rows returned by the query.
        resultBytes:
          type: integer
          format: int64
          description: Bytes returned by the query.
        exceptionCode:
          type: integer
          format: int64
          description: ClickHouse exception code, zero for successful queries.
        exception:
          type: string
          description: Exception text for failed queries.
        eventTime:
          type: string
          description: query_log event time in RFC3339 UTC.
        hostName:
          type: string
          description: ClickHouse server host that ran the query.
        clientName:
          type: string
          description: Client name reported by ClickHouse.
        isInitialQuery:
          type: boolean
          description: Whether this is the initial query rather than a remote sub-query.
    clickhouseQueryPattern:
      type: object
      properties:
        normalizedQueryHash:
          type: string
          description: normalized_query_hash as a string.
        sampleQuery:
          type: string
          description: One representative query text for the pattern, with string and numeric literals and comments masked as ?.
        calls:
          type: integer
          format: int64
          description: Number of executions of the pattern.
        totalDurationMs:
          type: number
          format: double
          description: Sum of query_duration_ms across all executions.
        meanDurationMs:
          type: number
          format: double
          description: Average query_duration_ms.
        maxDurationMs:
          type: number
          format: double
          description: Maximum query_duration_ms.
        readRows:
          type: integer
          format: int64
          description: Sum of read_rows.
        memoryUsageBytes:
          type: integer
          format: int64
          description: Sum of memory_usage in bytes.
        failureCount:
          type: integer
          format: int64
          description: Executions that ended with ExceptionWhileProcessing.
        slowCallCount:
          type: integer
          format: int64
          description: Executions whose duration is at least 1000 ms.
        firstSeen:
          type: string
          description: First event_time in RFC3339 UTC.
        lastSeen:
          type: string
          description: Last event_time in RFC3339 UTC.
    clickhouseFailedQuery:
      type: object
      properties:
        eventTime:
          type: string
          description: query_log event time in RFC3339 UTC.
        queryId:
          type: string
          description: ClickHouse query_id.
        user:
          type: string
          description: User that ran the query.
        database:
          type: string
          description: Current database at execution time.
        query:
          type: string
          description: Query text with string and numeric literals and comments masked as ?.
        exceptionCode:
          type: integer
          format: int64
          description: ClickHouse exception code.
        exceptionCategory:
          type: string
          description: Best-effort category such as memory_limit_exceeded, timeout, too_many_parts, readonly, unknown_table or syntax_error.
        exception:
          type: string
          description: Full exception text.
        durationMs:
          type: number
          format: double
          description: query_duration_ms before the failure.
        memoryUsageBytes:
          type: integer
          format: int64
          description: Memory usage in bytes.
        hostName:
          type: string
          description: ClickHouse server host that ran the query.
    clickhouseSQLAnalysis:
      type: object
      required:
        - collectedAt
        - status
        - slowestQueries
        - patterns
        - failures
        - sources
      properties:
        collectedAt:
          type: string
          description: Collection time in RFC3339 UTC.
        status:
          type: string
          description: available when system.query_log was collected, unavailable when query logging is disabled or the table is missing.
        unavailableReason:
          type: string
          description: Stable reason code when status is unavailable, for example query_log_unavailable.
        message:
          type: string
          description: Human-readable guidance when the analysis is unavailable.
        range:
          $ref: '#/components/schemas/clickhouseSQLAnalysisRange'
        summary:
          $ref: '#/components/schemas/clickhouseSQLSummary'
        slowestQueries:
          type: array
          description: Top initial queries ordered by query_duration_ms descending. Distributed child queries are excluded via is_initial_query = 1.
          items:
            $ref: '#/components/schemas/clickhouseSlowQuery'
        patterns:
          type: array
          description: Query patterns grouped by normalized_query_hash and ordered by the requested metric.
          items:
            $ref: '#/components/schemas/clickhouseQueryPattern'
        failures:
          type: array
          description: Failed queries (type = ExceptionWhileProcessing) ordered by event_time descending.
          items:
            $ref: '#/components/schemas/clickhouseFailedQuery'
        sources:
          type: array
          description: Per-source collection status.
          items:
            $ref: '#/components/schemas/clickhouseSource'
    clickhouseSpaceSummary:
      type: object
      properties:
        databaseCount:
          type: integer
          format: int64
          description: Number of databases with active parts.
        tableCount:
          type: integer
          format: int64
          description: Number of tables with active parts.
        totalBytes:
          type: integer
          format: int64
          description: Physical bytes_on_disk across all hosts.
        dataCompressedBytes:
          type: integer
          format: int64
          description: Sum of data_compressed_bytes.
        dataUncompressedBytes:
          type: integer
          format: int64
          description: Sum of data_uncompressed_bytes.
        compressionRatio:
          type: number
          format: double
          description: data_compressed_bytes / data_uncompressed_bytes. Lower is better; zero when uncompressed size is unknown.
        totalRows:
          type: integer
          format: int64
          description: Sum of active part rows across all hosts.
        activeParts:
          type: integer
          format: int64
          description: Number of active parts across all hosts.
        partitionCount:
          type: integer
          format: int64
          description: Sum of per-table partition counts. Replicated partitions can be counted more than once.
        warningTables:
          type: integer
          format: int64
          description: Tables whose active part count reached parts_to_delay_insert.
        criticalTables:
          type: integer
          format: int64
          description: Tables whose active part count reached parts_to_throw_insert.
        partsToDelayInsert:
          type: integer
          format: int64
          description: Effective parts_to_delay_insert from system.merge_tree_settings (default 150).
        partsToThrowInsert:
          type: integer
          format: int64
          description: Effective parts_to_throw_insert from system.merge_tree_settings (default 300).
    clickhouseDiskUsage:
      type: object
      properties:
        diskName:
          type: string
          description: ClickHouse disk name.
        hostName:
          type: string
          description: ClickHouse server host.
        bytesOnDisk:
          type: integer
          format: int64
          description: bytes_on_disk for this disk and host.
        dataCompressedBytes:
          type: integer
          format: int64
          description: data_compressed_bytes for this disk and host.
        dataUncompressedBytes:
          type: integer
          format: int64
          description: data_uncompressed_bytes for this disk and host.
        rows:
          type: integer
          format: int64
          description: Rows on this disk and host.
        activeParts:
          type: integer
          format: int64
          description: Active parts on this disk and host.
    clickhouseTableSpace:
      type: object
      properties:
        database:
          type: string
          description: Database name.
        table:
          type: string
          description: Table name.
        engine:
          type: string
          description: Table engine.
        bytesOnDisk:
          type: integer
          format: int64
          description: Physical bytes_on_disk across all hosts and disks.
        dataCompressedBytes:
          type: integer
          format: int64
          description: Sum of data_compressed_bytes.
        dataUncompressedBytes:
          type: integer
          format: int64
          description: Sum of data_uncompressed_bytes.
        compressionRatio:
          type: number
          format: double
          description: data_compressed_bytes / data_uncompressed_bytes.
        rows:
          type: integer
          format: int64
          description: Sum of active part rows.
        activeParts:
          type: integer
          format: int64
          description: Active part count used for the Too many parts risk check.
        partitionCount:
          type: integer
          format: int64
          description: Distinct partitions across disks and hosts.
        hosts:
          type: integer
          format: int64
          description: Number of hosts that own active parts for this table.
        lastModifiedAt:
          type: string
          description: Latest part modification time in RFC3339 UTC.
        risk:
          type: string
          description: normal, warning (parts >= parts_to_delay_insert) or critical (parts >= parts_to_throw_insert).
        disks:
          type: array
          description: Per-disk and per-host breakdown.
          items:
            $ref: '#/components/schemas/clickhouseDiskUsage'
    clickhousePartitionSpace:
      type: object
      properties:
        database:
          type: string
          description: Database name.
        table:
          type: string
          description: Table name.
        partitionId:
          type: string
          description: partition_id from system.parts.
        partition:
          type: string
          description: Human-readable partition expression.
        rows:
          type: integer
          format: int64
          description: Sum of rows across hosts.
        bytesOnDisk:
          type: integer
          format: int64
          description: Physical bytes_on_disk across hosts.
        dataCompressedBytes:
          type: integer
          format: int64
          description: Sum of data_compressed_bytes.
        dataUncompressedBytes:
          type: integer
          format: int64
          description: Sum of data_uncompressed_bytes.
        activeParts:
          type: integer
          format: int64
          description: Active part count across hosts.
        hosts:
          type: integer
          format: int64
          description: Number of hosts that own this partition.
        minDate:
          type: string
          description: Minimum min_date in the partition.
        maxDate:
          type: string
          description: Maximum max_date in the partition.
    clickhouseMerge:
      type: object
      properties:
        database:
          type: string
          description: Database name.
        table:
          type: string
          description: Table name.
        hostName:
          type: string
          description: ClickHouse server host running the merge.
        elapsedSeconds:
          type: number
          format: double
          description: Seconds elapsed since the merge started.
        progress:
          type: number
          format: double
          description: Merge progress (0-1).
        numParts:
          type: integer
          format: int64
          description: Number of source parts.
        resultPartName:
          type: string
          description: Resulting part name.
        partitionId:
          type: string
          description: Partition being merged.
        isMutation:
          type: boolean
          description: Whether this merge also applies a mutation.
        memoryUsageBytes:
          type: integer
          format: int64
          description: Memory usage in bytes.
        rowsRead:
          type: integer
          format: int64
          description: Rows read by the merge.
        rowsWritten:
          type: integer
          format: int64
          description: Rows written by the merge.
        totalSizeBytesCompressed:
          type: integer
          format: int64
          description: Compressed size of the source parts.
    clickhouseMutation:
      type: object
      properties:
        database:
          type: string
          description: Database name.
        table:
          type: string
          description: Table name.
        hostName:
          type: string
          description: ClickHouse server host running the mutation.
        mutationId:
          type: string
          description: Mutation identifier.
        command:
          type: string
          description: Mutation command (ALTER/UPDATE/DELETE) with string and numeric literals and comments masked as ?.
        createTime:
          type: string
          description: Mutation creation time in RFC3339 UTC.
        partsToDo:
          type: integer
          format: int64
          description: Parts still waiting to be mutated.
        latestFailedPart:
          type: string
          description: Most recent part that failed mutation.
        latestFailTime:
          type: string
          description: Most recent mutation failure time in RFC3339 UTC.
        latestFailReason:
          type: string
          description: Most recent mutation failure reason.
    clickhouseSpaceAnalysis:
      type: object
      required:
        - collectedAt
        - status
        - tables
        - partitions
        - merges
        - mutations
        - sources
      properties:
        collectedAt:
          type: string
          description: Collection time in RFC3339 UTC.
        status:
          type: string
          description: success when all sources were collected, partial when at least one best-effort source failed.
        database:
          type: string
          description: Database filter applied to the collection, empty when all databases are included.
        summary:
          $ref: '#/components/schemas/clickhouseSpaceSummary'
        tables:
          type: array
          description: Top tables ordered by physical bytes_on_disk. Totals are physical usage across all hosts, not deduplicated logical usage.
          items:
            $ref: '#/components/schemas/clickhouseTableSpace'
        partitions:
          type: array
          description: Top partitions ordered by physical bytes_on_disk.
          items:
            $ref: '#/components/schemas/clickhousePartitionSpace'
        merges:
          type: array
          description: In-progress background merges from system.merges ordered by elapsed time.
          items:
            $ref: '#/components/schemas/clickhouseMerge'
        mutations:
          type: array
          description: Unfinished mutations from system.mutations ordered by creation time.
          items:
            $ref: '#/components/schemas/clickhouseMutation'
        sources:
          type: array
          description: Per-source collection status.
          items:
            $ref: '#/components/schemas/clickhouseSource'
    clickhouseClusterHealthSummary:
      type: object
      properties:
        replicaCount:
          type: integer
          format: int64
          description: Number of replicated table replicas collected.
        nodeCount:
          type: integer
          format: int64
          description: Number of nodes in system.clusters.
        clusterCount:
          type: integer
          format: int64
          description: Number of distinct cluster names.
        totalReplicas:
          type: integer
          format: int64
          description: Sum of total_replicas across replicated tables.
        activeReplicas:
          type: integer
          format: int64
          description: Sum of active_replicas across replicated tables.
        readonlyReplicas:
          type: integer
          format: int64
          description: Replicas currently in readonly mode.
        sessionExpiredReplicas:
          type: integer
          format: int64
          description: Replicas whose Keeper session expired.
        maxAbsoluteDelaySeconds:
          type: number
          format: double
          description: Maximum absolute_delay in seconds.
        totalQueueSize:
          type: integer
          format: int64
          description: Sum of replication queue sizes.
        warningReplicas:
          type: integer
          format: int64
          description: Replicas classified as warning.
        criticalReplicas:
          type: integer
          format: int64
          description: Replicas classified as critical.
        unhealthyNodes:
          type: integer
          format: int64
          description: Nodes with connection errors, slowdowns or a non-zero estimated recovery time.
    clickhouseReplicaHealth:
      type: object
      properties:
        database:
          type: string
          description: Database name.
        table:
          type: string
          description: Table name.
        hostName:
          type: string
          description: ClickHouse server host that reported this replica.
        isReadonly:
          type: boolean
          description: Replica is in readonly mode. Usually indicates Keeper or network problems.
        isSessionExpired:
          type: boolean
          description: Keeper session expired.
        absoluteDelaySeconds:
          type: number
          format: double
          description: absolute_delay from system.replicas.
        queueSize:
          type: integer
          format: int64
          description: replication queue size.
        insertsInQueue:
          type: integer
          format: int64
          description: Number of inserts waiting in the replication queue.
        mergesInQueue:
          type: integer
          format: int64
          description: Number of merges waiting in the replication queue.
        futureParts:
          type: integer
          format: int64
          description: Number of future parts.
        partsToCheck:
          type: integer
          format: int64
          description: Number of parts to check.
        totalReplicas:
          type: integer
          format: int64
          description: total_replicas for the table.
        activeReplicas:
          type: integer
          format: int64
          description: active_replicas for the table.
        logMaxIndex:
          type: integer
          format: int64
          description: Maximum log index in Keeper.
        logPointer:
          type: integer
          format: int64
          description: Last applied log index.
        lastQueueUpdate:
          type: string
          description: Last replication queue update time in RFC3339 UTC.
        zookeeperPath:
          type: string
          description: Keeper path of the table.
        replicaName:
          type: string
          description: Replica name.
        replicaPath:
          type: string
          description: Replica path in Keeper.
        zookeeperException:
          type: string
          description: Last Keeper exception, empty when healthy.
        lastQueueUpdateException:
          type: string
          description: Last replication queue update exception, empty when healthy.
        risk:
          type: string
          description: normal, warning or critical.
        issues:
          type: array
          description: Detected issue codes such as readonly, session_expired, replication_delay, queue_backlog, missing_replicas, keeper_error or queue_update_error.
          items:
            type: string
    clickhouseClusterNode:
      type: object
      properties:
        cluster:
          type: string
          description: Cluster name.
        shardNum:
          type: integer
          format: int64
          description: Shard number.
        shardWeight:
          type: integer
          format: int64
          description: Shard weight.
        replicaNum:
          type: integer
          format: int64
          description: Replica number inside the shard.
        hostName:
          type: string
          description: Configured host name.
        hostAddress:
          type: string
          description: Configured host address.
        port:
          type: integer
          format: int64
          description: Configured TCP port.
        isLocal:
          type: boolean
          description: Whether this node is the connected node.
        user:
          type: string
          description: Configured user.
        defaultDatabase:
          type: string
          description: Configured default database.
        errorsCount:
          type: integer
          format: int64
          description: Connection errors observed for this node.
        slowdownsCount:
          type: integer
          format: int64
          description: Slowdown events observed for this node.
        estimatedRecoveryTime:
          type: integer
          format: int64
          description: Estimated recovery time in seconds, zero when the node is healthy.
        risk:
          type: string
          description: normal or warning.
        issues:
          type: array
          description: Detected issue codes such as connection_errors, slowdowns or estimated_recovery_time.
          items:
            type: string
    clickhouseClusterHealth:
      type: object
      required:
        - collectedAt
        - status
        - replicas
        - nodes
        - sources
      properties:
        collectedAt:
          type: string
          description: Collection time in RFC3339 UTC.
        status:
          type: string
          description: Collection status. success when every source was collected, partial when topology or replicas could only be partially read.
        overallStatus:
          type: string
          description: Derived health status. normal, warning or critical.
        clusterMode:
          type: string
          description: Detected deployment mode (standalone or cluster).
        summary:
          $ref: '#/components/schemas/clickhouseClusterHealthSummary'
        replicas:
          type: array
          description: Replicated tables ordered by risk, absolute delay and queue size.
          items:
            $ref: '#/components/schemas/clickhouseReplicaHealth'
        nodes:
          type: array
          description: Shard and replica topology from system.clusters on the connected node.
          items:
            $ref: '#/components/schemas/clickhouseClusterNode'
        sources:
          type: array
          description: Per-source collection status.
          items:
            $ref: '#/components/schemas/clickhouseSource'
    metricsQueryType:
      type: string
      enum:
        - instant
        - range
    clusterMetrics:
      type: object
      description: Cluster metrics
      properties:
        value:
          type: array
          items: {}
          nullable: true
        values:
          type: array
          items:
            type: array
            items:
              type: object
              additionalProperties: true
            nullable: true
    clusterStorageUsageHistoryPoint:
      type: object
      required:
        - timestamp
        - usedBytes
        - totalBytes
        - availableBytes
        - usageRatio
      properties:
        timestamp:
          type: string
        usedBytes:
          type: integer
          format: int64
        totalBytes:
          type: integer
          format: int64
        availableBytes:
          type: integer
          format: int64
        usageRatio:
          type: number
          format: double
    clusterStorageUsageHistoryInstance:
      type: object
      required:
        - points
      properties:
        instanceName:
          type: string
          description: Kubernetes pod name for this storage usage series.
        pvcName:
          type: string
          description: PersistentVolumeClaim name when it can be read from metrics labels.
        role:
          type: string
          description: Raw database replica role value read from metrics labels, kept aligned with instance detail display.
        componentName:
          type: string
          description: Optional KubeBlocks component name when it can be read from metrics labels.
        points:
          type: array
          items:
            $ref: '#/components/schemas/clusterStorageUsageHistoryPoint'
        source:
          type: string
    clusterStorageUsageHistory:
      type: object
      description: Per-instance cluster storage usage history collected from backend-owned fixed metrics.
      required:
        - timeRange
        - start
        - end
        - instances
        - source
        - collectedAt
      properties:
        timeRange:
          type: string
          description: Requested history range. Supported values are 24h and 7d.
        start:
          type: string
          description: History query start timestamp in UTC.
        end:
          type: string
          description: History query end timestamp in UTC.
        instances:
          type: array
          items:
            $ref: '#/components/schemas/clusterStorageUsageHistoryInstance'
        source:
          type: string
          description: Metrics source used to build the history.
        collectedAt:
          type: string
          description: Backend collection timestamp in UTC.
    instanceDiskUsageItem:
      description: disk usage with volume name.
      properties:
        volumeName:
          description: volume name
          type: string
        diskUsage:
          description: disk usage with unit Gi
          type: string
      required:
        - volumeName
        - diskUsage
      type: object
    instanceMetrics:
      description: instance metrics
      properties:
        instanceName:
          description: the name of the instance
          type: string
        cpuUsage:
          description: cpu with uint cores.
          type: string
          nullable: true
        memoryUsage:
          description: memory with uint Gi.
          type: string
          nullable: true
        diskUsageItems:
          description: disk usage items
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/instanceDiskUsageItem'
      required:
        - instanceName
      type: object
    instanceMetricsList:
      description: instance metrics list
      properties:
        items:
          description: instanceMetrics list
          type: array
          items:
            $ref: '#/components/schemas/instanceMetrics'
      required:
        - items
      type: object
    tlsName:
      type: string
      description: Name of the TLS certificates
      enum:
        - ca
        - certificate
        - privateKey
        - keystore
        - truststore
    tlsType:
      description: TLS type
      type: string
      enum:
        - StandardTLS
        - JavaKeystore
      default: StandardTLS
    certificate:
      description: certificates and it's config
      type: object
      required:
        - type
        - name
        - content
      properties:
        name:
          description: Name of the TLS certificates
          $ref: '#/components/schemas/tlsName'
        type:
          $ref: '#/components/schemas/tlsType'
        content:
          description: Content of the TLS certificates
          type: string
        expirationDays:
          description: Expiration days for this certificate
          type: integer
          x-omitempty: true
          format: int32
        DNS:
          description: DNS name in the certificate SAN
          type: array
          x-omitempty: true
          items:
            type: string
        ipAddress:
          description: IP address in the certificate SAN
          type: array
          x-omitempty: true
          items:
            type: string
    tlsCert:
      properties:
        certificates:
          description: TLS certificates
          type: array
          items:
            $ref: '#/components/schemas/certificate'
        componentName:
          description: Component these certs belong to
          type: string
      type: object
    tlsCertList:
      items:
        $ref: '#/components/schemas/tlsCert'
      type: array
    certificateIssuer:
      description: certificate issuer
      type: string
      default: Apecloud
      enum:
        - Apecloud
        - UserSelf
    tlsOption:
      description: TLS options
      type: object
      required:
        - issuer
      properties:
        issuer:
          description: Issuer of the TLS certificates
          $ref: '#/components/schemas/certificateIssuer'
        serviceName:
          description: the service name that will be set in certificate SAN
          type: array
          items:
            type: string
          x-omitempty: true
        caContent:
          description: CA certificate content
          type: string
          x-omitempty: true
        certificateContent:
          description: Certificate content
          type: string
          x-omitempty: true
        privateKeyContent:
          description: Private key content
          type: string
          x-omitempty: true
    tlsRequest:
      type: object
      required:
        - enable
      properties:
        enable:
          description: Enable TLS or not
          type: boolean
        options:
          description: TLS options
          $ref: '#/components/schemas/tlsOption'
    clusterBackupMethod:
      description: the backup method for cluster
      properties:
        full:
          description: full backup method
          type: string
        incremental:
          description: incremental backup method
          type: string
        continuous:
          description: continuous backup method
          type: string
        selective:
          description: selective backup method
          type: string
      type: object
    backupType:
      enum:
        - Full
        - Incremental
        - Differential
        - Continuous
        - Selective
      type: string
      description: the type of backup
    selectiveObjectTreeNode:
      description: tree node for selective backup objects
      properties:
        type:
          description: the type of the node
          type: string
        name:
          description: the name of the node
          type: string
        selectedAll:
          type: boolean
          description: whether all children nodes are selected
        children:
          description: children nodes
          type: array
          items:
            $ref: '#/components/schemas/selectiveObjectTreeNode'
      required:
        - type
        - name
      type: object
    backupCreate:
      description: BackupCreate is the payload to create a KubeBlocks cluster backup
      properties:
        name:
          description: name of the backup, if not specified, a name will be generated automatically
          type: string
        backupType:
          $ref: '#/components/schemas/backupType'
        backupMethod:
          description: specified the backup method
          type: string
        component:
          description: component of the cluster to back up
          type: string
        retentionPeriod:
          description: specify the retention period
          type: string
        parameters:
          description: parameters for the backup
          additionalProperties:
            type: string
        selectedObjects:
          description: selected objects for the backup
          type: array
          items:
            $ref: '#/components/schemas/selectiveObjectTreeNode'
      type: object
      required:
        - backupMethod
    backupStatus:
      description: The current status. Valid values are New, InProgress, Completed, Failed.
      enum:
        - New
        - InProgress
        - Running
        - Completed
        - Failed
        - Deleting
      type: string
    backup:
      description: backup is the payload for KubeBlocks cluster backup
      properties:
        autoBackup:
          description: autoBackup or not
          type: boolean
        backupMethod:
          description: Backup Method.
          type: string
        backupPolicyName:
          description: Which backupPolicy is applied to perform this backup
          pattern: ^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$
          type: string
        backupRepo:
          description: backupRepo is the name of backupRepo and it is used to store the backup data
          type: string
        backupType:
          $ref: '#/components/schemas/backupType'
        completionTimestamp:
          description: Date/time when the backup finished being processed.
          format: date-time
          type: string
          nullable: true
        creationTimestamp:
          description: Date/time when the backup was created.
          format: date-time
          type: string
        duration:
          description: The duration time of backup execution. When converted to a string, the form is "1h2m0.5s".
          type: string
        name:
          description: name of the backup
          type: string
        orgName:
          description: orgName records the organization name for this backup.
          type: string
        snapshotVolumes:
          description: snapshotVolumes specifies whether to take snapshots of persistent volumes to back up
          type: boolean
        sourceCluster:
          description: sourceCluster records the source cluster information for this backup.
          type: string
        startTimestamp:
          description: Date/time when the backup started being processed.
          format: date-time
          type: string
          nullable: true
        status:
          $ref: '#/components/schemas/backupStatus'
        timeRangeEnd:
          description: timeRangeEnd records the end time of the backup.
          format: date-time
          type: string
          nullable: true
        timeRangeStart:
          description: timeRangeStart records the start time of the backup.
          format: date-time
          type: string
          nullable: true
        totalSize:
          description: Backup total size. A string with capacity units in the form of "1Gi", "1Mi", "1Ki".
          type: string
        failureReason:
          type: string
        extras:
          type: string
        parameters:
          type: array
          description: backup parameters
          items:
            type: object
            properties:
              name:
                description: the name of parameter
                type: string
              value:
                description: the value of parameter
                type: string
        selectedObjects:
          type: array
          description: backup selected objects
          items:
            $ref: '#/components/schemas/selectiveObjectTreeNode'
        targetPods:
          type: array
          description: backup target pods
          items:
            type: string
        path:
          description: the path of backup files
          type: string
        retentionPeriod:
          description: determines a duration up to which the backup should be kept
          type: string
        expiration:
          description: indicates when this backup becomes eligible for garbage collection
          type: string
          format: date-time
          nullable: true
        id:
          description: the backup id
          type: string
        clusterId:
          description: the id of cluster that backup belong to
          type: string
        cloudProvider:
          description: the cloud provider
          type: string
        cloudRegion:
          description: the cloud region
          type: string
        environmentName:
          description: the environment name
          type: string
        engine:
          description: the cluster engine
          type: string
        parentBackupName:
          description: the parent backup name
          type: string
        baseBackupName:
          description: the base backup name
          type: string
        encryptionKeyName:
          description: the key name used for encryption
          type: string
      required:
        - autoBackup
        - backupMethod
        - backupPolicyName
        - backupType
        - creationTimestamp
        - engine
        - environmentName
        - name
        - orgName
        - retentionPeriod
        - snapshotVolumes
        - sourceCluster
        - status
        - totalSize
      type: object
    encryptionConfig:
      description: encryption config for cluster
      properties:
        enabled:
          type: boolean
          description: whether enable encryption for backup
        keyName:
          type: string
          description: the key name used for encryption. If this field is empty, a new key will be generated.
      type: object
    backupPolicy:
      description: BackupPolicy is the payload for KubeBlocks cluster backup policy
      properties:
        autoBackup:
          default: false
          description: specify whether to use auto backup
          type: boolean
        autoBackupMethod:
          description: the auto full backup method
          type: string
        pitrEnabled:
          description: specify whether to enable point-in-time recovery
          default: false
          type: boolean
        continuousBackupMethod:
          description: continuous backup method for pitr
          type: string
        cronExpression:
          description: the crop expression for schedule
          type: string
        incrementalBackupEnabled:
          description: specify whether to enable incremental backup
          default: false
          type: boolean
        incrementalCronExpression:
          description: the crop expression for incremental backup schedule
          type: string
        retentionPeriod:
          description: specify the retention period
          type: string
        backupRepo:
          description: the backup repo name, which is used to store backup data
          type: string
        retentionPolicy:
          $ref: '#/components/schemas/backupRetentionPolicy'
        nextBackupTime:
          description: the time to do next backup
          format: date-time
          type: string
          nullable: true
        encryptionConfig:
          $ref: '#/components/schemas/encryptionConfig'
        backupParameters:
          type: object
          additionalProperties:
            type: object
            description: backup parameters for different backup methods
            additionalProperties:
              type: string
      type: object
    backupSchedule:
      description: backup schedule for database table backup
      properties:
        id:
          description: the backup schedule id
          type: string
        scheduleName:
          description: the name of backup schedule
          type: string
        clusterId:
          description: the cluster id
          type: string
        backupMethod:
          description: the backup method
          type: string
        parameters:
          type: array
          description: backup parameters
          items:
            type: object
            properties:
              name:
                description: the name of parameter
                type: string
              value:
                description: the value of parameter
                type: string
        selectedObjects:
          type: array
          description: backup selected objects
          items:
            $ref: '#/components/schemas/selectiveObjectTreeNode'
        createdAt:
          description: the creation time
          format: date-time
          type: string
        updatedAt:
          description: the last update time
          format: date-time
          type: string
        cronExpression:
          description: the cron expression for backup schedule
          type: string
      type: object
    backupScheduleList:
      description: list of backup schedules
      properties:
        items:
          description: items is the list of backup schedule objects
          items:
            $ref: '#/components/schemas/backupSchedule'
          type: array
        totalCount:
          description: total count of backup schedules
          type: integer
          format: int64
      type: object
    backupScheduleCreate:
      description: payload to create a backup schedule
      properties:
        scheduleName:
          description: the name of backup schedule
          type: string
        backupMethod:
          description: the backup method
          type: string
        parameters:
          type: object
          description: backup parameters
          additionalProperties:
            type: string
        selectedObjects:
          type: array
          description: backup selected objects
          items:
            $ref: '#/components/schemas/selectiveObjectTreeNode'
        cronExpression:
          description: the cron expression for backup schedule
          type: string
      required:
        - scheduleName
        - backupMethod
      type: object
    backupScheduleUpdate:
      description: payload to update a backup schedule
      properties:
        scheduleName:
          description: the name of backup schedule
          type: string
        backupMethod:
          description: the backup method
          type: string
        parameters:
          type: object
          description: backup parameters
          additionalProperties:
            type: string
        selectedObjects:
          type: array
          description: backup selected objects
          items:
            $ref: '#/components/schemas/selectiveObjectTreeNode'
        cronExpression:
          description: the cron expression for backup schedule
          type: string
      type: object
    backupList:
      description: BackupList is a list of backups
      properties:
        items:
          description: Items is the list of backup policy objects in the list
          items:
            $ref: '#/components/schemas/backup'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    backupBatchDelete:
      description: BackupBatchDelete is the payload for deleting multiple backups
      type: object
      required:
        - backupIds
      properties:
        backupIds:
          description: IDs of the backups to delete
          type: array
          minItems: 1
          maxItems: 100
          items:
            type: string
    backupStatsStatus:
      description: Number of backups for the status
      properties:
        status:
          description: Backup status
          type: string
        num:
          description: Number of backups for each status
          format: int64
          type: integer
      type: object
    backupStatsEngine:
      description: Totalsize and number of backups for the engine
      properties:
        engine:
          description: Engine name
          type: string
        size:
          description: totalsize of backups for each engine, A string with capacity units in the form of "1Gi", "1Mi", "1Ki".
          type: string
        num:
          description: The number of backups for each engine
          format: int64
          type: integer
      type: object
    backupStatsType:
      description: Totalsize and number of backups for the backup type
      properties:
        type:
          description: backup type
          type: string
        size:
          description: totalsize of backups for each engine, A string with capacity units in the form of "1Gi", "1Mi", "1Ki".
          type: string
        num:
          description: The number of backups for each engine
          format: int64
          type: integer
      type: object
    backupStats:
      description: Backup statistic info
      properties:
        backupStatsStatus:
          description: Number of backups for each different status
          items:
            $ref: '#/components/schemas/backupStatsStatus'
          type: array
        backupStatsEngine:
          description: TotalSize and number of backups for each engine
          items:
            $ref: '#/components/schemas/backupStatsEngine'
          type: array
        backupStatsType:
          description: TotalSize and number of backups for each type
          items:
            $ref: '#/components/schemas/backupStatsType'
          type: array
        latestBackupTime:
          description: create time of the latest backup
          type: string
          format: date-time
          nullable: true
        latestBackupStatus:
          description: backup status of the latest backup
          type: string
          nullable: true
      type: object
    backupLogByPod:
      description: info of backup workload log
      properties:
        log:
          description: logs of the backup workload
          type: string
        podName:
          description: pod name
          type: string
        creationTimestamp:
          description: Date/time when the backup pod was created.
          format: date-time
          type: string
      type: object
    backupLog:
      description: backup workload logs
      properties:
        items:
          description: items is the list of backupLogByPod objects
          items:
            $ref: '#/components/schemas/backupLogByPod'
          type: array
        backupId:
          description: backup id
          type: string
      type: object
    backupView:
      properties:
        filepaths:
          description: the paths of file to view
          type: array
          items:
            type: string
    fileEntry:
      description: the entry of files
      properties:
        IsDir:
          description: description the entry type
          type: boolean
        fullPath:
          description: the full path of file
          type: string
        filename:
          description: the filename
          type: string
        size:
          description: the size of entry
          format: int64
          type: integer
        lastModified:
          description: the last modified time of entry
          format: date-time
          type: string
    fileEntryList:
      description: BackupEntryList is a list of entry
      properties:
        items:
          description: Items is the list of backup entry
          items:
            $ref: '#/components/schemas/fileEntry'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      type: object
    backupDownload:
      properties:
        filepaths:
          description: the paths of file to download
          type: array
          items:
            type: string
    restore:
      description: create a KubeBlocks restore API
      properties:
        id:
          description: ID of the restore
          type: string
        orgName:
          description: organization name
          type: string
        backupName:
          description: backup name
          type: string
        clusterName:
          description: kubeBlocks cluster name
          type: string
        componentName:
          description: component name of cluster
          type: string
        targetPodName:
          description: target pod name
          type: string
        createdAt:
          format: date-time
          type: string
        name:
          description: kubeBlocks restore name
          type: string
        parameters:
          description: restore parameters to inject env of the restore CR.
          additionalProperties:
            type: string
          type: object
        restoreTime:
          description: restore time
          type: string
        duration:
          description: duration of restore
          type: string
        selectedObjects:
          type: array
          description: selected objects to restore
          items:
            $ref: '#/components/schemas/selectiveObjectTreeNode'
        status:
          description: restore status
          properties:
            actions:
              items:
                properties:
                  message:
                    type: string
                  name:
                    description: action name
                    type: string
                  status:
                    description: 'action status, enum values: [Processing, Completed, Failed]'
                    type: string
                  backupName:
                    type: string
                  objectKey:
                    type: string
                  startTime:
                    type: string
                    format: date-time
                  endTime:
                    type: string
                    format: date-time
                type: object
              type: array
            completionTimestamp:
              description: completion time
              type: string
              format: date-time
              nullable: true
            conditions:
              items:
                properties:
                  message:
                    type: string
                  reason:
                    type: string
                  type:
                    description: conditionType
                    type: string
                  observedGeneration:
                    type: integer
                    format: int64
                  lastTransitionTime:
                    type: string
                    format: date-time
                  status:
                    type: string
                type: object
              type: array
            phase:
              description: restore phase
              type: string
            startTimestamp:
              description: start time
              type: string
              format: date-time
              nullable: true
          type: object
      required:
        - backupName
        - clusterName
      type: object
    restoreList:
      description: restoreList is a list of restore object
      properties:
        items:
          description: Items is the list of restore objects in the list
          items:
            $ref: '#/components/schemas/restore'
          type: array
      required:
        - items
      type: object
    restoreLogByPod:
      description: info of restore workload log
      properties:
        log:
          description: restore pod log
          type: string
        ownerObjectKey:
          description: pod ownerReference objectkey
          type: string
        podName:
          description: pod name
          type: string
        creationTimestamp:
          description: Date/time when the restore pod was created.
          format: date-time
          type: string
      type: object
    restoreLog:
      description: restore workload logs
      properties:
        items:
          description: items is the list of restoreLogByPod objects
          items:
            $ref: '#/components/schemas/restoreLogByPod'
          type: array
        restoreId:
          description: restore id
          type: string
      type: object
    volumeRestorePolicy:
      default: Serial
      description: 'the volume claim restore policy, support values: [Serial, Parallel]'
      enum:
        - Serial
        - Parallel
      type: string
    restoreCreate:
      description: RestoreCreate is the payload to restore a KubeBlocks cluster
      properties:
        environmentName:
          description: the env name of the target environment to restore
          type: string
        backupId:
          description: the id of backup to restore
          type: string
        cluster:
          $ref: '#/components/schemas/clusterCreate'
        restoreTimeStr:
          description: Target time for point-in-time recovery, only supported with a Continuous backup ID. Use an RFC3339 timestamp at whole-second precision, for example 2026-10-22T08:30:00Z or 2026-10-22T16:30:00+08:00. Timezone offsets are converted to UTC without changing the instant. Non-zero fractional seconds and UTC years outside 0000-9999 are rejected. Omit or leave empty to retain the backup method's default restore behavior.
          type: string
        doReadyRestoreAfterClusterRunning:
          description: the recovery process in the PostReady phase will be performed after the cluster is running successfully.
          type: boolean
        volumeRestorePolicy:
          $ref: '#/components/schemas/volumeRestorePolicy'
      required:
        - environmentName
        - backupId
        - cluster
      type: object
    backupRepoAccessMethod:
      description: the access method for backup repo
      default: Tool
      enum:
        - Mount
        - Tool
      type: string
    storageDisplayName:
      type: object
      description: the storage displayName
      properties:
        zh:
          type: string
        en:
          type: string
    backupRepoCheckStatus:
      type: string
      enum:
        - Passed
        - Failed
        - NotChecked
    backupRepoCheckResult:
      type: object
      description: Result of the platform storage access check, independent of the BackupRepo CR phase.
      required:
        - status
      properties:
        status:
          $ref: '#/components/schemas/backupRepoCheckStatus'
        message:
          type: string
        checkedAt:
          type: string
          format: date-time
          x-nullable: true
    backupRepo:
      description: backupRepo is the payload for KubeBlocks cluster backup repo
      properties:
        accessMethod:
          $ref: '#/components/schemas/backupRepoAccessMethod'
        id:
          description: the id of backup repo
          type: string
        backupNums:
          description: backupNums specifies the number of backups in the backupRepo
          type: integer
        config:
          additionalProperties:
            type: string
          description: config specifies the configuration of the backupRepo
          type: object
        createdAt:
          description: createdAt specifies the creation time of the backupRepo
          format: date-time
          type: string
        default:
          description: default specifies whether the backupRepo is the default backupRepo
          type: boolean
        environmentId:
          description: environmentId of the backupRepo
          format: uuid
          type: string
        environmentName:
          description: environmentName of the backupRepo
          type: string
        name:
          description: name of the backupRepo
          type: string
        status:
          description: status specifies the status of the backupRepo
          type: string
        storageName:
          description: the name of storage used by backup repo
          type: string
        storageID:
          description: the id of storage used by backup repo
          type: string
        storageProvider:
          description: storageProvider specifies the storage provider of the backupRepo
          type: string
        storageProviderDisplayName:
          description: Localized display name from the storage provider metadata. Omitted when the provider or its display name is unavailable.
          readOnly: true
          $ref: '#/components/schemas/storageDisplayName'
        totalSize:
          description: totalSize specifies the total size of backups in the backupRepo
          type: string
        check:
          $ref: '#/components/schemas/backupRepoCheckResult'
        failedReason:
          type: string
          description: failedReason specifies the reason of the backupRepo failure
        failedMessage:
          type: string
          description: failedMessage specifies the message of the backupRepo failure
      required:
        - config
        - createdAt
        - default
        - environmentId
        - environmentName
        - name
        - storageProvider
      type: object
    backupRepoList:
      description: BackupRepoList is a list of backupRepo
      properties:
        items:
          description: Items is the list of backupRepo objects in the list
          items:
            $ref: '#/components/schemas/backupRepo'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    backupRepoView:
      properties:
        filepath:
          description: the router to show in backup repo
          type: string
    parameterHistory:
      description: The history of a parameter
      type: object
      required:
        - parameterName
        - oldValue
        - newValue
        - updatedAt
      properties:
        parameterName:
          description: The name of the parameter
          type: string
        oldValue:
          description: The old value of the parameter
          type: string
        newValue:
          description: The new value of the parameter
          type: string
        updatedAt:
          description: The date and time the parameter was last updated
          format: date-time
          type: string
        source:
          $ref: '#/components/schemas/eventSource'
        operator:
          description: operator of the event, if source is user, operator is user name; if source is system, operator is system name
          type: string
        operatorId:
          description: The user ID of the operator
          type: string
        fileName:
          description: The name of the configuration file
          type: string
    parameterHistoryList:
      description: A list of parameter history
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/parameterHistory'
    parameterProp:
      type: object
      required:
        - name
        - type
        - needRestart
        - immutable
      properties:
        name:
          description: The name of the parameter
          type: string
        description:
          description: The description of the parameter
          type: string
        type:
          description: The type of the parameter value
          type: string
        value:
          description: The value of the parameter, if parameter is not set in tpl, it's value equal to cue default value.
          type: object
        default:
          description: The value of the parameter, if parameter is not set in tpl, it's value equal to cue default value.
          type: object
        needRestart:
          description: Whether the parameter requires a restart to take effect
          type: boolean
        immutable:
          description: Whether the parameter is an immutable parameter, immutable parameters cannot be modified
          type: boolean
        maximum:
          description: The maximum value of the parameter
          type: string
        minimum:
          description: The minimum value of the parameter
          type: string
        enum:
          description: The value options of the parameter
          type: array
          items: {}
        unit:
          description: The unit of the parameter value (e.g., seconds, bytes, ms, percentage)
          type: string
    parameterItem:
      type: object
      description: With the list of parameter properties and the configuration file name
      properties:
        props:
          type: array
          description: The list of parameters properties
          items:
            $ref: '#/components/schemas/parameterProp'
        additionalProps:
          type: array
          description: The additional properties of the parameter
          items:
            $ref: '#/components/schemas/parameterProp'
        fileName:
          description: The name of the configuration file
          type: string
        specName:
          description: The name of the config spec
          type: string
        rawContent:
          description: The raw content of the configuration file, return only when raw is true in the query.
          type: string
    parameterList:
      description: A list of cluster parameter
      required:
        - engine
        - component
      properties:
        engine:
          description: Name of database engine
          type: string
        component:
          description: Name of component
          type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/parameterItem'
    paramTplListItem:
      description: parameter template information
      properties:
        orgName:
          description: Name of the organization
          type: string
        createdAt:
          description: |-
            CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.

            Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
        description:
          description: Description of parameter template
          type: string
        majorVersions:
          description: 'Major versions of database engine, eg: 8.0, 8.1, 8.2'
          type: array
          items:
            type: string
        engine:
          description: Name of database engine
          type: string
        component:
          description: Name of component
          type: string
        name:
          description: Name of parameter template. Name must be unique within an Org
          type: string
        partition:
          description: the template partition in listParamTpl request
          type: string
        paramTplID:
          type: string
          description: id of parameter template
        updatedAt:
          description: |-
            UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.

            Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
      required:
        - description
        - paramTplID
        - majorVersions
        - engine
        - component
        - name
        - partition
      type: object
    paramTplList:
      description: paramTplList is a list of parameter templates
      properties:
        items:
          description: Items is the list of parameter templates objects in the list
          items:
            $ref: '#/components/schemas/paramTplListItem'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    paramTplCreate:
      description: parameter template create
      properties:
        description:
          description: Description of parameter template
          maxLength: 128
          minLength: 3
          type: string
        name:
          description: Name of parameter template. Name must be unique within an Org
          maxLength: 64
          minLength: 3
          pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
          type: string
        oriName:
          description: Name of the original parameter template.
          type: string
        oriPartition:
          $ref: '#/components/schemas/parameterTemplatePartition'
        isPrivate:
          description: Determines whether the user can see this parameter template
          type: boolean
      required:
        - description
        - name
        - oriName
        - oriPartition
      type: object
    paramTplUpdate:
      description: paramTplUpdate is the payload to update a parameter template
      properties:
        specName:
          description: Specify parameters belongs to which spec. Currently, only one configuration file corresponds to a specName, so the configuration file name is omitted.
          type: string
        parameters:
          additionalProperties:
            type: string
          description: Specify parameters list to be updated
          type: object
        parametersToRemove:
          description: Specify parameters list to be removed from the template
          items:
            type: string
          type: array
        newParamTplName:
          description: Specify the new name of the parameter template
          type: string
        description:
          description: The description of the parameter template
          type: string
        rawContent:
          description: The raw content of the configuration file
          type: string
      type: object
    parameterTemplateDiffItem:
      description: A parameter or raw file difference in a parameter template
      properties:
        fileName:
          description: The name of the configuration file
          type: string
        parameterName:
          description: The name of the changed parameter. Empty when rawContent is true and the whole file differs.
          type: string
        oldValue:
          description: The value from the matching default template
          type: string
        newValue:
          description: The value from the custom parameter template
          type: string
      required:
        - fileName
      type: object
    parameterTemplateDiff:
      description: A list of parameter template differences against the matching default template
      properties:
        items:
          description: Items is the list of parameter template differences
          type: array
          items:
            $ref: '#/components/schemas/parameterTemplateDiffItem'
      required:
        - items
      type: object
    paramTplApplyToClusterListItem:
      description: parameter template applicable to the cluster information
      properties:
        count:
          description: The number of parameters in the parameter template
          type: integer
        name:
          description: Name of parameter template. Name must be unique within an Org
          type: string
        id:
          description: id of parameter template
          type: string
        needRestart:
          description: 'whether to restart after applying this parameter template or not '
          type: boolean
        partition:
          description: the template partition
          type: string
      required:
        - count
        - needRestart
        - name
        - partition
      type: object
    paramTplApplyToClusterList:
      description: paramTplAPPLToClusterList is a list of parameter templates applicable to the cluster
      properties:
        items:
          description: Items is the list of parameter templates applicable to the cluster objects in the list
          items:
            $ref: '#/components/schemas/paramTplApplyToClusterListItem'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    paramTplCreateFromCluster:
      description: parameter template create
      properties:
        description:
          description: Description of parameter template
          maxLength: 128
          minLength: 3
          type: string
        name:
          description: Name of parameter template. Name must be unique within an Org
          maxLength: 64
          minLength: 3
          pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
          type: string
        component:
          description: component type.
          type: string
        engineVersion:
          description: database engine Version
          type: string
      required:
        - description
        - name
      type: object
    parameterTemplateImportEngine:
      type: string
      description: Target engine used to validate the component, major versions and configuration in the file.
      enum:
        - mongodb
        - influxdb
        - tdengine
        - mssql
        - mysql
        - postgresql
    parameterTemplateImportRequest:
      type: object
      description: Import a YAML file as a new custom parameter template in the target organization.
      required:
        - name
        - description
        - engine
        - file
      properties:
        name:
          type: string
          description: Name to give the imported template. It must be unique within the target organization.
          minLength: 3
          maxLength: 64
          pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
        description:
          type: string
          description: Description to save with the new template.
          minLength: 3
          maxLength: 128
        engine:
          $ref: '#/components/schemas/parameterTemplateImportEngine'
        file:
          type: string
          format: binary
          description: Upload one parameter template YAML file of at most 1 MiB (1,048,576 bytes). Its name, engine and description are optional source information and are ignored during import.
    parameterTemplateImportResult:
      type: object
      required:
        - template
        - warnings
      properties:
        template:
          $ref: '#/components/schemas/paramTplListItem'
        warnings:
          type: array
          items:
            type: string
    alertReceiverCategory:
      type: string
      enum:
        - feishu
        - wechat
        - dingtalk
        - receiver-group
        - webhook
    webhookConfig:
      description: Webhook config of alert receiver
      properties:
        url:
          type: string
      required:
        - url
      type: object
    alertReceiver:
      description: Alert receiver information
      properties:
        createdAt:
          format: date-time
          type: string
        id:
          type: string
        name:
          type: string
        category:
          $ref: '#/components/schemas/alertReceiverCategory'
        updatedAt:
          format: date-time
          type: string
        userGroup:
          properties:
            emailEnabled:
              type: boolean
            ids:
              items:
                type: string
              type: array
            smsEnabled:
              type: boolean
          type: object
        webhookConfig:
          $ref: '#/components/schemas/webhookConfig'
        orgName:
          type: string
      type: object
    alertReceiverList:
      description: AlertReceiverList is a list of alert receivers
      properties:
        items:
          description: Items is the list of alert receiver objects in the list
          items:
            $ref: '#/components/schemas/alertReceiver'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    URLCheck:
      type: object
      required:
        - url
      properties:
        url:
          type: string
          format: uri
          example: https://example.com
        isConnectable:
          type: boolean
          example: true
          default: false
        timeout:
          type: integer
          minimum: 1
          maximum: 30
          default: 5
          example: 5
        error:
          type: string
          example: null
    alertStatistic:
      type: object
      properties:
        total:
          type: integer
        critical:
          type: integer
        warning:
          type: integer
        info:
          type: integer
    alterRuleRef:
      type: object
      properties:
        groupName:
          type: string
        alertName:
          type: string
    alertStrategy:
      required:
        - receiverIds
      type: object
      properties:
        id:
          type: integer
        orgName:
          type: string
        name:
          type: string
        description:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        receiverIds:
          type: array
          items:
            type: integer
        receivers:
          type: array
          items:
            $ref: '#/components/schemas/alertReceiver'
        envs:
          type: array
          items:
            type: string
        severities:
          type: array
          items:
            type: string
        rules:
          type: array
          items:
            type: string
        ruleObjs:
          type: array
          items:
            $ref: '#/components/schemas/alterRuleRef'
        engines:
          type: array
          items:
            type: string
        clusters:
          type: array
          items:
            type: string
        disabled:
          type: boolean
          default: false
        repeatInterval:
          type: string
        muteTimeInterval:
          type: object
          properties:
            weekdays:
              type: array
              items:
                type: integer
                description: Days should be between [0, 6] where 0 = Sunday.
            times:
              type: object
              properties:
                startTime:
                  type: string
                  description: Mute start time, e.g. '17:00', should be in UTC time.
                endTime:
                  type: string
                  description: Mute end time, e.g. '24:00', should be in UTC time.
            onceMinutes:
              type: integer
              description: Only mute once for `onceMinutes` minutes
      description: Alert strategy information
    alertStrategyList:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          description: Items is the list of alert strategy objects in the list
          items:
            $ref: '#/components/schemas/alertStrategy'
        pageResult:
          $ref: '#/components/schemas/pageResult'
      description: AlertStrategyList is a list of alert strategies
    alertSeverity:
      enum:
        - critical
        - warning
        - info
      type: string
    alertRule:
      required:
        - alertName
        - for
        - groupName
        - severity
      type: object
      properties:
        description:
          type: string
        summary:
          type: string
        alertName:
          type: string
        expr:
          type: string
          description: Expression. Required if metric is not provided.
        for:
          type: string
        groupName:
          type: string
        disabled:
          type: boolean
          default: false
        severity:
          $ref: '#/components/schemas/alertSeverity'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        orgName:
          type: string
      description: Alert rule information. Either provide 'expr' for custom expressions, or 'metric' for predefined metrics.
    alertRuleGroup:
      type: object
      properties:
        name:
          type: string
        rules:
          type: array
          items:
            $ref: '#/components/schemas/alertRule'
    alertRuleList:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          description: Items is the list of alert rule objects in the list
          items:
            $ref: '#/components/schemas/alertRuleGroup'
        pageResult:
          $ref: '#/components/schemas/pageResult'
      description: AlertRuleList is a list of alert rules
    objectTypeEnum:
      type: string
      enum:
        - cluster
        - channel
        - unknown
    alertStatus:
      enum:
        - resolved
        - firing
      type: string
    alertObject:
      type: object
      properties:
        id:
          type: integer
        alertName:
          type: string
        groupName:
          type: string
        expr:
          type: string
        clusterName:
          type: string
        objectType:
          $ref: '#/components/schemas/objectTypeEnum'
          nullable: true
        objectID:
          type: string
          nullable: true
        objectName:
          type: string
        engine:
          type: string
        namespace:
          type: string
        pod:
          type: string
        severity:
          $ref: '#/components/schemas/alertSeverity'
        description:
          type: string
        fingerprint:
          type: string
        startsAt:
          format: date-time
          type: string
        endsAt:
          format: date-time
          type: string
        status:
          $ref: '#/components/schemas/alertStatus'
        count:
          type: integer
        orgName:
          type: string
        page:
          type: integer
        pageSize:
          type: integer
        env:
          type: string
      description: Alert object information
    alertObjectList:
      type: object
      properties:
        items:
          type: array
          description: Items is the list of alert objects in the list
          items:
            $ref: '#/components/schemas/alertObject'
        pageResult:
          $ref: '#/components/schemas/pageResult'
      description: AlertObjectList is a list of alert object
    clusterAlertSummary:
      type: object
      properties:
        activeCount:
          type: integer
          format: int64
          description: number of active alerts after cluster/status/severity filters
        severityCounts:
          type: object
          additionalProperties:
            type: integer
            format: int64
          description: active alert count grouped by severity
        topAlerts:
          type: array
          description: top alerts for the cluster after filters
          items:
            $ref: '#/components/schemas/alertObject'
        updatedAt:
          type: string
          format: date-time
          description: response generation time
      description: Cluster alert summary
    alertClusterSilenceMode:
      type: string
      enum:
        - once
        - weekly
      description: Required when enabled. Once uses absolute timestamps; weekly uses weekdays and local times in timeZone.
    alertClusterSilence:
      type: object
      required:
        - enabled
      description: Pause notifications while continuing to record alerts. Set enabled to false to cancel. Time windows include their start and exclude their end.
      properties:
        enabled:
          type: boolean
        rules:
          type: array
          maxItems: 1000
          description: Alert names to silence. Empty or omitted means all alerts for the resource.
          items:
            type: string
            minLength: 1
            maxLength: 255
        mode:
          $ref: '#/components/schemas/alertClusterSilenceMode'
        startsAt:
          type: string
          format: date-time
          description: Required for once. Absolute start of the silence window.
        endsAt:
          type: string
          format: date-time
          description: Required for once. Must be later than startsAt.
        weekdays:
          type: array
          maxItems: 7
          description: Required for weekly. Sunday is 0. Overnight windows belong to the weekday on which they start.
          items:
            type: integer
            minimum: 0
            maximum: 6
        startTime:
          type: string
          description: Required for weekly, in HH:mm format.
        endTime:
          type: string
          description: Required for weekly, in HH:mm format. Earlier than startTime means the following day; equal times are invalid.
        timeZone:
          type: string
          maxLength: 100
          description: Required for weekly. IANA timezone, e.g. Asia/Shanghai or UTC.
    alertCluster:
      type: object
      description: Resource-scoped alert settings, shared by cluster and node endpoints. PATCH updates only supplied fields. Cluster settings apply to both tenant and administrator notifications.
      properties:
        disabled:
          type: boolean
          x-nullable: true
          description: Disable all alerts for the resource. Existing rule and silence settings are preserved.
        disabledRules:
          type: array
          maxItems: 1000
          x-omitempty: false
          description: Alert names disabled only for this resource. An empty array clears all rule overrides; omission preserves them.
          items:
            type: string
            minLength: 1
            maxLength: 255
        silence:
          $ref: '#/components/schemas/alertClusterSilence'
        silenceActive:
          type: boolean
          readOnly: true
          description: Whether the configured silence window is active now, regardless of the alert master switch.
    alertResourceType:
      type: string
      enum:
        - cluster
        - channel
    alertConfig:
      required:
        - timeZoneOffset
      type: object
      properties:
        timeZoneOffset:
          type: integer
          description: Time zone offset in seconds, e.g. offset of UTC+08:00 is +8 * 60 * 60
    alertInhibit:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        description:
          type: string
        orgName:
          type: string
        envs:
          type: array
          items:
            type: string
        sourceMatch:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        targetMatch:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        equal:
          type: array
          items:
            type: string
      description: Alert object information
    alertInhibitList:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          description: Items is the list of alert inhibits in the list
          items:
            $ref: '#/components/schemas/alertInhibit'
        pageResult:
          $ref: '#/components/schemas/pageResult'
      description: AlertInhibitList is a list of alert inhibit
    engineTypeItem:
      type: object
      properties:
        name:
          type: string
          description: engine type name
        displayName:
          $ref: '#/components/schemas/localizedDescription'
        description:
          $ref: '#/components/schemas/localizedDescription'
        displayOrder:
          type: integer
          description: engine type display order
      required:
        - name
        - displayName
        - description
        - displayOrder
    engineTypeList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/engineTypeItem'
      required:
        - items
    engineStatus:
      type: string
      description: engine addon status in K8s
      enum:
        - Disabled
        - Enabled
        - Failed
        - Enabling
        - Disabling
    engine:
      type: object
      properties:
        id:
          title: ID
          type: string
          description: engine ID
        description:
          title: description
          type: string
          description: the engine description
        name:
          title: Name
          type: string
          description: engine Name
        version:
          title: Version
          type: string
          description: engine version
        kbVersionConstraint:
          title: kbVersionConstraint
          type: string
          description: KubeBlocks version constrain
        type:
          title: Type
          type: string
        installed:
          type: boolean
          description: whether the engine is installed
        provider:
          title: provider
          type: string
          description: engine addon provider
        status:
          $ref: '#/components/schemas/engineStatus'
        availableVersion:
          title: availableVersion
          type: array
          description: engine available versions
          items:
            type: string
        upgradeHistory:
          title: upgradeHistory
          type: string
          description: engine upgrade history
        errMsg:
          title: errMsg
          description: engine error messages when the engine status is failed
          type: string
        clusterVersions:
          title: clusterVersions
          type: array
          description: clusterversion in the engines
          items:
            type: string
        maturityLevel:
          title: maturityLevel
          type: string
          description: engine maturity level
        extra:
          type: object
          additionalProperties: true
          nullable: true
          description: engine-specific runtime metadata for clients
    engineList:
      items:
        $ref: '#/components/schemas/engine'
      type: array
    integerOption:
      type: object
      required:
        - min
        - max
        - default
        - step
      properties:
        min:
          type: integer
        max:
          type: integer
        default:
          type: integer
        step:
          type: integer
        excludes:
          type: array
          items:
            type: integer
    storageOption:
      type: object
      required:
        - name
        - title
      properties:
        title:
          $ref: '#/components/schemas/localizedDescription'
        name:
          type: string
        min:
          type: integer
        max:
          type: integer
        default:
          type: integer
        step:
          type: integer
    resourceConstraint:
      type: object
      required:
        - id
        - engine
        - mode
        - component
      properties:
        id:
          type: string
          description: resource constraint id
        engine:
          type: string
          description: engine name
        mode:
          type: string
          description: engine mode
        component:
          type: string
          description: engine component
        replicas:
          $ref: '#/components/schemas/integerOption'
        shards:
          $ref: '#/components/schemas/integerOption'
        volumes:
          type: array
          items:
            $ref: '#/components/schemas/storageOption'
    resourceConstraintList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/resourceConstraint'
    engineOptionVersion:
      type: string
      default: current
      enum:
        - current
        - original
    engineOptionStatus:
      type: string
      default: Release
      enum:
        - Release
        - Uncommitted
    componentOption:
      type: object
      required:
        - name
        - title
        - order
        - version
      properties:
        cloudShellType:
          type: string
          description: cloud shell type
        name:
          type: string
          description: component type
        matchRegex:
          type: string
          description: |
            Determine whether the componentDef of kb-cluster belongs to this component type through this matching regularization.
            if not set, componentDef must be equal to component type.
        title:
          $ref: '#/components/schemas/localizedDescription'
        order:
          type: integer
        roleOrder:
          type: array
          items:
            type: string
        disasterRecoveryRoleOrder:
          type: array
          items:
            type: string
        version:
          type: object
          required:
            - majorVersion
            - componentVersionName
          properties:
            componentVersionName:
              type: string
              description: component version name
            minorVersion:
              type: object
              properties:
                default:
                  type: string
                  description: default version.
                rollback:
                  type: boolean
                  description: determine whether minor version can be rolled back.
                disableRollbackPreRelease:
                  type: boolean
                  description: disable roll back the preRelease minor version.
            majorVersion:
              type: object
              required:
                - rule
              properties:
                default:
                  type: string
                  description: default major version.
                rule:
                  type: string
                  description: |
                    ServiceVersion uses semver syntax(X Y.Z), such MySQL 5.7.4 and PG 14.8.0.
                    Currently supports [X, X.Y, X.Y.Z] formats to determine major versions of the engine from the serviceVersion
                versionMapping:
                  type: array
                  items:
                    type: object
                    description: Configure the mapping relationship with the main component's major versions.
                    properties:
                      mainComponentMajorVersion:
                        type: string
                        description: major version of the main component
                      versions:
                        type: array
                        description: major versions of the current component
                        items:
                          type: string
            architecture:
              $ref: '#/components/schemas/componentVersionArchitecture'
            blockedUpgradeFrom:
              type: array
              description: Upgrades that must not be offered or accepted for this component, keyed by the service version the cluster currently runs. Use it when a target version is not a drop-in replacement for a source version, for example when the source image ships modules the target image no longer carries. Upgrades matching no rule stay untouched.
              items:
                type: object
                description: One upgrade restriction while the cluster runs a service version matching from, upgrading to a service version matching to is not allowed.
                required:
                  - from
                properties:
                  from:
                    type: string
                    description: Pattern of the service version the cluster currently runs. Supports exact version "7.4.7", version prefix "7.4", and comparisons ">=7.4.5", ">7.4.4", "<=7.4.7", "<7.4.8".
                  to:
                    type: string
                    description: Pattern of the service version the upgrade is blocked to, with the same syntax as from. Omit to block every upgrade target, which makes from the end of the line for the component.
        main:
          description: Main component flag
          type: boolean
          x-nullable: false
        customAnnotations:
          type: boolean
          description: Whether to show the component annotations editor during cluster creation. Omitted or false hides the editor. This is a UI visibility hint and does not restrict the cluster creation API. Applies to this component in every engine mode, including sharding templates, on KubeBlocks 0.9 and 1.0.
          x-nullable: false
        customLabels:
          type: boolean
          description: Whether to show the component labels editor during cluster creation. Omitted or false hides the editor. This is a UI visibility hint and does not restrict the cluster creation API. Applies to this component in every engine mode, including sharding templates, on KubeBlocks 0.9 and 1.0.
          x-nullable: false
        customSecret:
          type: boolean
          description: whether the component supports custom secret
          x-nullable: false
    placementScope:
      type: string
      description: Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
      enum:
        - cluster
        - component
    modeCompatibleKubeblocksVersion:
      type: string
      description: |
        specify the compatible kubeblocks version. If empty, it means all versions are supported.
      enum:
        - '0.9'
        - '1.0'
    instanceTemplateOp:
      type: string
      description: Operation that can be declared on instanceTemplate.ops.
      enum:
        - hscale
        - vscale
        - storageExpansion
        - upgrade
    instanceTemplateAttribute:
      type: string
      description: Heterogeneous attribute the frontend may render on an instance template at create.
      enum:
        - env
        - storageClass
    instanceTemplateEnv:
      type: object
      description: Allowed template env variable and its input constraints.
      required:
        - name
      properties:
        name:
          type: string
          minLength: 1
          description: Env var name written to the instance template.
        label:
          $ref: '#/components/schemas/localizedDescription'
        description:
          $ref: '#/components/schemas/localizedDescription'
        required:
          type: boolean
          description: Requires a non-blank value after applying the default.
        default:
          type: string
          description: Used only when the variable is omitted.
    modeReadonlyEndpoint:
      type: object
      required:
        - role
      properties:
        role:
          type: string
          description: the component role selected by a readonly endpoint
    modeComponent:
      type: object
      required:
        - component
        - hideEnpoints
        - hideOnCreate
      properties:
        component:
          type: string
        hideEnpoints:
          type: boolean
        hideOnCreate:
          type: boolean
        instanceTemplate:
          type: object
          description: |
            Template fields and operations shared by the frontend and backend.
            Requested components require creation template targets when instanceTemplate is declared.
            Declaring hscale or storageExpansion in ops requires explicit targets
            for every name. The hscale requirement applies to replica scaling only.
          required:
            - names
            - ops
          properties:
            names:
              type: array
              minItems: 1
              uniqueItems: true
              items:
                type: string
              description: |
                Instance template names the frontend should render.
                Create checks names against the chart. Replica hscale and volume expansion
                targets must include every name in this list.
            ops:
              type: array
              minItems: 1
              items:
                $ref: '#/components/schemas/instanceTemplateOp'
              description: |
                Template operations: hscale, storageExpansion, and reserved vscale.
                Template hscale replicas must sum to the component target.
                Volume expansion targets must match component volume names and capacities.
            attributes:
              type: array
              uniqueItems: true
              items:
                $ref: '#/components/schemas/instanceTemplateAttribute'
              description: Template UI attributes. Env overrides require env to be enabled.
            env:
              type: array
              description: Allowed env variables, with defaults and required checks applied before persistence.
              items:
                $ref: '#/components/schemas/instanceTemplateEnv'
        serviceRef:
          type: string
          description: |
            the name of the serviceRef defined in mode's serviceRefs.
            If set, it means a serviceRef can be used to replace this component.
        readonlyEndpoint:
          $ref: '#/components/schemas/modeReadonlyEndpoint'
    serviceDescriptorAddressStyle:
      type: string
      description: |
        specify the style that will be used in servicedescriptor.
        "hostport" will ask user to provide both host and port.
        "endpoint" will ask user to provide an endpoint.
        When using a serviceSelector, this option will not be effective.
      enum:
        - hostport
        - endpoint
    serviceSelector:
      type: object
      required:
        - mode
        - component
        - service
        - port
      description: |
        This definition of component/service/port is in line with kubeblocks api
        appsv1.ServiceRefServiceSelector. Read kubeblocks documentation for more information.
      properties:
        mode:
          type: string
          description: referenced cluster's mode
        component:
          type: string
        service:
          type: string
        port:
          type: string
        credentialComponent:
          type: string
        credentialName:
          type: string
    modeServiceRefVersionCompatibility:
      type: object
      description: |
        Defines allowed source/ref service version combinations for a mode serviceRef.
        Version patterns match semantic version segments, so "3", "3.0", and
        "3.0.10" can match a whole major, minor, or patch family respectively.
      properties:
        version:
          type: array
          description: |
            Source cluster version patterns. Empty means all source versions.
          items:
            type: string
        refVersion:
          type: array
          description: |
            Referenced cluster version patterns. Empty means all referenced versions.
          items:
            type: string
        message:
          $ref: '#/components/schemas/localizedDescription'
    modeServiceRef:
      type: object
      description: |
        Defines a ServiceRef for a cluster, enabling access to both external services and
        Services provided by other Clusters. The defined serviceRef must be provided when creating cluster.
      required:
        - helmValuePath
        - name
        - engineName
        - addressStyle
      properties:
        name:
          type: string
          description: |
            The name will be referenced in clusterCreate request. The name should also be defined in `.components`
            so that frontend can use it to get proper localized title.
        title:
          type: object
          additionalProperties:
            type: string
          description: The localized title of the serviceRef.
        optional:
          type: boolean
          description: whether this serviceRef is optional. If set to true, the cluster can be created without providing this serviceRef.
        engineName:
          type: string
          description: The default engine to be used in serviceRef. This field is used as the fallback engine filter and default create entry.
        modes:
          type: array
          items:
            type: string
          description: The mode to be used in serviceRef. This field is used to filter clusters. If not set, it means all modes are supported.
        addressStyle:
          $ref: '#/components/schemas/serviceDescriptorAddressStyle'
        disableManualInput:
          type: boolean
          description: whether to disable manual input of the service reference. If set to true, users can only select from the serviceRefs provided by list clusters api.
        disableAutoCreateServiceDescriptor:
          type: boolean
          x-nullable: true
          description: |
            whether to disable auto creating the ServiceDescriptor object for this serviceRef.
            If set to false, the serviceDescriptor content (host/port/username/password) will be
            set directly into the helm values under the helmValuePath.serviceDescriptor path.
            If omitted, the generated ServiceDescriptor name will be set instead.
        disableRelatedCluster:
          type: boolean
          description: |
            whether to disable selecting a related cluster created in the platform for this
            serviceRef. If set to true, the frontend should only allow manual input instead
            of selecting from the clusters provided by the list clusters api.
        extraForManualInput:
          type: object
          description: |
            Extra form field definitions for manual input of the serviceRef. The keys are the
            field names and the frontend renders them as input items. The user-entered values
            are passed in ClusterCreate serviceRefs[].extraForManualInput and mapped to helm
            values via helmValuePath.extraForManualInput.
          additionalProperties: true
        helmValuePath:
          type: object
          description: The path to be used in values. Separated with commas. ClusterCreate API will use these path to override values in the cluster chart.
          required:
            - namespace
            - cluster
          properties:
            namespace:
              type: string
              description: the namespace of the referenced Cluster or the namespace of the referenced ServiceDescriptor object.
            cluster:
              type: string
              description: the name of the referenced Cluster
            component:
              type: string
              description: see serviceSelectors
            service:
              type: string
              description: see serviceSelectors
            port:
              type: string
              description: see serviceSelectors
            credentialComponent:
              type: string
              description: see serviceSelectors
            credentialName:
              type: string
              description: see serviceSelectors
            serviceDescriptor:
              type: string
              description: the name of the referenced serviceDescriptor
            mode:
              type: string
              description: |
                hints for addon to determine if we are using an integrated component or a serviceRef. Will be set to `serviceRef` or `component`.
                This field is required when a serviceRef can be replaced by a component.
            extraForManualInput:
              type: string
              description: |
                the helm value path prefix for the extraForManualInput fields of this serviceRef.
                ClusterCreate API will map each key of serviceRefs[].extraForManualInput to
                `<extraForManualInput>.<key>` in the cluster chart values.
        serviceSelectors:
          type: array
          description: |
            ServiceSelectors will map cluster's mode to a serviceSelector. The serviceSelector
            will be used to provide the corresponding helm values.
            If no serviceSelector is matched, the corresponding helm value will not be set.
          items:
            $ref: '#/components/schemas/serviceSelector'
        serviceVersionCompatibility:
          type: array
          description: |
            Service version compatibility rules for this serviceRef. The create API uses
            these rules to reject incompatible referenced clusters, and the frontend can
            use them to filter or explain selectable referenced clusters.
          items:
            $ref: '#/components/schemas/modeServiceRefVersionCompatibility'
        updatable:
          type: boolean
          description: whether the serviceRef can be updated. If set to false, the frontend should not allow users to update the serviceRef.
    modeObjectStorageAdditionalHelmValuePath:
      type: object
      description: The path in helm values that some object storage config will use. If empty, the values will not be set.
      required:
        - bucket
      properties:
        bucket:
          type: string
          description: the bucket name for the object storage
        path:
          type: string
          description: |
            root path where cluster stores data in the bucket. This field is not user-provided.
            It is always set to cluster id. If not set, it means the engine does not support specify a path.
        usePathStyle:
          type: string
          description: |
            whether the object storage is using path style or virtual host style.
            If not set, it means the engine does not need this option.
        tlsEnabled:
          type: string
          description: |
            whether the object storage endpoint uses TLS.
            If not set, it means the engine does not need this option.
        tlsCACertSecret:
          type: string
          description: |
            Secret name that stores the CA certificate for TLS object storage.
            If not set, it means the engine does not need this option.
        tlsCACertSecretKey:
          type: string
          description: |
            Secret key that stores the CA certificate for TLS object storage.
            If not set, it means the engine does not need this option.
        region:
          type: string
          description: |
            Region to use. If not set, it means the engine does not need this option.
    modeObjectStorageServiceRef:
      type: object
      description: |
        Defines one object storage dependency option for a mode.
      required:
        - serviceRef
        - additionalHelmValuePath
      properties:
        serviceRef:
          $ref: '#/components/schemas/modeServiceRef'
        additionalHelmValuePath:
          $ref: '#/components/schemas/modeObjectStorageAdditionalHelmValuePath'
    modeObjectStorage:
      type: object
      description: |
        object storage related configs
      properties:
        enabled:
          type: boolean
          description: if object storage is enabled for this mode
        serviceRefs:
          type: array
          items:
            $ref: '#/components/schemas/modeObjectStorageServiceRef'
          description: |
            Object storage serviceRef configs supported by this mode. Use this when different object
            storage engines may require different serviceRef or Helm value mappings. When it is set,
            the cluster create request selects one item by objectStorageConfig.serviceRef.name.
    envRerender:
      type: object
      description: Rule telling whether the env of an existing component is re-rendered when the mode transitions.
      properties:
        allEnv:
          type: boolean
          description: Re-render the whole env of the component.
        includeEnvs:
          type: array
          description: Re-render only these env vars, when allEnv is not set.
          items:
            type: string
    engineModeTransition:
      type: object
      required:
        - mode
      properties:
        envRerender:
          $ref: '#/components/schemas/envRerender'
        mode:
          type: string
          description: Target mode name.
        waitComponentsRunningAfterModeChange:
          type: array
          description: |
            Components that must be running once the mode change is done, in addition to the ones the
            transition creates. Declare a component here when the transition re-renders it instead of
            creating it, so it must settle before the transition is considered finished.
          items:
            type: string
    modeOption:
      type: object
      required:
        - name
        - title
        - description
        - components
      properties:
        placementScope:
          $ref: '#/components/schemas/placementScope'
        name:
          type: string
        title:
          $ref: '#/components/schemas/localizedDescription'
        description:
          $ref: '#/components/schemas/localizedDescription'
        schedulingPolicy:
          type: object
          properties:
            componentAntiAffinity:
              type: array
              minItems: 1
              description: |
                when component names are specified in componentAntiAffinity, those components will be scheduled with anti-affinity rules
                applied to ensure they are spread across different nodes, especially when resource dispersion is enabled.
              items:
                type: string
        compatibleKubeblocksVersion:
          $ref: '#/components/schemas/modeCompatibleKubeblocksVersion'
        components:
          type: array
          items:
            $ref: '#/components/schemas/modeComponent'
        proxy:
          required:
            - enabled
          type: object
          properties:
            enabled:
              type: boolean
        versions:
          type: array
          items:
            type: string
        extra:
          type: object
          additionalProperties: true
        serviceRefs:
          type: array
          items:
            $ref: '#/components/schemas/modeServiceRef'
        objectStorage:
          $ref: '#/components/schemas/modeObjectStorage'
        valuesMappings:
          type: object
          properties:
            compatibleKBVersions:
              type: array
              description: if omitted, all KB versions are compatible
              items:
                type: string
            mappings:
              type: array
              items:
                type: object
                required:
                  - sourceKey
                  - targetKey
                properties:
                  component:
                    type: string
                  sourceKey:
                    type: string
                  sourceValue:
                    description: Can be any type (string, number, boolean, object, etc.)
                  targetKey:
                    type: string
                  targetValue:
                    description: Can be any type (string, number, boolean, object, etc.)
        hideOnCreate:
          type: boolean
          description: whether the mode is hidden for creation
          nullable: true
        transition:
          type: array
          description: Valid mode transitions from this mode.
          items:
            $ref: '#/components/schemas/engineModeTransition'
    accountOption:
      type: object
      required:
        - enabled
        - accountNamePattern
        - create
        - resetPassword
        - delete
      properties:
        maxSuperUserAccount:
          type: integer
          format: int32
          minimum: 0
          default: 2
          description: |
            number of super user accounts cloud create.
            If not set, use default value.
            If set to 0, it means not allowed to create super user account.
          nullable: true
        enabled:
          type: boolean
        privileges:
          type: array
          items:
            type: string
        maxLen:
          type: integer
          format: int32
          default: 64
          description: |
            max length of account name.
            If not set, use default value.
        minLen:
          type: integer
          format: int32
          default: 3
          description: |
            min length of account name.
            If not set, use default value.
        accountNamePattern:
          type: string
        create:
          type: boolean
        resetPassword:
          type: boolean
        delete:
          type: boolean
        supportLock:
          type: boolean
          description: Whether the engine supports account lock and unlock actions.
        supportServiceAccount:
          type: boolean
          description: Whether the engine supports service account access-key management.
        protectedAccounts:
          type: array
          description: Account names that cannot be deleted, locked, unlocked, or have their privileges modified. This does not hide accounts or restrict password changes.
          items:
            type: string
        hiddenAccounts:
          type: array
          description: Account names hidden from the generic account list. Matching is case-sensitive, without whitespace normalization or patterns. Other accounts remain visible subject to existing displayRootAccount rules.
          items:
            type: string
        displayRootAccount:
          type: boolean
          x-omitempty: false
        resetRootPassword:
          type: boolean
          x-omitempty: false
        supportMultipleComponent:
          type: boolean
          default: false
        excludeRootAccounts:
          type: array
          items:
            type: string
    databaseOption:
      type: object
      required:
        - enabled
      properties:
        enabled:
          type: boolean
          x-omitempty: false
        update:
          type: boolean
          x-omitempty: false
        maxLen:
          type: integer
          format: int32
          default: 64
          description: |
            max length of database name.
            If not set, use default value.
        minLen:
          type: integer
          format: int32
          default: 3
          description: |
            min length of database name.
            If not set, use default value.
        databaseNamePattern:
          type: string
        patternDescription:
          type: object
          x-nullable: true
          properties:
            zh-CN:
              type: string
              x-nullable: true
            en-US:
              type: string
              x-nullable: true
        listOption:
          type: array
          description: |
            The database option information that will be displayed when listing databases
          items:
            type: string
        protectedDatabases:
          type: array
          description: |
            Database names that should be visible in database lists but protected from destructive operations.
          items:
            type: string
        availableOptions:
          type: array
          description: |
            The database option cloud be set when creating databases
          items:
            type: string
        availbaleUpdateOptions:
          type: array
          description: |
            The database option name and type cloud be updated when updating databases
          items:
            type: object
            properties:
              name:
                type: string
              type:
                type: string
              description:
                $ref: '#/components/schemas/localizedDescription'
    dmsOption:
      type: object
      required:
        - enabled
      properties:
        enabled:
          type: boolean
        protocol:
          type: string
        feature:
          type: object
          description: 'Engine capabilities and audit policy. auditSensitiveColumns is an array of case-insensitive sensitive column names; auditHighRiskStatements is an array of engine-specific rules: SQL keyword prefixes, Redis command/subcommand prefixes (FLUSHALL, CONFIG SET), or MongoDB command names (dropDatabase, delete, dropIndexes, $out). MongoDB shell helpers map to native command names; dynamic scripts may remain unclassified. Built-in credential redaction always applies.'
          additionalProperties: {}
        defaultAccount:
          type: string
          x-nullable: true
    parameters:
      type: object
      additionalProperties:
        type: object
        description: backup parameters for different backup methods
        additionalProperties:
          type: object
          properties:
            options:
              type: array
              items:
                type: object
                additionalProperties: true
            title:
              type: object
              additionalProperties:
                type: string
            description:
              type: object
              additionalProperties:
                type: string
            value:
              type: string
            type:
              type: string
              enum:
                - enum
                - number
                - date
            dateFormat:
              type: string
              description: The date format used when type is date, e.g. YYYY-MM-DD hh:mm:ss.
            min:
              type: number
            max:
              type: number
    backupMethodOption:
      type: object
      required:
        - name
      properties:
        name:
          type: string
        compatibleMethod:
          description: The compatible full backup method for incremental backup method
          type: string
        realBackupPath:
          type: string
          description: The actual path where the backup data is stored. If not set, use the backup.status.path.
        restoreOption:
          type: object
          properties:
            restoreOnComponents:
              type: array
              description: |
                If this backup needs to be restored on multiple components, the names of those components must be specified.
                If the restore is only required on the backed-up component itself, then no configuration is needed.
              items:
                type: string
            deferPostReadyUntilClusterRunning:
              type: boolean
              description: |
                If set to true, the restore will be ready after the cluster is running.
                If set to false, the restore will be ready after the cluster is created.
        notSupportedModes:
          type: array
          description: The cluster modes that this backup method does not support
          items:
            type: string
        description:
          $ref: '#/components/schemas/localizedDescription'
    selectedObjectConversionStrategy:
      type: string
      enum:
        - levelMapping
        - wholeObject
      default: levelMapping
      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.
    selectedObjectOption:
      type: object
      properties:
        conversionStrategy:
          $ref: '#/components/schemas/selectedObjectConversionStrategy'
        tree:
          type: object
          required:
            - levelOrder
            - sql
          properties:
            switchWithDatabase:
              type: boolean
              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.
            sql:
              type: string
              description: The engine-native query returning the columns used to build the object tree.
            levelOrder:
              type: array
              description: The order of object types in the hierarchy
              items:
                type: object
                properties:
                  type:
                    type: string
                    description: The object type, e.g., "database", "schema", "table"
                  columnName:
                    type: string
                    description: The column name of the object type which is defined in the sql, e.g., "database_name", "schema_name", "table_name"
                  typeFromColumn:
                    type: string
                    description: The object type which is defined in the sql, mutually exclusive with `type`
        convertToParameters:
          type: array
          description: Parameters for specifying which objects to include in the selective backup
          items:
            type: object
            required:
              - parameterName
              - valueTemplate
            properties:
              parameterName:
                type: string
                description: The name of the parameter for selective backup, e.g., "tables"
              valueTemplate:
                type: string
                description: The format of the value with the tree level index, e.g., "{0}", "{0}.{1}"
              skipWhenParentLevelsSelectedAll:
                type: boolean
                description: Whether to skip the current level when all of the parent level is selected all
              levelIndex:
                type: integer
                description: The index of the current level in the tree level order
    selectiveMethodOption:
      type: object
      required:
        - name
      properties:
        name:
          type: string
        description:
          $ref: '#/components/schemas/localizedDescription'
        restoreTargetRole:
          type: string
        selectedObjectOption:
          $ref: '#/components/schemas/selectedObjectOption'
    backupOption:
      description: If present, it must be set defaultMethod and fullMethod
      type: object
      required:
        - defaultMethod
        - fullMethod
      properties:
        modes:
          type: array
          x-omitempty: false
          description: |
            Engine modes that support backup and restore. Omitted or null means all modes
            (legacy behavior); an empty array disables backup and restore for all modes.
          items:
            type: string
        defaultMethod:
          type: string
        defaultComponent:
          type: string
          description: |
            If set, the default backup method will be applied to the specified component.
            If not set, the default backup method will be applied to all components.
        defaultBPTSelector:
          type: object
          additionalProperties:
            type: string
          description: selector for the default backup policy template. this is necessary when referencing other addon components
        restoreOption:
          type: object
          properties:
            crossModeRecovery:
              type: array
              description: cross mode recovery options
              items:
                type: string
        offlineBackupOption:
          type: object
          properties:
            useParentDirAsBackupPath:
              type: boolean
              description: whether to use the parent directory of the backup path as the actual backup path
            supported:
              type: boolean
              description: whether offline backup is supported
            rootUser:
              type: string
              description: the root user for offline backup
            supportEmptyPassword:
              type: boolean
              description: whether to support empty password for the root user in offline backup
            backupMethod:
              type: string
              description: the backup method for offline backup
            componentName:
              type: string
              description: the component name for offline backup
            status:
              type: object
              additionalProperties: true
            modes:
              type: array
              items:
                type: string
              description: the modes that offline backup supports. if not set, it means all modes are supported.
        backupParameters:
          $ref: '#/components/schemas/parameters'
        restoreParameters:
          $ref: '#/components/schemas/parameters'
        fullMethod:
          type: array
          items:
            $ref: '#/components/schemas/backupMethodOption'
        incrementalMethod:
          type: array
          items:
            $ref: '#/components/schemas/backupMethodOption'
        continuousMethod:
          type: array
          items:
            $ref: '#/components/schemas/backupMethodOption'
        selectiveMethod:
          type: array
          description: Selective backup methods that support backing up specific objects
          items:
            $ref: '#/components/schemas/selectiveMethodOption'
    benchOption:
      type: object
      required:
        - pgbench
        - sysbench
        - tpcc
        - ycsb
      properties:
        pgbench:
          type: boolean
        sysbench:
          type: boolean
        tpcc:
          type: boolean
        ycsb:
          type: boolean
        esrally:
          type: boolean
          default: false
    engineOptionsServicePattern:
      type: string
      description: service name pattern, e.g. ClusterName-ComponentName or .ClusterName`
      default: cluster-component
      enum:
        - cluster-component
        - cluster
        - cluster-component-service
    endpointOption:
      type: object
      required:
        - title
        - component
        - portName
        - type
        - port
        - protocol
        - targetPort
      properties:
        title:
          $ref: '#/components/schemas/localizedDescription'
        component:
          type: string
        portName:
          type: string
        port:
          type: integer
          format: int32
        protocol:
          type: string
        targetPort:
          type: string
        type:
          type: array
          items:
            type: string
        supportsSystemUse:
          type: boolean
          description: whether the endpoint supports system use, such as health check, dms, databases & accounts management etc.
        servicePattern:
          $ref: '#/components/schemas/engineOptionsServicePattern'
        serviceNameRegex:
          type: string
          description: ServiceName regular expression
        serviceName:
          type: string
          description: service suffix, defined in ComponentDefinition
        selector:
          type: object
          additionalProperties:
            type: string
          description: selector of k8s service
        disasterRecoverySelector:
          type: object
          additionalProperties:
            type: string
          description: selector of k8s service
        followNetworkMode:
          type: boolean
          default: false
          description: whether the endpoint follows the network mode of the component
        compatibleKBVersion:
          type: string
          description: compatible KubeBlocks Major versions
          nullable: true
    networkModeOption:
      type: array
      items:
        type: object
        required:
          - supported
        properties:
          supported:
            type: array
            items:
              $ref: '#/components/schemas/networkMode'
          notSupportedVersions:
            type: object
            description: not supported versions, key is the networkMode, value is an array of versions which support major version or mirror version.
            additionalProperties:
              type: array
              items:
                type: string
          modes:
            type: array
            items:
              type: string
            nullable: true
    componentOpsOption:
      type: object
      required:
        - component
      properties:
        modes:
          type: array
          items:
            type: string
          description: List of modes that this component supports. if not set, support all modes.
        component:
          type: string
        disableHA:
          type: boolean
          default: false
        inPlace:
          type: boolean
          description: parameter for rebuild instance ops
          default: false
        needBackupWhenInPlace:
          type: boolean
          description: indicate whether backup is required when Inplace is true
          default: false
        backupRequired:
          type: boolean
          description: indicate whether backup is required for this ops
          default: false
        backupMethod:
          type: object
          description: indicate the backup method when inplace is true
          properties:
            full:
              type: array
              items:
                type: string
              description: full backup methods
            incremental:
              type: array
              description: incremental backup methods
              items:
                type: string
        restoreEnv:
          type: array
          nullable: true
          items:
            type: object
            required:
              - name
              - value
            properties:
              name:
                type: string
                description: env name
              value:
                type: string
                description: env value
        disableOfflineInstance:
          type: boolean
          description: indicate whether the component supports online instance to offlines
          nullable: true
        disableOfflineInstanceRoles:
          type: array
          description: list of instance roles that are not allowed to be taken offline
          items:
            type: string
        rollbackSupported:
          type: boolean
          description: indicate whether rollback is supported for this ops
          default: false
        dependentCustomOps:
          type: object
          properties:
            opsDefName:
              type: string
              description: opsDefinition name
            component:
              type: string
              description: component type name
            when:
              type: string
              description: |
                go template conditional judgment expression, such as $.root.inPlace == true
                available built-in objects that can be referenced in the expression include:
                - cluster: cluster record
                - ops: opsrequest object
                - component: current component
                - root: current object
                In rebuildinstance ops, only `ops` object is available.
            params:
              description: custom ops parameters
              items:
                properties:
                  name:
                    type: string
                    description: parameter name.
                  value:
                    type: string
                    description: |
                      parameter value, you can define a go template expression to refer the variable of the current ops.
                      available built-in objects that can be referenced in the expression include:
                      - cluster: cluster record
                      - ops: opsrequest object
                      - component: current component
                      - root: current object
                      In rebuildinstance ops, only `ops` object is available.
                type: object
              type: array
    engineOptionLicenseFile:
      type: object
      additionalProperties: false
      required:
        - name
      properties:
        name:
          type: string
          description: Target license file name written into the engine license Secret.
        title:
          $ref: '#/components/schemas/localizedDescription'
        description:
          $ref: '#/components/schemas/localizedDescription'
    licenseOption:
      type: object
      required:
        - component
        - opsDefName
      properties:
        component:
          type: string
        opsDefName:
          type: string
        fileDigestParameter:
          type: string
          description: Optional custom Ops parameter receiving a JSON object of candidate file SHA256 digests.
        restartAfterUpdate:
          type: boolean
          description: Create a standard restart dependent on successful license installation.
    engineOptionsMetricsQueryType:
      type: string
      description: |
        Specifies the type of metrics query to be performed.
        'instant' for a single point in time, 'range' for a time range.
      enum:
        - instant
        - range
    metricsOptionQuery:
      type: object
      properties:
        queryPattern:
          type: string
          x-nullable: false
        queryType:
          $ref: '#/components/schemas/engineOptionsMetricsQueryType'
    metricsOption:
      type: object
      properties:
        replicationLag:
          $ref: '#/components/schemas/metricsOptionQuery'
    dashboardOption:
      type: object
      required:
        - component
        - dashboardUid
        - variables
      properties:
        component:
          type: string
        dashboardUid:
          type: string
        variables:
          type: object
          additionalProperties:
            type: string
        instancePanels:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              panels:
                type: array
                items:
                  type: object
                  properties:
                    description:
                      type: string
                    id:
                      type: string
    sqlAuditSQLQueryOption:
      type: object
      required:
        - sql
      properties:
        sql:
          type: string
          description: SQL query to check audit log status
        enabledValues:
          type: array
          items:
            type: string
          description: List of query result values that indicate SQL audit is enabled (case-insensitive comparison). If not provided, defaults to ["1", "true", "on", "enabled", "yes"].
        disabledValues:
          type: array
          items:
            type: string
          description: List of query result values that indicate SQL audit is disabled (case-insensitive comparison). If not provided, defaults to ["0", "false", "off", "disabled", "no"].
    sqlAuditSQLOption:
      type: object
      required:
        - query
        - enable
        - disable
      properties:
        query:
          $ref: '#/components/schemas/sqlAuditSQLQueryOption'
          description: Configuration for querying audit log status
        enable:
          type: array
          items:
            type: string
          description: SQL statements to enable audit log. Multiple statements will be joined and executed.
        disable:
          type: array
          items:
            type: string
          description: SQL statements to disable audit log. Multiple statements will be joined and executed.
        user:
          type: string
          description: Specific user account name to execute SQL statements. If not provided, uses the default datasource account.
    sqlAuditParameterOption:
      type: object
      description: Parameter configuration for querying and controlling (required when type is parameter). When type is parameter, both query and control (reconfigure) are inferred from this configuration.
      required:
        - configSpec
        - configFileName
        - key
      properties:
        configSpec:
          type: string
          description: Configuration spec name
        configFileName:
          type: string
          description: Configuration file name
        key:
          type: string
          description: Parameter key to query
        enabledValues:
          type: array
          items:
            type: string
          description: List of parameter values that indicate SQL audit is enabled (case-insensitive comparison)
        disabledValues:
          type: array
          items:
            type: string
          description: List of parameter values that indicate SQL audit is disabled (case-insensitive comparison)
        processOrder:
          type: boolean
          description: If true, process parameter value from left to right, supporting subtraction (e.g., pgaudit.log with -read). Each part modifies the current state. Final state determines if audit is enabled. Default is false.
          default: false
        allValue:
          type: string
          description: Special value that enables all classes when processOrder is true (e.g., "all" for pgaudit.log). If this value is encountered, it enables all audit classes. Optional, only used when processOrder is true.
    sqlAuditSwitchOption:
      type: object
      description: SQL audit switch configuration. Either sql or parameter must be provided.
      properties:
        sql:
          $ref: '#/components/schemas/sqlAuditSQLOption'
          description: SQL-based configuration for querying and controlling audit log
        parameter:
          $ref: '#/components/schemas/sqlAuditParameterOption'
          description: Parameter-based configuration for querying and controlling audit log
    logOption:
      type: object
      required:
        - component
        - error
        - slow
        - audit
        - running
      properties:
        component:
          type: string
        error:
          type: boolean
        slow:
          type: boolean
        slowTemplate:
          type: boolean
          description: Whether slow log template is supported.
          x-omitempty: false
        slowExplain:
          type: boolean
          description: Whether slow log SQL EXPLAIN is supported.
          x-omitempty: false
        audit:
          type: boolean
        running:
          type: boolean
        sqlAuditSwitch:
          $ref: '#/components/schemas/sqlAuditSwitchOption'
          description: SQL audit log switch configuration. Only applicable when audit is true. If method type is parameter, control is automatically inferred as reconfigure.
    parameterOptionRef:
      type: object
      description: |
        Reference another engine's parameter option to reuse its parameter configuration.
        If parameterOptionRef is set, the referenced engine's parameter option (identified by
        engineName + component) is used as the only source of parameter configuration. Fields explicitly set in
        the local parameterOption will be ignored.
      required:
        - engineName
        - component
      properties:
        engineName:
          type: string
          description: The engine name to reference parameter configuration from.
        component:
          type: string
          description: The component type in the referenced engine whose parameter option to inherit.
    configSpecOption:
      type: object
      required:
        - configSpecName
        - format
        - configFileName
      properties:
        configSpecName:
          type: string
          description: name of config spec
        format:
          type: string
          description: format of the configuration file, such as ini, yaml, conf
        configFileName:
          type: string
          description: name of the configuration file, such as my.cnf, postgresql.conf
        section:
          type: string
          description: section of the configuration file, such as mysqld
    ref:
      required:
        - configSpecName
        - templateRef
      type: object
      properties:
        configSpecName:
          type: string
          description: name of config spec, included in configSpecs
        templateRef:
          type: string
          description: name of the referenced configuration template file name, all files in parameter template fold under stores
    parameterTemplate:
      type: object
      required:
        - name
        - description
        - refs
        - defaultUse
      properties:
        name:
          type: string
          description: name of default parameter template
        description:
          $ref: '#/components/schemas/localizedDescription'
        majorVersion:
          type: string
          description: match the major version set in the component
          deprecated: true
        majorVersions:
          type: array
          items:
            type: string
          description: match the major versions set in the component, such as 8.0, 8.1, 8.2
        refs:
          type: array
          description: refs contains the references to the configuration templates
          items:
            $ref: '#/components/schemas/ref'
        defaultUse:
          type: boolean
          description: whether the default parameter template is used by default, set in componentDefinition.configs, only one default parameter template can be set in certain family.
    initOptionType:
      type: string
      enum:
        - timezone
        - enum
        - string
    engineInitOptionItem:
      type: object
      required:
        - value
      properties:
        value:
          type: string
        label:
          $ref: '#/components/schemas/localizedDescription'
    initOptionObject:
      type: object
      required:
        - configSpecName
        - label
        - type
      properties:
        configSpecName:
          type: string
        label:
          $ref: '#/components/schemas/localizedDescription'
        type:
          $ref: '#/components/schemas/initOptionType'
        description:
          $ref: '#/components/schemas/localizedDescription'
        options:
          type: array
          items:
            $ref: '#/components/schemas/engineInitOptionItem'
        value:
          type: string
    initOption:
      type: object
      description: Parameters to be initialized when cluster is created
      additionalProperties:
        $ref: '#/components/schemas/initOptionObject'
    parameterOption:
      type: object
      required:
        - component
      properties:
        component:
          type: string
          description: component type
        referenceEngine:
          $ref: '#/components/schemas/parameterOptionRef'
        exportTpl:
          description: If set to true, the current parameters of the component can be exported and saved as a parameter template.
          type: boolean
        enableTemplate:
          description: If set to true, the parameter templates of the component can be used. Mainly used by frontend.
          type: boolean
        enableRawContent:
          type: boolean
          description: If set to true, the component can display the raw content of the parameter configuration file.
        configSpecs:
          type: array
          description: all parameter configuration specs of this component
          items:
            $ref: '#/components/schemas/configSpecOption'
        disableHA:
          type: boolean
          default: false
        templates:
          type: array
          description: parameter templates, including default parameter templates for different major versions or default parameter templates for different purposes.
          items:
            $ref: '#/components/schemas/parameterTemplate'
        initOptions:
          $ref: '#/components/schemas/initOption'
    disasterRecoverySettings:
      type: object
      properties:
        supportedSourceModes:
          type: array
          items:
            type: string
        supportedVersions:
          type: array
          items:
            type: string
        promotionTargetModes:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    engineOptionsDisasterRecoverySource:
      type: object
      properties:
        metricSource:
          $ref: '#/components/schemas/metricsOptionQuery'
    engineOptionsDisasterRecoveryStatus:
      type: object
      properties:
        delay:
          $ref: '#/components/schemas/engineOptionsDisasterRecoverySource'
        replicationPoint:
          $ref: '#/components/schemas/engineOptionsDisasterRecoverySource'
    disasterRecoveryOption:
      type: object
      required:
        - enabled
      properties:
        enabled:
          type: boolean
        instanceLimit:
          type: integer
          default: 8
        settings:
          $ref: '#/components/schemas/disasterRecoverySettings'
        mode:
          type: string
          description: referenced cluster's mode, default is the primary cluster's mode
          nullable: true
        status:
          $ref: '#/components/schemas/engineOptionsDisasterRecoveryStatus'
    cdcClusterConfig:
      type: object
      properties:
        component:
          type: string
        configName:
          type: string
        parameters:
          type: object
          additionalProperties:
            type: string
    cdcClusterAccount:
      type: object
      properties:
        component:
          type: string
        defaultAccountName:
          type: array
          items:
            type: string
    cdcNetworkType:
      type: string
      enum:
        - ClusterIP
        - NodePort
        - LoadBalancer
        - FixedPodIP
    cdcClusterEndpoint:
      type: object
      properties:
        role:
          type: string
        component:
          type: string
        portName:
          type: string
        port:
          type: integer
          format: int32
        authDatabase:
          type: string
          nullable: true
        networkType:
          $ref: '#/components/schemas/cdcNetworkType'
    cdcSqlExecutor:
      type: object
      properties:
        sql:
          type: array
          items:
            type: string
        result:
          type: array
          items:
            type: string
        authDatabase:
          type: string
          nullable: true
        nameGroupExpression:
          type: string
          description: A regular expression containing named groups, used to extract the named groups from the SQL result and match them to the names defined in result
          nullable: true
    cdcLifecycleAction:
      type: object
      properties:
        name:
          type: string
        sqlExecutor:
          $ref: '#/components/schemas/cdcSqlExecutor'
    cdcLifecycle:
      type: object
      properties:
        preStart:
          $ref: '#/components/schemas/cdcLifecycleAction'
        postStart:
          $ref: '#/components/schemas/cdcLifecycleAction'
        preStop:
          $ref: '#/components/schemas/cdcLifecycleAction'
        postStop:
          $ref: '#/components/schemas/cdcLifecycleAction'
    cdcSettings:
      type: object
      properties:
        config:
          $ref: '#/components/schemas/cdcClusterConfig'
        account:
          type: object
          description: engine mode and account setting mappings. '_default' key means default mode setting
          additionalProperties:
            $ref: '#/components/schemas/cdcClusterAccount'
        endpoint:
          type: object
          description: engine mode and account setting mappings. '_default' key means default mode setting
          additionalProperties:
            $ref: '#/components/schemas/cdcClusterEndpoint'
        lifecycle:
          $ref: '#/components/schemas/cdcLifecycle'
    cdcConfigResourceType:
      type: string
      enum:
        - ConfigMap
        - Secret
    cdcConfigFormatType:
      type: string
      enum:
        - Ini
        - Toml
        - Properties
    cdcToolTemplate:
      type: object
      properties:
        image:
          type: string
        command:
          type: array
          items:
            type: string
        args:
          type: array
          items:
            type: string
        replicas:
          type: integer
          format: int32
          nullable: true
        configFileName:
          type: string
        configFilePath:
          type: string
        configResourceType:
          $ref: '#/components/schemas/cdcConfigResourceType'
        configFormat:
          $ref: '#/components/schemas/cdcConfigFormatType'
        localRecoveryEnabled:
          description: whether to enable local recovery feature
          type: boolean
        localRecoveryStorageClass:
          type: string
          nullable: true
        localRecoveryStorageSize:
          description: size of local recovery storage, the unit is MiB
          type: integer
          nullable: true
        localRecoveryPath:
          type: string
        LogPath:
          type: string
        startupTimeoutMinutes:
          type: integer
          format: int32
          nullable: true
        properties:
          type: object
          additionalProperties:
            type: string
    cdcWorkerTemplate:
      type: object
      properties:
        usingTool:
          $ref: '#/components/schemas/cdcToolTemplate'
    cdcOption:
      type: object
      properties:
        versions:
          type: array
          items:
            type: string
        source:
          $ref: '#/components/schemas/cdcSettings'
        sink:
          $ref: '#/components/schemas/cdcSettings'
        worker:
          $ref: '#/components/schemas/cdcWorkerTemplate'
    internationalDesc:
      type: object
      properties:
        zh-CN:
          type: string
        en-US:
          type: string
    moduleDefinitionValues:
      type: object
      properties:
        moduleValue:
          type: string
        order:
          type: integer
        weight:
          type: number
          format: double
          nullable: true
    moduleDefinition:
      type: object
      properties:
        name:
          type: string
        title:
          $ref: '#/components/schemas/internationalDesc'
        values:
          type: array
          items:
            $ref: '#/components/schemas/moduleDefinitionValues'
    engineDefinitionVersionQuery:
      type: object
      properties:
        sql:
          type: string
          description: the query to get the version, if not provided, will use inherited query from engine definition
          nullable: true
        column:
          type: string
          nullable: true
        regex:
          type: string
          nullable: true
        min:
          type: number
          nullable: true
        max:
          type: number
          nullable: true
    engineDefinitionVersion:
      type: object
      properties:
        version:
          type: string
          nullable: true
        query:
          $ref: '#/components/schemas/engineDefinitionVersionQuery'
    configType:
      enum:
        - string
        - text
        - integer
        - float
        - boolean
      type: string
      description: the type of config. The difference between 'text' and 'string' is that 'text' refers to a longer string, which may need to be displayed using a textarea on the frontend rather than an input field.
    connectionCfgType:
      enum:
        - database
        - tlsEnable
        - tlsCACert
        - tlsCert
        - tlsPrivateKey
      type: string
    extraConfig:
      type: object
      properties:
        name:
          type: string
        title:
          $ref: '#/components/schemas/internationalDesc'
        type:
          $ref: '#/components/schemas/configType'
        defaultValue:
          type: string
          nullable: true
        isRequired:
          type: boolean
        connectionCfgType:
          $ref: '#/components/schemas/connectionCfgType'
        isDisplayOnlyCustomEndpoint:
          type: boolean
          nullable: true
          description: Whether to display this config only when the endpoint type is custom. If true, it will not be displayed when the endpoint type is kubeblocks.
        displayWith:
          type: string
          nullable: true
          description: The display condition of this config. If empty, it will always be displayed; otherwise, it will be displayed only when the config corresponding to displayWith (of boolean type) is true.
    engineDefinitionDetail:
      type: object
      properties:
        definitionName:
          type: string
        availableModes:
          type: array
          description: definition supported available modes, empty means all modes are supported
          items:
            type: string
        availableVersions:
          type: array
          description: definition supported available versions, empty means all versions are supported
          items:
            $ref: '#/components/schemas/engineDefinitionVersion'
        extraCfgs:
          type: array
          items:
            $ref: '#/components/schemas/extraConfig'
    engineDefinition:
      type: object
      properties:
        name:
          type: string
        engineName:
          type: string
        escapes:
          type: array
          items:
            type: string
        source:
          $ref: '#/components/schemas/engineDefinitionDetail'
        target:
          $ref: '#/components/schemas/engineDefinitionDetail'
    selectModuleMode:
      enum:
        - single
        - multiple
      type: string
    eventType:
      enum:
        - dml
        - ddl
        - dcl
      type: string
    eventObject:
      type: object
      properties:
        eventType:
          $ref: '#/components/schemas/eventType'
        eventValue:
          type: string
    replicationMetadataObject:
      type: object
      properties:
        metadataType:
          type: string
        children:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/replicationMetadataObject'
    mappingDescription:
      type: object
      properties:
        objectExpressionTips:
          $ref: '#/components/schemas/internationalDesc'
          nullable: true
          deprecated: true
        objectIncludeTips:
          $ref: '#/components/schemas/internationalDesc'
          nullable: true
        objectExcludeTips:
          $ref: '#/components/schemas/internationalDesc'
          nullable: true
    replicationCheckOption:
      type: object
      properties:
        enabled:
          type: boolean
    parameterValueType:
      enum:
        - string
        - integer
      type: string
    dataChannelParameter:
      type: object
      properties:
        displayName:
          type: string
        desc:
          $ref: '#/components/schemas/internationalDesc'
        key:
          type: string
        defaultValue:
          type: string
        valueType:
          $ref: '#/components/schemas/parameterValueType'
      required:
        - key
    dataChannelParameterOption:
      type: object
      description: module parameter template, the key is the module name, the value is the parameter template
      additionalProperties:
        type: array
        items:
          $ref: '#/components/schemas/dataChannelParameter'
    engineMapping:
      type: object
      properties:
        source:
          type: string
        target:
          type: string
        modules:
          type: array
          items:
            type: string
        moduleSelectMode:
          $ref: '#/components/schemas/selectModuleMode'
          nullable: true
        events:
          type: array
          items:
            type: array
            items:
              $ref: '#/components/schemas/eventObject'
            description: the events of the engine mapping, the first one is the default event
        replicationMetadata:
          $ref: '#/components/schemas/replicationMetadataObject'
        descriptions:
          $ref: '#/components/schemas/mappingDescription'
        preCheckers:
          type: array
          items:
            type: string
        dataCheckOption:
          $ref: '#/components/schemas/replicationCheckOption'
        parameterTemplate:
          description: the parameter template of the engine mapping, has a higher priority than the parameterTemplate in standardDefinition
          $ref: '#/components/schemas/dataChannelParameterOption'
          nullable: true
    standardResource:
      type: object
      properties:
        limit:
          type: number
          format: double
          nullable: true
        request:
          type: number
          format: double
          nullable: true
    standardDefinition:
      type: object
      properties:
        name:
          type: string
        title:
          $ref: '#/components/schemas/internationalDesc'
        description:
          $ref: '#/components/schemas/internationalDesc'
          nullable: true
        isDefault:
          type: boolean
          nullable: true
        cpu:
          $ref: '#/components/schemas/standardResource'
          description: cpu resource, the unit is vCPU
        memory:
          $ref: '#/components/schemas/standardResource'
          description: memory resource, the unit is Gi
        parameterTemplate:
          $ref: '#/components/schemas/dataChannelParameterOption'
          nullable: true
    dataReplicationOption:
      type: object
      properties:
        moduleDefinitions:
          type: array
          items:
            $ref: '#/components/schemas/moduleDefinition'
        engineDefinitions:
          type: array
          items:
            $ref: '#/components/schemas/engineDefinition'
        mappings:
          type: array
          items:
            $ref: '#/components/schemas/engineMapping'
        standards:
          type: array
          items:
            $ref: '#/components/schemas/standardDefinition'
    ImportSourceType:
      type: string
      description: Import source type
      enum:
        - mysql
    ImportSourceCategory:
      type: string
      description: Data source category
      enum:
        - engine
    ImportCapabilityType:
      type: string
      description: Import capability type
      enum:
        - structure
        - snapshot
        - cdc
    ImportBaseField:
      type: object
      properties:
        name:
          type: string
          description: Field's programmatic name (e.g., 'db_host')
        label:
          $ref: '#/components/schemas/localizedDescription'
          description: User-facing label for UI (e.g., 'Database Host')
        required:
          type: boolean
          description: Whether the field is required
          default: false
        sensitive:
          type: boolean
          description: Whether it contains sensitive information (e.g., password)
          default: false
        description:
          $ref: '#/components/schemas/localizedDescription'
          description: Detailed usage instructions for the field
        placeholder:
          type: string
          description: Placeholder text for the input
      required:
        - name
        - label
    ImportFieldType:
      type: string
      description: Import field type
      enum:
        - string
        - integer
        - number
        - boolean
        - enum
    ImportConnectionField:
      description: Connection field configuration. Use optional attributes to describe type-specific properties.
      allOf:
        - $ref: '#/components/schemas/ImportBaseField'
        - type: object
          properties:
            type:
              $ref: '#/components/schemas/ImportFieldType'
              description: Field data type.
            default:
              description: Default value applied when the field is omitted. Coerced according to `type`.
              nullable: true
              oneOf:
                - type: string
                - type: integer
                - type: number
                - type: boolean
            options:
              type: array
              description: Enumerated options when the field type is enum.
              items:
                type: string
            validation:
              type: object
              description: Additional validation constraints (e.g., `min`, `max`, `pattern`).
              additionalProperties: true
          required:
            - type
    ImportReplicationMetadata:
      type: object
      description: Replication metadata tree definition for import object selection.
      properties:
        metadataType:
          type: string
          description: Metadata node type identifier (e.g. database, table).
        children:
          type: array
          description: Child metadata nodes.
          items:
            $ref: '#/components/schemas/ImportReplicationMetadata'
      required:
        - metadataType
    ImportSupportedSource:
      type: object
      description: Supported data source definition for an import capability.
      properties:
        type:
          $ref: '#/components/schemas/ImportSourceType'
          description: Source engine type identifier (for example, "mysql").
        category:
          $ref: '#/components/schemas/ImportSourceCategory'
          description: Classification of the data source.
        name:
          type: string
          description: Display name of the supported source.
        supported:
          type: boolean
          description: Whether the source is currently supported.
        description:
          $ref: '#/components/schemas/localizedDescription'
          description: General description of the source.
        guide:
          $ref: '#/components/schemas/localizedDescription'
          description: Usage guide for enabling the source.
        capabilities:
          type: array
          description: Supported import capabilities.
          items:
            $ref: '#/components/schemas/ImportCapabilityType'
        requirements:
          type: array
          description: Prerequisite steps for enabling the source.
          items:
            $ref: '#/components/schemas/localizedDescription'
        connectionFields:
          type: array
          description: Required connection parameters for the source.
          items:
            $ref: '#/components/schemas/ImportConnectionField'
        supportedVersions:
          type: array
          description: Compatible source version patterns.
          items:
            type: string
        replicationMetadata:
          $ref: '#/components/schemas/ImportReplicationMetadata'
          description: Hierarchical metadata layout supported by the source.
      required:
        - type
        - category
        - name
        - supported
        - connectionFields
    importOption:
      type: object
      properties:
        supportedSources:
          type: array
          items:
            $ref: '#/components/schemas/ImportSupportedSource'
          description: List of supported data sources for import
        sinkEngineName:
          type: string
          description: Engine name for sink/target database
    blueGreenDeploymentAccountOption:
      type: object
      properties:
        component:
          type: string
        defaultAccountName:
          type: array
          items:
            type: string
    blueGreenDeploymentEngineOption:
      description: blueGreenDeploymentEngine is the engine of a blue-green deployment.
      properties:
        enabled:
          description: Whether the blue-green deployment is enabled.
          type: boolean
        accounts:
          $ref: '#/components/schemas/blueGreenDeploymentAccountOption'
      type: object
    engineTlsOption:
      type: object
      required:
        - supported
      properties:
        clusterScope:
          type: boolean
          description: |
            When true, all components in the cluster share the same TLS certificate.
            The secret name is cluster-scoped instead of per-component.
            Example: set to true for Redis sentinel where sentinel and redis must use the same TLS.
        supported:
          type: boolean
          description: |
            Explicit opt-in: true means this engine supports TLS/SSL configuration; false means it does not.
            If engineOption omits tls (or tls is null), TLS is not supported. Only engines with tls.supported === true advertise TLS.
        excludedVersions:
          type: array
          description: |
            Only applies when supported is true. Version patterns (regular expressions, RE2 / Go regexp) for versions
            that still do not support TLS. If omitted or empty while supported is true, all versions are treated as TLS-capable.
            Example: ^8\.1\.3($|[.\-]) matches 8.1.3 and 8.1.3.* but not 8.1.30.
          items:
            type: string
          nullable: true
    tdeParameterOption:
      type: object
      description: Parameter configuration for querying and controlling TDE.
      required:
        - configSpec
        - configFileName
        - key
      properties:
        configSpec:
          type: string
          description: Configuration spec name
        configFileName:
          type: string
          description: Configuration file name
        key:
          type: string
          description: Primary parameter key used to query TDE status
        enabledValues:
          type: array
          items:
            type: string
          description: List of parameter values that indicate TDE is enabled
        disabledValues:
          type: array
          items:
            type: string
          description: List of parameter values that indicate TDE is disabled
    tdeOption:
      type: object
      description: Transparent data encryption configuration.
      required:
        - component
        - parameter
      properties:
        component:
          type: string
          description: Component type
        parameter:
          $ref: '#/components/schemas/tdeParameterOption'
          description: Parameter-based configuration for querying and controlling TDE.
    engineOption:
      type: object
      additionalProperties: false
      required:
        - engineName
        - title
        - description
        - components
        - modes
        - dms
        - endpoints
        - promote
        - stop
        - start
        - restart
        - hscale
        - vscale
        - dashboards
        - logs
        - parameters
      properties:
        engineName:
          type: string
        maturityLevel:
          type: string
          description: engine maturity level
        title:
          type: string
        status:
          $ref: '#/components/schemas/engineOptionStatus'
        description:
          $ref: '#/components/schemas/localizedDescription'
        versions:
          type: array
          items:
            type: string
        components:
          type: array
          items:
            $ref: '#/components/schemas/componentOption'
        modes:
          type: array
          items:
            $ref: '#/components/schemas/modeOption'
        defaultMode:
          type: string
          description: |
            The default mode name to be selected when creating a cluster.
            This field is used by the frontend only.
            The value should match one of the mode names defined in the modes array.
          nullable: true
        account:
          $ref: '#/components/schemas/accountOption'
        database:
          $ref: '#/components/schemas/databaseOption'
        dms:
          $ref: '#/components/schemas/dmsOption'
        backup:
          description: If this field is null, backup is not supported.
          $ref: '#/components/schemas/backupOption'
        bench:
          $ref: '#/components/schemas/benchOption'
        endpoints:
          type: array
          items:
            $ref: '#/components/schemas/endpointOption'
        networkModes:
          $ref: '#/components/schemas/networkModeOption'
        promote:
          type: array
          items:
            $ref: '#/components/schemas/componentOpsOption'
        stop:
          type: array
          items:
            $ref: '#/components/schemas/componentOpsOption'
        start:
          type: array
          items:
            $ref: '#/components/schemas/componentOpsOption'
        restart:
          type: array
          items:
            $ref: '#/components/schemas/componentOpsOption'
        hscale:
          type: array
          items:
            $ref: '#/components/schemas/componentOpsOption'
        vscale:
          type: array
          items:
            $ref: '#/components/schemas/componentOpsOption'
        needAddonlicense:
          type: boolean
          description: Whether the cluster chart consumes the platform license through the standard addon-license.existingSecret name/key values.
        license:
          type: object
          required:
            - secretName
          properties:
            required:
              type: boolean
              description: Indicate whether the current cluster requires users to input the license
            secretName:
              type: string
              description: support to refer the cluster name with variable ${clusterName}
            fileName:
              type: string
              description: the license file name
            allowedTypes:
              type: array
              description: Allowed engine license types. Omit to retain unrestricted license types.
              items:
                type: string
            versions:
              type: array
              description: Engine versions that support license installation. Entries match an exact service version or its major version according to the main component version rule. Omit or leave empty for unrestricted versions.
              items:
                type: string
            networkModes:
              type: array
              description: Effective cluster network modes that support license installation. Omit or leave empty for unrestricted network modes.
              items:
                $ref: '#/components/schemas/networkMode'
            files:
              type: array
              description: Explicit license file upload slots. Each item maps one UI upload field to the file name written into the license Secret.
              items:
                $ref: '#/components/schemas/engineOptionLicenseFile'
            components:
              type: array
              description: set the custom ops to update license for different components
              items:
                $ref: '#/components/schemas/licenseOption'
        storageExpansion:
          type: array
          items:
            $ref: '#/components/schemas/componentOpsOption'
        rebuildInstance:
          type: array
          items:
            $ref: '#/components/schemas/componentOpsOption'
        upgrade:
          type: array
          items:
            $ref: '#/components/schemas/componentOpsOption'
        metrics:
          $ref: '#/components/schemas/metricsOption'
        dashboards:
          type: array
          items:
            $ref: '#/components/schemas/dashboardOption'
        logs:
          type: array
          items:
            $ref: '#/components/schemas/logOption'
        parameters:
          type: array
          items:
            $ref: '#/components/schemas/parameterOption'
        disasterRecovery:
          $ref: '#/components/schemas/disasterRecoveryOption'
        cdc:
          type: array
          items:
            $ref: '#/components/schemas/cdcOption'
        dataReplication:
          $ref: '#/components/schemas/dataReplicationOption'
          nullable: true
        import:
          $ref: '#/components/schemas/importOption'
          nullable: true
        architectures:
          type: array
          items:
            type: string
          description: |
            List of CPU architectures supported by this engine. If not set, all architectures are supported.
          nullable: true
        blueGreenDeployment:
          $ref: '#/components/schemas/blueGreenDeploymentEngineOption'
          nullable: true
        tls:
          description: |
            TLS/SSL capability for this engine. If this field is omitted or null, TLS is not supported (opt-in model).
            When present, use supported to state explicitly whether TLS configuration is offered.
          $ref: '#/components/schemas/engineTlsOption'
          nullable: true
        tde:
          type: array
          items:
            $ref: '#/components/schemas/tdeOption'
          description: Transparent data encryption configuration.
    engineOptionList:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          description: Items is the list of engineOption objects in the list
          items:
            $ref: '#/components/schemas/engineOption'
    engineLicense:
      type: object
      required:
        - engineName
        - name
      properties:
        engineName:
          type: string
        name:
          type: string
        key:
          type: string
          x-nullable: false
        description:
          type: string
        expiredAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        id:
          type: string
          x-nullable: false
        idString:
          type: string
        type:
          type: string
        environmentName:
          type: string
        environmentID:
          type: string
        clusterCount:
          type: integer
          description: Number of clusters that are using this license
    engineLicenseList:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          description: Items is the list of engineLicense objects in the list
          items:
            $ref: '#/components/schemas/engineLicense'
    taskType:
      type: object
      properties:
        name:
          type: string
          description: Name of the task type
        displayName:
          $ref: '#/components/schemas/localizedDescription'
        description:
          $ref: '#/components/schemas/localizedDescription'
        category:
          type: string
          description: Category of the task type
        allowActions:
          type: array
          items:
            type: string
          description: Allow actions of the task type
        resourceType:
          type: string
          description: Resource type of the task type
        createdAt:
          type: string
          format: date-time
          description: Creation time of the task type
        updatedAt:
          type: string
          format: date-time
          description: Update time of the task type
      required:
        - name
        - createdAt
        - updatedAt
    taskTypeList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/taskType'
    taskStatus:
      type: string
      enum:
        - Pending
        - Running
        - Stopped
        - Succeed
        - Failed
        - Cancelling
        - Cancelled
        - Aborted
      description: Current status of the task
    taskListItem:
      type: object
      required:
        - taskId
        - status
        - taskName
        - taskType
        - createdAt
        - updatedAt
      properties:
        taskId:
          type: string
          description: ID of the scaling task
        taskName:
          type: string
          description: Name of the task
        taskType:
          type: string
          description: Type of task operation
        subTaskType:
          type: string
          description: Subtype of task operation.
        status:
          $ref: '#/components/schemas/taskStatus'
        resourceType:
          type: string
          description: Resource type of the task
        resourceId:
          type: string
          description: Resource ID of the task
        resourceName:
          type: string
          description: Resource name of the task
        orgName:
          type: string
          description: Organization name of the task
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the task was created
        updatedAt:
          type: string
          format: date-time
          description: Timestamp when the task was last updated
        startedAt:
          type: string
          format: date-time
          description: Timestamp when the task was deleted
          x-nullable: true
        completionTime:
          type: string
          format: date-time
          description: Time when the task completed or failed
          x-nullable: true
        message:
          type: string
          description: Detailed message about the task status
          x-nullable: true
        progress:
          type: integer
          description: Progress percentage of the task
          minimum: 0
          maximum: 100
        operator:
          type: string
          description: The user created the task
          x-nullable: true
        scheduled:
          $ref: '#/components/schemas/taskSchedule'
          description: Scheduled execution configuration
          x-nullable: true
    taskList:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/taskListItem'
        pagination:
          $ref: '#/components/schemas/paginationResult'
    taskStep:
      type: object
      required:
        - stepId
        - stepName
        - methodName
        - status
        - createdAt
        - updatedAt
      properties:
        stepId:
          type: string
          description: Unique identifier for the step
        stepName:
          type: string
          description: Name of the step
        methodName:
          type: string
          description: Method to be executed in this step
        inputs:
          type: object
          description: Input parameters for the step
          additionalProperties: true
        outputs:
          type: object
          description: Output parameters from the step
          additionalProperties: true
        retryLimit:
          type: integer
          description: Number of times to retry the step in case of failure
        currRetryCount:
          type: integer
          description: Current retry count for the step
        timeoutSecond:
          type: integer
          description: Timeout duration for the step in seconds
        status:
          $ref: '#/components/schemas/taskStatus'
        message:
          type: string
          description: Detailed message about the step status
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the step was created
        updatedAt:
          type: string
          format: date-time
          description: Timestamp when the step was last updated
        startedAt:
          type: string
          format: date-time
          description: Timestamp when the task was deleted
          x-nullable: true
        completionTime:
          type: string
          format: date-time
          description: Time when the task completed or failed
          x-nullable: true
        detail:
          type: object
          description: Detailed information about the step
          additionalProperties: true
    taskFailurePolicy:
      type: string
      enum:
        - interrupt
        - ignore
      description: Policy to handle failures
    taskRetryMode:
      type: string
      enum:
        - restart
        - resume
      default: restart
      description: restart reruns all steps; resume preserves successful steps.
    task:
      type: object
      required:
        - taskId
        - status
        - taskName
        - taskType
        - createdAt
        - updatedAt
      properties:
        taskId:
          type: string
          description: ID of the scaling task
        taskName:
          type: string
          description: Name of the task
        taskType:
          type: string
          description: Type of task operation
        subTaskType:
          type: string
          description: Subtype of task operation
        status:
          $ref: '#/components/schemas/taskStatus'
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the task was created
        updatedAt:
          type: string
          format: date-time
          description: Timestamp when the task was last updated
        deletedAt:
          type: string
          format: date-time
          description: Timestamp when the task was deleted
          x-nullable: true
        startedAt:
          type: string
          format: date-time
          description: Timestamp when the task was deleted
          x-nullable: true
        completionTime:
          type: string
          format: date-time
          description: Time when the task completed or failed
          x-nullable: true
        message:
          type: string
          description: Detailed message about the task status
          x-nullable: true
        progress:
          type: integer
          description: Progress percentage of the task
          minimum: 0
          maximum: 100
        steps:
          type: array
          items:
            $ref: '#/components/schemas/taskStep'
        parallelism:
          type: integer
          description: Degree of parallelism for the task
        failurePolicy:
          $ref: '#/components/schemas/taskFailurePolicy'
        retryModes:
          type: array
          description: Supported manual retry modes for this task. Runtime conflicts are checked when retrying.
          items:
            $ref: '#/components/schemas/taskRetryMode'
        retryLimit:
          type: integer
          description: Maximum number of retries for the task
        timeoutSecond:
          type: integer
          description: Timeout duration for the task in seconds
        operator:
          type: string
          description: The user created the task
          x-nullable: true
        resourceType:
          type: string
          description: Resource type of the task, e.g. "cluster", "environment", etc.
        resourceId:
          type: string
          description: Resource ID of the task
        resourceName:
          type: string
          description: Resource name of the task
        orgName:
          type: string
          description: Organization name of the task
        scheduled:
          $ref: '#/components/schemas/taskSchedule'
          description: Scheduled execution configuration
          x-nullable: true
    dmsAuditRisk:
      type: string
      enum:
        - unknown
        - read_only
        - ddl
        - dml
        - high
    dmsAuditStatus:
      type: string
      enum:
        - success
        - failed
        - unknown
    dmsAuditStatement:
      type: object
      required:
        - sequence
        - statement
        - database
        - tableNames
        - risk
        - status
        - errorMessage
      properties:
        sequence:
          type: integer
        statement:
          type: string
        database:
          type: string
        tableNames:
          type: array
          items:
            type: string
        sessionId:
          type: string
        risk:
          $ref: '#/components/schemas/dmsAuditRisk'
        status:
          $ref: '#/components/schemas/dmsAuditStatus'
        errorMessage:
          type: string
        durationMs:
          type: integer
          format: int64
        rowsAffected:
          type: integer
          format: int64
        startedAt:
          type: string
          format: date-time
        finishedAt:
          type: string
          format: date-time
    dmsAudit:
      type: object
      required:
        - id
        - orgName
        - clusterId
        - clusterName
        - userName
        - engine
        - database
        - operation
        - statement
        - status
        - createdAt
      properties:
        id:
          type: string
        orgName:
          type: string
        clusterId:
          type: string
        clusterName:
          type: string
        datasourceId:
          type: string
        userId:
          type: string
          description: Absent for migrated history with unknown actor.
        userName:
          type: string
        databaseUser:
          type: string
          description: Database connection account captured at operation time. Empty for historical records or connections without a named account.
        engine:
          type: string
        database:
          type: string
        operation:
          type: string
        statement:
          type: string
        clientIp:
          type: string
        sessionId:
          type: string
          description: Native database session ID; see individual statements when a batch uses multiple connections.
        risk:
          $ref: '#/components/schemas/dmsAuditRisk'
        tableNames:
          type: array
          items:
            type: string
        errorMessage:
          type: string
        rowsAffected:
          type: integer
          format: int64
        statements:
          type: array
          items:
            $ref: '#/components/schemas/dmsAuditStatement'
        status:
          $ref: '#/components/schemas/dmsAuditStatus'
        createdAt:
          type: string
          format: date-time
        finishedAt:
          type: string
          format: date-time
        durationMs:
          type: integer
          format: int64
    dmsAuditList:
      type: object
      required:
        - items
        - total
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/dmsAudit'
        total:
          type: integer
          format: int64
    datasource:
      required:
        - type
      type: object
      properties:
        id:
          type: string
          description: the id of datasource
        name:
          type: string
          description: the name of datasource
        type:
          type: string
          description: the database type
        options:
          additionalProperties:
            type: object
          type: object
    datasourceList:
      items:
        $ref: '#/components/schemas/datasource'
      type: array
    testConnectResponse:
      type: object
      properties:
        ok:
          type: boolean
          description: whether the datasource connection test passed
        message:
          type: string
          description: diagnostic message returned by DMS
        extraInfo:
          type: object
          description: additional diagnostics returned by DMS
          additionalProperties: true
    DmsQueryBaseRequest:
      type: object
      properties:
        database:
          type: string
          description: the database of the table or view
          default: ''
        query:
          type: string
          description: the sql string
        limit:
          type: integer
          description: return limited number of data
          default: 200
    DmsQueryRequest:
      type: object
      allOf:
        - $ref: '#/components/schemas/DmsQueryBaseRequest'
        - type: object
          properties:
            noRecord:
              type: boolean
              description: if noRecord is true, the query(s) will not be added to query history
              nullable: true
    DmsExportRequest:
      type: object
      allOf:
        - $ref: '#/components/schemas/DmsQueryBaseRequest'
        - type: object
          properties:
            format:
              type: string
              description: the file format for export data
    DmsImportRequest:
      description: the data of the import task
      type: object
      required:
        - fileType
        - tableName
        - database
      properties:
        firstLineColumn:
          type: boolean
          description: whether the first line of the file is column name
          default: true
        fieldsTerminalBy:
          type: string
          description: the delimiter of fields
          default: ','
        fieldNames:
          type: array
          description: the field names
          items:
            type: string
          nullable: true
        ignoreForeignKey:
          type: boolean
          description: whether ignore foreign key when import data or not
          default: false
        fileType:
          type: string
        file:
          type: string
          format: binary
          description: the data file, csv or other format
        tableName:
          type: string
          description: the target table name
        database:
          type: string
          description: the database of the specific table, required for the engine which don't need to specify database when create database, such as mysql
        skipNull:
          type: boolean
          description: whether skip the row which has null value when import data
          default: true
    DmsImportFormData:
      description: the data of the import task
      type: object
      required:
        - file
      properties:
        file:
          type: string
          format: binary
          description: the data file, csv or other format
    DmsSchemaList:
      type: array
      items:
        type: string
    DmsObject:
      type: object
      x-nullable: true
      properties:
        type:
          type: string
          description: Type is the type of db object, like 'Table', 'Views', 'Functions'
        count:
          type: integer
          format: int64
          description: Count is the number of each object
    DmsObjectList:
      type: array
      items:
        $ref: '#/components/schemas/DmsObject'
    DmsObjectNameList:
      type: array
      items:
        type: string
    DmsObjectResponse:
      type: object
      properties:
        data:
          type: object
          description: The data of the Object
          additionalProperties: true
        type:
          type: string
          description: The type of the Object
    DmsQueryHistory:
      type: object
      properties:
        engine:
          title: Engine
          type: string
          x-nullable: true
          description: datasource engine
        sql:
          title: SQL
          type: string
          x-nullable: true
          description: user input text
        errMassage:
          title: errMassage
          type: string
          x-nullable: true
          description: execution message
        createdAt:
          title: time
          type: string
          format: date-time
          x-go-type: time.Time
          description: executed time
        duration:
          title: duration
          type: integer
          format: int64
          x-nullable: true
          description: execution duration
    DmsQueryHistoryList:
      type: array
      items:
        $ref: '#/components/schemas/DmsQueryHistory'
    DmsVisualExplainRequest:
      type: object
      properties:
        query:
          type: string
          description: the sql string
        database:
          type: string
          description: the database for explaining the SQL
          default: ''
        analyze:
          type: boolean
          description: whether to run an actual/analyze plan when the engine supports it
          default: false
    DmsGenerateDdlOperationType:
      type: string
      description: operation type
      enum:
        - table
        - view
    DmsTableColumn:
      type: object
      properties:
        name:
          type: string
          description: The name of the column
        type:
          type: string
          description: The data type of the column
        length:
          type: integer
          description: The length of the column if applicable
          nullable: true
        scale:
          type: integer
          description: The number of decimal places for numeric columns
          nullable: true
        notNull:
          type: boolean
          description: Whether the column can be null
        default:
          type: string
          description: The default value for the column
          nullable: true
        comment:
          type: string
          description: A comment describing the column
          nullable: true
        autoIncrement:
          type: boolean
          description: Whether the column is auto-incremented
        seed:
          type: integer
          description: used for autoIncrement
          nullable: true
        increment:
          type: integer
          description: used for autoIncrement
          nullable: true
        unsigned:
          type: boolean
          description: Whether the column is unsigned
        onUpdateCurrentTimestamp:
          type: boolean
          description: Whether the column updates to the current timestamp on update
        hidden:
          type: boolean
          description: Whether the column is hidden
        generated:
          type: object
          description: Generated column information
          nullable: true
          properties:
            type:
              type: string
              description: The type of generation (e.g., VIRTUAL or STORED)
            expression:
              type: string
              description: The expression used to generate the column's value
    DmsTableIndex:
      type: object
      properties:
        name:
          type: string
          description: The name of the index
        type:
          type: string
          description: The type of the index (e.g., UNIQUE, FULLTEXT)
        columns:
          type: array
          items:
            type: string
          description: List of columns included in the index
        comment:
          type: string
          description: A comment describing the index
          nullable: true
        hidden:
          type: boolean
          description: Whether the index is hidden
        otherOptions:
          type: array
          items:
            type: string
          description: Other options for the index
          nullable: true
    DmsPrimaryKey:
      type: object
      properties:
        name:
          type: string
          description: The name of the primary key
          nullable: true
        columns:
          type: array
          items:
            type: string
          description: The list of columns that make up the primary key
    DmsForeignKey:
      type: object
      properties:
        name:
          type: string
          description: The name of the foreign key
          nullable: true
        columns:
          type: array
          items:
            type: string
          description: The list of columns that make up the foreign key
        reference:
          type: object
          description: The reference details of the foreign key
          properties:
            database:
              type: string
              description: The referenced database
            schema:
              type: string
              description: The referenced schema
            table:
              type: string
              description: The referenced table
            columns:
              type: array
              items:
                type: string
              description: The referenced columns
            matchType:
              type: string
              description: The match type for the foreign key (e.g., SIMPLE, FULL)
              nullable: true
        onUpdate:
          type: string
          description: The action on update (e.g., CASCADE, NO ACTION)
        onDelete:
          type: string
          description: The action on delete (e.g., CASCADE, NO ACTION)
    DmsUniqueKey:
      type: object
      properties:
        name:
          type: string
          description: The name of the unique key
          nullable: true
        columns:
          type: array
          items:
            type: string
          description: The list of columns that make up the unique key
        include:
          type: array
          items:
            type: string
          description: Additional columns included in the unique key
          nullable: true
    DmsCheckConstraint:
      type: object
      properties:
        name:
          type: string
          description: The name of the check constraint
        expression:
          type: string
          description: The expression for the check constraint
        enforced:
          type: boolean
          description: Whether the check constraint is enforced
    DmsExcludeConstraint:
      type: object
      properties:
        name:
          type: string
          description: The name of the exclude constraint
          nullable: true
        indexMethod:
          type: string
          description: The index method (e.g., GIST, BTREE)
        exclude:
          type: array
          items:
            type: object
            properties:
              columns:
                type: string
                description: The column(s) involved in the exclusion
              operator:
                type: string
                description: The operator used in the exclusion
    DmsTablePartitioning:
      type: object
      properties:
        statement:
          type: string
          description: The partitioning statement for the table
    DmsTableOptions:
      type: object
      properties:
        engine:
          type: string
          description: The storage engine for the table
        charset:
          type: string
          description: The character set for the table
        collation:
          type: string
          description: The collation for the table
        type:
          type: string
          description: The type of the table
        otherOptions:
          type: array
          items:
            type: string
          description: Other options for the table
          nullable: true
    DmsTableMetadata:
      type: object
      properties:
        name:
          type: string
          description: The name of the table
        schema:
          type: string
          description: The schema of the table
          nullable: true
        database:
          type: string
          description: The database where the table resides
          nullable: true
        comment:
          type: string
          description: A comment describing the table
          nullable: true
        columns:
          type: array
          items:
            $ref: '#/components/schemas/DmsTableColumn'
          description: List of columns in the table
        indexes:
          type: array
          items:
            $ref: '#/components/schemas/DmsTableIndex'
          description: List of indexes on the table
          nullable: true
        primaryKey:
          type: object
          description: The primary key of the table
          nullable: true
          $ref: '#/components/schemas/DmsPrimaryKey'
        foreignKeys:
          type: array
          items:
            $ref: '#/components/schemas/DmsForeignKey'
          description: List of foreign keys on the table
          nullable: true
        uniqueKeys:
          type: array
          items:
            $ref: '#/components/schemas/DmsUniqueKey'
          description: List of unique keys on the table
          nullable: true
        checkConstraints:
          type: array
          items:
            $ref: '#/components/schemas/DmsCheckConstraint'
          description: List of check constraints on the table
          nullable: true
        excludeConstraints:
          type: array
          items:
            $ref: '#/components/schemas/DmsExcludeConstraint'
          description: List of exclude constraints on the table
          nullable: true
        partitioning:
          type: object
          $ref: '#/components/schemas/DmsTablePartitioning'
          description: The partitioning of the table
          nullable: true
        options:
          type: object
          $ref: '#/components/schemas/DmsTableOptions'
          description: The options for the table
          nullable: true
    DmsViewMetadata:
      type: object
      properties:
        viewName:
          type: string
          description: The name of the view
        database:
          type: string
          description: The database in which the view will be created
        replace:
          type: boolean
          description: Whether to replace the existing view if it exists
          nullable: true
        definer:
          type: string
          description: The definer of the view
          nullable: true
        sqlSecurity:
          type: string
          description: The SQL security context of the view (e.g., DEFINER or INVOKER)
          nullable: true
        checkOption:
          type: string
          description: The WITH CHECK OPTION clause (e.g., CASCADED or LOCAL)
          nullable: true
        algorithm:
          type: string
          description: The algorithm used for the view (e.g., UNDEFINED, MERGE, TEMPTABLE)
          nullable: true
        definition:
          type: string
          description: The SQL statement defining the view
          nullable: true
    DmsGenerateDDLRequest:
      type: object
      required:
        - type
      properties:
        type:
          $ref: '#/components/schemas/DmsGenerateDdlOperationType'
        tableMetadata:
          $ref: '#/components/schemas/DmsTableMetadata'
        viewMetadata:
          $ref: '#/components/schemas/DmsViewMetadata'
    ShowDataRequest:
      type: object
      properties:
        database:
          type: string
          description: the database of the table or view
          default: ''
        table:
          type: string
          description: the target table or view name
        limit:
          type: integer
          description: Rows per batch, from 1 to 2000; defaults to 200.
          minimum: 1
          maximum: 2000
          nullable: true
        offset:
          type: integer
          format: int64
          minimum: 0
          nullable: true
          description: Zero-based offset. Include 0 for the first paged request; omit for legacy data plus total-count behavior. Paged requests do not count the table.
        countOnly:
          type: boolean
          description: Only return pagination.totalRows, without loading data.
    RedisKeyEntry:
      type: object
      properties:
        Key:
          type: string
        Bytes:
          type: integer
          format: int64
        Type:
          type: string
        NumOfElem:
          type: integer
          format: int64
        LenOfLargestElem:
          type: integer
          format: int64
        FieldOfLargestElem:
          type: string
        Db:
          type: integer
        Encoding:
          type: string
        Expiration:
          type: integer
          format: int64
        LruIdle:
          type: integer
          format: int64
        LfuFreq:
          type: integer
    RedisKeyAnalysisReport:
      type: object
      description: |
        One Redis keys analysis report row. Rows are persisted per shard. The query
        response appends one non-persisted aggregate row with isSummary=true.
      properties:
        taskId:
          type: string
        clusterId:
          type: string
        shardName:
          type: string
        isSummary:
          type: boolean
          description: True for the aggregate row that is not persisted.
        createTime:
          type: string
          format: date-time
        parameters:
          type: object
          description: |
            Parameters for a Redis keys analysis task. topBigKey and topSlot are capped at 500.
            numOfElemMin filters keys whose element count is below the threshold. bigKeySizeMin
            filters keys whose memory usage is below the threshold (for example "10kb").
          properties:
            topBigKey:
              type: integer
              format: int64
              minimum: 1
              maximum: 500
              default: 100
            numOfElemMin:
              type: integer
              format: int64
              minimum: 1
              default: 3000
            bigKeySizeMin:
              type: string
              default: 10kb
            topSlot:
              type: integer
              format: int64
              minimum: 1
              maximum: 500
              default: 100
        typeStat:
          type: object
          description: 'Key statistics by Redis data type: {type: {count, bytes}}.'
          additionalProperties:
            type: object
            properties:
              count:
                type: integer
                format: int64
              bytes:
                type: string
        byteLevelStat:
          type: object
          description: 'Key statistics by memory size bucket: {bucket: {count, bytes}}.'
          additionalProperties:
            type: object
            properties:
              count:
                type: integer
                format: int64
              bytes:
                type: string
        totalNumKeys:
          type: integer
          format: int64
          x-omitempty: false
          description: Sum of counts across all byteLevelStat buckets.
        totalSizeKeys:
          type: integer
          format: int64
          x-omitempty: false
          description: Sum of bytes across all byteLevelStat buckets.
        expireStat:
          type: object
          description: 'Key statistics by remaining TTL bucket: {bucket: {count, bytes}}.'
          additionalProperties:
            type: object
            properties:
              count:
                type: integer
                format: int64
              bytes:
                type: string
        topBigKeyByteStat:
          type: array
          items:
            $ref: '#/components/schemas/RedisKeyEntry'
        topBigKeyElemStat:
          type: array
          items:
            $ref: '#/components/schemas/RedisKeyEntry'
        topSlotKeyByteStat:
          type: array
          description: 'Top cluster slots by memory usage: [{slot: bytes}]. Only populated for Redis Cluster mode.'
          items:
            type: object
            additionalProperties:
              type: integer
              format: int64
        topSlotKeyCountStat:
          type: array
          description: 'Top cluster slots by key count: [{slot: count}]. Only populated for Redis Cluster mode.'
          items:
            type: object
            additionalProperties:
              type: integer
              format: int64
    RedisACLContext:
      type: object
      properties:
        user:
          type: string
          description: Redis ACL user bound to the datasource.
        keyPatterns:
          type: array
          description: Key patterns the datasource ACL user is allowed to access.
          items:
            type: string
        channelPatterns:
          type: array
          description: Pub/Sub channel patterns the datasource ACL user is allowed to access.
          items:
            type: string
        commandRules:
          type: array
          description: Command allow/deny rules for the datasource ACL user.
          items:
            type: string
    RedisCapability:
      type: object
      properties:
        enabled:
          type: boolean
          x-omitempty: false
        reason:
          type: string
    RedisDataCapabilities:
      type: object
      properties:
        analysis:
          $ref: '#/components/schemas/RedisCapability'
        browser:
          $ref: '#/components/schemas/RedisCapability'
        database:
          $ref: '#/components/schemas/RedisCapability'
        workbench:
          $ref: '#/components/schemas/RedisCapability'
        pubsub:
          $ref: '#/components/schemas/RedisCapability'
        slowLog:
          $ref: '#/components/schemas/RedisCapability'
        info:
          $ref: '#/components/schemas/RedisCapability'
        cluster:
          $ref: '#/components/schemas/RedisCapability'
        write:
          $ref: '#/components/schemas/RedisCapability'
        delete:
          $ref: '#/components/schemas/RedisCapability'
        json:
          $ref: '#/components/schemas/RedisCapability'
    RedisClusterNode:
      type: object
      properties:
        nodeId:
          type: string
        address:
          type: string
        role:
          type: string
        shardId:
          type: string
        reachable:
          type: boolean
          x-omitempty: false
    RedisClusterState:
      type: object
      properties:
        ready:
          type: boolean
          x-omitempty: false
        reason:
          type: string
          description: reason code when cluster data management is not ready, for example requires_redis_cluster_mirror
        networkMode:
          type: string
        mirrorReady:
          type: boolean
          x-omitempty: false
        nodes:
          type: array
          items:
            $ref: '#/components/schemas/RedisClusterNode'
    RedisDataContext:
      type: object
      properties:
        datasourceName:
          type: string
        aclUser:
          type: string
          description: Redis ACL user name. Prefer acl.user for new clients.
        acl:
          $ref: '#/components/schemas/RedisACLContext'
        dbIndex:
          type: integer
          format: int64
          description: Current logical Redis database index for this request context.
        dbCount:
          type: integer
          format: int64
          description: Available logical Redis database count. Non-cluster Redis defaults to 16 when the server does not expose a count; Redis Cluster is always 1.
          x-omitempty: false
        mode:
          type: string
          description: Redis architecture mode, such as standalone, replication, sentinel, or cluster
        readOnly:
          type: boolean
          x-omitempty: false
        capabilities:
          $ref: '#/components/schemas/RedisDataCapabilities'
        cluster:
          $ref: '#/components/schemas/RedisClusterState'
    RedisKeySummary:
      type: object
      properties:
        key:
          type: string
        type:
          type: string
        ttl:
          type: integer
          format: int64
          description: key TTL in seconds; -1 means no expiration and -2 means missing key
        memory:
          type: integer
          format: int64
          description: memory usage in bytes when available
        length:
          type: integer
          format: int64
        encoding:
          type: string
        slot:
          type: integer
          format: int64
        nodeId:
          type: string
        aclAccess:
          type: string
          description: datasource ACL access result for this key
    RedisKeyScanProgress:
      type: object
      description: Redis key browser scan progress for the current page.
      properties:
        scope:
          type: string
          description: Scan scope, either node or cluster.
          x-omitempty: false
        total:
          type: integer
          format: int64
          description: Total keys in the scan scope when available.
          x-omitempty: false
        scanned:
          type: integer
          format: int64
          description: Number of key names returned by SCAN in this page before type filtering.
          x-omitempty: false
        loaded:
          type: integer
          format: int64
          description: Number of key summaries loaded in this page after filtering and metadata lookup.
          x-omitempty: false
        complete:
          type: boolean
          description: Whether the scan cursor is complete after this page.
          x-omitempty: false
    RedisKeySummaryList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/RedisKeySummary'
        nextCursor:
          type: string
          description: Cursor for the next SCAN page. Empty or "0" means the scan is complete.
        hasMore:
          type: boolean
          description: Whether another key page should be requested.
          x-omitempty: false
        progress:
          $ref: '#/components/schemas/RedisKeyScanProgress'
    RedisAnalysisFilter:
      type: object
      properties:
        match:
          type: string
        count:
          type: integer
          format: int64
          x-omitempty: false
    RedisAnalysisProgress:
      type: object
      properties:
        total:
          type: integer
          format: int64
          x-omitempty: false
        scanned:
          type: integer
          format: int64
          x-omitempty: false
        processed:
          type: integer
          format: int64
          x-omitempty: false
        sampleLimit:
          type: integer
          format: int64
          x-omitempty: false
        cursor:
          type: string
        nextCursor:
          type: string
        scannedPercent:
          type: number
          format: double
          x-omitempty: false
        complete:
          type: boolean
          x-omitempty: false
        sampled:
          type: boolean
          x-omitempty: false
        extrapolationFactor:
          type: number
          format: double
          x-omitempty: false
        generatedAt:
          type: string
          format: date-time
    RedisAnalysisSimpleTypeSummary:
      type: object
      properties:
        type:
          type: string
        total:
          type: integer
          format: int64
          x-omitempty: false
        ratio:
          type: number
          format: double
          x-omitempty: false
    RedisAnalysisTypedSummary:
      type: object
      properties:
        total:
          type: integer
          format: int64
          x-omitempty: false
        types:
          type: array
          items:
            $ref: '#/components/schemas/RedisAnalysisSimpleTypeSummary'
            nullable: true
    RedisAnalysisNamespaceTypeSummary:
      type: object
      properties:
        type:
          type: string
        keys:
          type: integer
          format: int64
          x-omitempty: false
        memory:
          type: integer
          format: int64
          x-omitempty: false
        keyRatio:
          type: number
          format: double
          x-omitempty: false
        memoryRatio:
          type: number
          format: double
          x-omitempty: false
    RedisAnalysisNamespaceSummary:
      type: object
      properties:
        nsp:
          type: string
        keys:
          type: integer
          format: int64
          x-omitempty: false
        memory:
          type: integer
          format: int64
          x-omitempty: false
        keyRatio:
          type: number
          format: double
          x-omitempty: false
        memoryRatio:
          type: number
          format: double
          x-omitempty: false
        types:
          type: array
          items:
            $ref: '#/components/schemas/RedisAnalysisNamespaceTypeSummary'
            nullable: true
    RedisAnalysisKey:
      type: object
      properties:
        name:
          type: string
        type:
          type: string
        nsp:
          type: string
        ttl:
          type: integer
          format: int64
        memory:
          type: integer
          format: int64
          x-omitempty: false
        length:
          type: integer
          format: int64
          x-omitempty: false
        encoding:
          type: string
    RedisAnalysisExpirationGroup:
      type: object
      properties:
        threshold:
          type: integer
          format: int64
          x-omitempty: false
        label:
          type: string
        total:
          type: integer
          format: int64
          x-omitempty: false
          description: Memory bytes likely to be freed in this TTL group.
        keys:
          type: integer
          format: int64
          x-omitempty: false
        keyRatio:
          type: number
          format: double
          x-omitempty: false
        memoryRatio:
          type: number
          format: double
          x-omitempty: false
    RedisAnalysisResponse:
      type: object
      description: Instant Redis key analysis report sampled by bounded SCAN. This aligns with RedisInsight-style analysis dimensions but is not a persisted historical report.
      properties:
        db:
          type: integer
          format: int64
          x-omitempty: false
        filter:
          $ref: '#/components/schemas/RedisAnalysisFilter'
        delimiter:
          type: string
          description: Actual delimiter used to aggregate top namespaces.
        progress:
          $ref: '#/components/schemas/RedisAnalysisProgress'
        createdAt:
          type: string
          format: date-time
        connectedClients:
          type: integer
          format: int64
          description: Connected client count from Redis INFO when available.
          x-omitempty: false
        totalKeys:
          $ref: '#/components/schemas/RedisAnalysisTypedSummary'
        totalMemory:
          $ref: '#/components/schemas/RedisAnalysisTypedSummary'
        topKeysNsp:
          type: array
          items:
            $ref: '#/components/schemas/RedisAnalysisNamespaceSummary'
            nullable: true
        topMemoryNsp:
          type: array
          items:
            $ref: '#/components/schemas/RedisAnalysisNamespaceSummary'
            nullable: true
        topKeysLength:
          type: array
          items:
            $ref: '#/components/schemas/RedisAnalysisKey'
            nullable: true
        topKeysMemory:
          type: array
          items:
            $ref: '#/components/schemas/RedisAnalysisKey'
            nullable: true
        expirationGroups:
          type: array
          items:
            $ref: '#/components/schemas/RedisAnalysisExpirationGroup'
            nullable: true
        warnings:
          type: array
          items:
            type: string
        recommendations:
          type: array
          items:
            type: string
    RedisKeyDetailRequest:
      type: object
      required:
        - key
      properties:
        dbIndex:
          type: integer
          format: int64
        key:
          type: string
        valueCursor:
          type: string
        offset:
          type: integer
          format: int64
        limit:
          type: integer
          format: int64
        jsonPath:
          type: string
    RedisKeyValueItem:
      type: object
      description: Stable Redis collection item shape. Fields are populated according to Redis value type.
      properties:
        field:
          type: string
          description: Hash field name.
        value:
          description: Hash/list/set/json item value. The value may be a scalar, array, or object depending on Redis value type.
        member:
          type: string
          description: Set or sorted-set member.
        score:
          type: number
          format: double
          description: Sorted-set score.
        id:
          type: string
          description: Stream entry ID.
        fields:
          type: object
          description: Stream entry field/value map.
          additionalProperties:
            type: string
        index:
          type: integer
          format: int64
          description: List item index when available.
    RedisKeyValue:
      type: object
      description: Discriminated Redis key value payload for string, hash, list, set, zset, stream, and json editors.
      properties:
        type:
          type: string
          description: Redis value type, such as string, hash, list, set, zset, stream, or json.
        text:
          type: string
          description: String or serialized scalar value for string/json previews.
        items:
          type: array
          description: Paged collection items for hash, list, set, zset, stream, and json collection previews.
          items:
            $ref: '#/components/schemas/RedisKeyValueItem'
        cursor:
          type: string
          description: Cursor for the next value page. Empty or "0" means the value page is complete.
        offset:
          type: integer
          format: int64
          description: Offset used by offset-based value pagination.
        limit:
          type: integer
          format: int64
          description: Maximum number of value items returned.
        truncated:
          type: boolean
          description: Whether the returned value is truncated by size or item limit.
          x-omitempty: false
        jsonPath:
          type: string
          description: JSON path used for the returned JSON value.
    RedisKeyDetail:
      type: object
      properties:
        metadata:
          $ref: '#/components/schemas/RedisKeySummary'
        value:
          $ref: '#/components/schemas/RedisKeyValue'
        nextCursor:
          type: string
    RedisKeyMutateRequest:
      type: object
      required:
        - key
        - operation
      properties:
        key:
          type: string
        expectedType:
          type: string
        operation:
          type: string
          description: Redis key mutation operation, such as set, hset, hdel, lset, lpush, rpush, sadd, srem, zadd, zrem, xadd, xtrim, json_set, json_del, expire, persist, rename, or delete
        payload:
          type: object
          additionalProperties: true
        confirm:
          type: boolean
          x-omitempty: false
    RedisOperationStatus:
      type: string
      enum:
        - success
        - error
        - blocked
    RedisOperationGuard:
      type: object
      properties:
        aclAllowed:
          type: boolean
          x-omitempty: false
        crossSlot:
          type: boolean
          x-omitempty: false
        dangerous:
          type: boolean
          x-omitempty: false
        reason:
          type: string
    RedisOperationSummary:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/RedisOperationStatus'
        message:
          type: string
        affected:
          type: integer
          format: int64
        durationMs:
          type: integer
          format: int64
        guard:
          $ref: '#/components/schemas/RedisOperationGuard'
    RedisKeyMutateResponse:
      type: object
      properties:
        operationSummary:
          $ref: '#/components/schemas/RedisOperationSummary'
        metadata:
          $ref: '#/components/schemas/RedisKeySummary'
        valuePreview:
          $ref: '#/components/schemas/RedisKeyValue'
    RedisWorkbenchExecuteRequest:
      type: object
      required:
        - command
      properties:
        command:
          type: string
        confirmDangerous:
          type: boolean
          x-omitempty: false
    RedisWorkbenchExecuteResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/RedisOperationStatus'
        durationMs:
          type: integer
          format: int64
        result:
          type: object
          additionalProperties: true
        guard:
          $ref: '#/components/schemas/RedisOperationGuard'
        nodeId:
          type: string
        slot:
          type: integer
          format: int64
    RedisPubSubPublishRequest:
      type: object
      required:
        - channel
        - message
      properties:
        channel:
          type: string
        message:
          type: string
    RedisPubSubSessionCreateRequest:
      type: object
      properties:
        channels:
          type: array
          items:
            type: string
        patterns:
          type: array
          items:
            type: string
    RedisPubSubSession:
      type: object
      properties:
        sessionId:
          type: string
        channels:
          type: array
          items:
            type: string
        patterns:
          type: array
          items:
            type: string
        createdAt:
          type: string
          format: date-time
    RedisPubSubMessage:
      type: object
      properties:
        channel:
          type: string
        pattern:
          type: string
        message:
          type: string
        receivedAt:
          type: string
          format: date-time
    RedisPubSubMessageList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/RedisPubSubMessage'
        nextCursor:
          type: string
    RedisSlowLogEntry:
      type: object
      properties:
        id:
          type: integer
          format: int64
        timestamp:
          type: integer
          format: int64
        durationMicros:
          type: integer
          format: int64
        command:
          type: string
        clientAddr:
          type: string
        clientName:
          type: string
        nodeId:
          type: string
    RedisSlowLogList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/RedisSlowLogEntry'
    RedisDangerousOperationRequest:
      type: object
      properties:
        confirmDangerous:
          type: boolean
          x-omitempty: false
    RedisInfoResponse:
      type: object
      properties:
        scope:
          type: string
          description: INFO scope, either node or cluster.
          x-omitempty: false
        section:
          type: string
        nodeId:
          type: string
        raw:
          type: string
        values:
          type: object
          additionalProperties: true
    RedisClusterSlot:
      type: object
      properties:
        start:
          type: integer
          format: int64
        end:
          type: integer
          format: int64
        primaryNodeId:
          type: string
        replicaNodeIds:
          type: array
          items:
            type: string
    RedisClusterTopology:
      type: object
      properties:
        ready:
          type: boolean
          x-omitempty: false
        reason:
          type: string
        nodes:
          type: array
          items:
            $ref: '#/components/schemas/RedisClusterNode'
        slots:
          type: array
          items:
            $ref: '#/components/schemas/RedisClusterSlot'
    MongoDatabaseInfo:
      type: object
      properties:
        name:
          type: string
          description: database name
        sizeOnDisk:
          type: integer
          format: int64
          x-omitempty: false
        empty:
          type: boolean
          x-omitempty: false
        collectionCount:
          type: integer
          format: int64
          x-omitempty: false
        isSystem:
          type: boolean
          x-omitempty: false
    MongoCollectionStats:
      type: object
      properties:
        name:
          type: string
          description: collection name
        type:
          type: string
          description: collection type (collection or view)
        isSystem:
          type: boolean
          description: whether this is a MongoDB system collection
          x-omitempty: false
        capabilities:
          $ref: '#/components/schemas/MongoCollectionCapabilities'
        documentCount:
          type: integer
          format: int64
        totalSize:
          type: integer
          format: int64
        indexCount:
          type: integer
          format: int64
    MongoCreateCollectionOptions:
      type: object
      properties:
        capped:
          type: boolean
        size:
          type: integer
          format: int64
          description: capped collection size in bytes
        max:
          type: integer
          format: int64
          description: capped collection max document count
        validator:
          type: object
          description: collection validator document
        validationLevel:
          type: string
        validationAction:
          type: string
        collation:
          type: object
          description: default collection collation
    MongoCreateCollectionRequest:
      type: object
      properties:
        options:
          $ref: '#/components/schemas/MongoCreateCollectionOptions'
    MongoFindRequest:
      type: object
      properties:
        filter:
          type: object
          description: MongoDB query filter
        sort:
          type: object
          description: sort specification
        projection:
          type: object
          description: field projection
        collation:
          type: object
          description: MongoDB collation options
        skip:
          type: integer
          format: int64
          description: number of documents to skip
        limit:
          type: integer
          format: int64
          description: maximum number of documents to return
        maxTimeMS:
          type: integer
          format: int64
          description: maximum query execution time in milliseconds
    MongoFindResponse:
      type: object
      properties:
        columns:
          type: array
          items:
            type: string
          description: column names (flattened document key union)
        rows:
          type: array
          items:
            type: array
            items: {}
          description: row data (flattened document values)
        documents:
          type: array
          items:
            type: object
          description: raw documents (when raw mode)
        totalCount:
          type: integer
          format: int64
          description: total matching documents
    MongoAggregateRequest:
      type: object
      properties:
        pipeline:
          type: array
          items:
            type: object
          description: aggregation pipeline; write stages such as $out/$merge are rejected by DMS in S1
        maxTimeMS:
          type: integer
          format: int64
          description: maximum aggregation execution time in milliseconds
        limit:
          type: integer
          format: int64
          description: optional preview result limit appended when pipeline has no terminal $limit
    MongoInsertRequest:
      type: object
      properties:
        document:
          type: object
          description: single document to insert
        documents:
          type: array
          items:
            type: object
          description: low-batch documents to insert
    MongoWriteResponse:
      type: object
      properties:
        insertedCount:
          type: integer
          format: int64
        insertedIds:
          type: array
          items: {}
    MongoUpdateRequest:
      type: object
      properties:
        filter:
          type: object
          description: document selector
        update:
          type: object
          description: update document
        upsert:
          type: boolean
          description: create document when no match exists
        many:
          type: boolean
          description: reserved for future bulk update; S1 rejects true
    MongoWriteResult:
      type: object
      properties:
        matchedCount:
          type: integer
          format: int64
        modifiedCount:
          type: integer
          format: int64
        deletedCount:
          type: integer
          format: int64
        insertedCount:
          type: integer
          format: int64
        upsertedCount:
          type: integer
          format: int64
        upsertedId:
          description: upserted document id
    MongoDeleteRequest:
      type: object
      properties:
        filter:
          type: object
          description: document selector
        many:
          type: boolean
          description: reserved for future bulk delete; S1 rejects true
    MongoReplaceRequest:
      type: object
      properties:
        filter:
          type: object
          description: document selector
        replacement:
          type: object
          description: replacement document
        upsert:
          type: boolean
          description: create document when no match exists
    MongoIndexInfo:
      type: object
      properties:
        name:
          type: string
        key:
          type: object
        type:
          type: string
        unique:
          type: boolean
        sparse:
          type: boolean
        ttl:
          type: integer
          format: int32
        size:
          type: integer
          format: int64
        usage:
          type: object
    MongoIndexOptions:
      type: object
      properties:
        name:
          type: string
        unique:
          type: boolean
        sparse:
          type: boolean
    MongoCreateIndexRequest:
      type: object
      properties:
        keys:
          type: object
          description: index key pattern
        options:
          $ref: '#/components/schemas/MongoIndexOptions'
    MongoSchemaField:
      type: object
      properties:
        name:
          type: string
        types:
          type: array
          items:
            type: string
        occurrence:
          type: number
          format: double
    MongoSchemaAnalysis:
      type: object
      properties:
        sampleSize:
          type: integer
          format: int64
        documentCount:
          type: integer
          format: int64
        fields:
          type: array
          items:
            $ref: '#/components/schemas/MongoSchemaField'
    MongoValidationInfo:
      type: object
      properties:
        validator:
          type: object
        validationLevel:
          type: string
        validationAction:
          type: string
    MongoSetValidationRequest:
      type: object
      properties:
        validator:
          type: object
        level:
          type: string
          description: validationLevel value
        action:
          type: string
          description: validationAction value
    MongoCreateViewRequest:
      type: object
      properties:
        name:
          type: string
          description: view name
        viewOn:
          type: string
          description: source collection name
        pipeline:
          type: array
          items:
            type: object
          description: read-only aggregation pipeline backing the view
        collation:
          type: object
          description: optional view collation
    MongoExplainRequest:
      type: object
      properties:
        database:
          type: string
          description: database name
        collection:
          type: string
          description: collection name
        filter:
          type: object
          description: query filter to explain
        sort:
          type: object
          description: sort specification
        pipeline:
          type: array
          items:
            type: object
          description: aggregation pipeline to explain
        collation:
          type: object
          description: MongoDB collation options
        maxTimeMS:
          type: integer
          format: int64
          description: maximum query execution time in milliseconds
        verbosity:
          type: string
          description: explain verbosity level (queryPlanner, executionStats, or allPlansExecution)
    MongoExplainResponse:
      type: object
      properties:
        queryPlanner:
          type: object
        executionStats:
          type: object
    MongoShellCreateSessionRequest:
      type: object
      properties:
        database:
          type: string
          description: optional initial database for the mongosh session
    MongoShellSession:
      type: object
      properties:
        sessionId:
          type: string
          description: shell session id
        prompt:
          type: string
          description: current mongosh prompt
        state:
          type: string
          description: session state
        createdAt:
          type: string
          description: creation time
        expiresAt:
          type: string
          description: expiration time
    MongoShellPromptResponse:
      type: object
      properties:
        prompt:
          type: string
          description: current mongosh prompt
    MongoShellEvaluateRequest:
      type: object
      required:
        - code
      properties:
        code:
          type: string
          description: mongosh input to evaluate
        timeoutMs:
          type: integer
          format: int64
          description: optional execution timeout in milliseconds
        maxOutputBytes:
          type: integer
          format: int64
          description: optional output cap in bytes
    MongoShellResult:
      type: object
      properties:
        type:
          description: mongosh result type
        printable:
          description: printable representation
        source:
          description: original source value when available
    MongoShellEvaluateResponse:
      type: object
      properties:
        result:
          $ref: '#/components/schemas/MongoShellResult'
        prints:
          type: array
          items:
            $ref: '#/components/schemas/MongoShellResult'
        prompt:
          type: string
          description: prompt after evaluation
        truncated:
          type: boolean
          x-omitempty: false
          description: whether output was truncated
    MongoShellCompletionsRequest:
      type: object
      properties:
        code:
          type: string
          description: current shell input
    MongoShellCompletionItem:
      type: object
      properties:
        completion:
          type: string
          description: completion text
    MongoShellCompletionsResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/MongoShellCompletionItem'
    MongoShellInterruptResponse:
      type: object
      properties:
        interrupted:
          type: boolean
          x-omitempty: false
          description: whether the current operation was interrupted
    DmsSession:
      type: object
      required:
        - user
        - host
      properties:
        id:
          type: integer
          description: numeric session ID, when the database exposes one that fits in int64
          format: int64
          nullable: true
        sessionId:
          type: string
          description: native session ID used by the terminate API; for Redis this is the numeric CLIENT LIST client id
          nullable: true
        user:
          type: string
          description: user name
        tenant:
          type: string
          description: tenant name
          nullable: true
        host:
          type: string
          description: client host information
        db:
          type: string
          description: database name
          nullable: true
        command:
          type: string
          description: current command
          nullable: true
        time:
          type: integer
          description: session duration time
          format: int64
          nullable: true
        state:
          type: string
          description: session state
          nullable: true
        info:
          type: string
          description: additional session information; for Redis this is a JSON object with the full CLIENT LIST entry
          nullable: true
        ip:
          type: string
          description: server ip
          nullable: true
        port:
          type: integer
          description: server port
          format: int64
          nullable: true
        protected:
          type: boolean
          description: whether the session is protected and don't allow to be killed
          x-omitempty: false
    DmsSessionList:
      type: array
      items:
        $ref: '#/components/schemas/DmsSession'
    ipWhitelist:
      description: whitelist
      properties:
        id:
          description: ID of the whitelist
          title: ID
          type: string
        name:
          description: Name of the whitelist
          title: Name
          type: string
        description:
          description: Description
          title: Description
          type: string
        addresses:
          items:
            type: string
          description: Whitelist IP Addresses
          title: Addresses
          type: array
        createdAt:
          description: |-
            CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.

            Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
        updatedAt:
          description: |-
            UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.

            Populated by the system. Read-only. Null for lists
          format: date-time
          type: string
      required:
        - id
        - name
        - addresses
      type: object
    ipWhitelistList:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          x-nullable: false
          description: Items is the list of whitelist objects in the Cluster
          items:
            $ref: '#/components/schemas/ipWhitelist'
    role:
      description: Role information
      type: object
      properties:
        name:
          description: The name of the role
          type: string
        type:
          description: The type of the role
          type: string
        description:
          $ref: '#/components/schemas/localizedDescription'
        createdAt:
          description: The time when the role was created. Read-Only
          format: date-time
          type: string
        updatedAt:
          description: The time when the role was updated. Read-Only
          format: date-time
          type: string
        displayName:
          $ref: '#/components/schemas/localizedDescription'
    roleList:
      description: RoleList is a list of Roles
      properties:
        items:
          description: Items is the list of Role objects in the list
          items:
            $ref: '#/components/schemas/role'
          type: array
      required:
        - items
      type: object
    roleCreate:
      description: Role create
      type: object
      properties:
        name:
          description: The name of the role
          type: string
        displayName:
          $ref: '#/components/schemas/localizedDescription'
        description:
          $ref: '#/components/schemas/localizedDescription'
      required:
        - name
    roleUpdate:
      description: Role update
      type: object
      properties:
        displayName:
          $ref: '#/components/schemas/localizedDescription'
        description:
          $ref: '#/components/schemas/localizedDescription'
    class:
      type: object
      required:
        - engine
        - mode
        - classType
      properties:
        engine:
          type: string
        code:
          type: string
        codeShort:
          type: string
        mode:
          type: string
        cpu:
          type: number
          multipleOf: 0.1
          minimum: 0.1
          format: double
        cpuRequest:
          type: number
          multipleOf: 0.1
          minimum: 0.1
          format: double
        cpuLimit:
          type: number
          multipleOf: 0.1
          minimum: 0.1
          format: double
        memory:
          type: number
          multipleOf: 0.1
          description: memory, unit is Gi
          minimum: 0.05
          format: double
        memoryRequest:
          type: number
          multipleOf: 0.1
          description: memory request, unit is Gi
          minimum: 0.05
          format: double
        memoryLimit:
          type: number
          multipleOf: 0.1
          description: memory limit, unit is Gi
          minimum: 0.05
          format: double
        component:
          type: string
        classType:
          type: string
    classType:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier for the class type.
        name:
          type: string
          pattern: ^[a-z0-9]{1,8}$
          description: Consists of lowercase English letters and numbers, 1-8 characters long. Used to add to the class type name.
        description:
          $ref: '#/components/schemas/localizedDescription'
        displayName:
          $ref: '#/components/schemas/localizedDescription'
        createdAt:
          type: string
          format: date-time
          description: Creation time.
    featurePreReleaseType:
      type: string
      description: Indicates the maturity level of a feature
      enum:
        - ALPHA
        - BETA
        - ''
        - DEPRECATED
    feature:
      properties:
        name:
          description: Name of a feature
          type: string
        enabled:
          description: The enablement state for the feature
          type: boolean
        preRelease:
          $ref: '#/components/schemas/featurePreReleaseType'
      required:
        - name
        - enabled
        - preRelease
      type: object
    featureList:
      description: A list of feature
      properties:
        items:
          description: The list of feature
          items:
            $ref: '#/components/schemas/feature'
          type: array
      required:
        - items
      type: object
    CPU:
      type: object
      properties:
        cpu_capacity:
          type: string
        cpu_capacity_max:
          type: string
        cpu_assigned:
          type: string
        cpu_assigned_max:
          type: string
    Memory:
      type: object
      properties:
        mem_capacity:
          type: string
        memory_limit:
          type: string
        mem_assigned:
          type: string
    LogDisk:
      type: object
      properties:
        log_disk_capacity:
          type: string
        log_disk_assigned:
          type: string
        log_disk_in_use:
          type: string
    DataDisk:
      type: object
      properties:
        data_disk_capacity:
          type: string
        data_disk_allocated:
          type: string
        data_disk_in_use:
          type: string
        data_disk_health_status:
          type: string
        data_disk_abnormal_time:
          type: string
    Tenant:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        mode:
          type: string
        create_at:
          type: string
        role:
          type: string
        primary_zone:
          type: string
        status:
          type: string
        primary_zone_proxy:
          type: string
        chart_set:
          type: string
        resource:
          type: string
        cpu:
          $ref: '#/components/schemas/CPU'
        memory:
          $ref: '#/components/schemas/Memory'
        log_disk:
          $ref: '#/components/schemas/LogDisk'
        data_disk:
          $ref: '#/components/schemas/DataDisk'
    TenantList:
      type: array
      description: result set of Tenant
      items:
        $ref: '#/components/schemas/Tenant'
    DmsObParameter:
      type: object
      required:
        - name
        - value
        - description
      properties:
        name:
          description: The name of the parameter
          type: string
        value:
          description: The value of the parameter
          type: string
        dataType:
          description: The type of the parameter value
          type: string
          x-omitempty: false
        description:
          description: The description of the parameter
          type: string
        enum:
          description: The value options of the parameter
          type: array
          x-omitempty: false
          items: {}
        maximum:
          description: The maximum value of the parameter
          type: string
        minimum:
          description: The minimum value of the parameter
          type: string
        immutable:
          description: Whether the parameter is an immutable parameter, immutable parameters cannot be modified
          type: boolean
        isVariable:
          description: Whether the parameter is variable or a parameter
          type: boolean
        editLevel:
          description: EditLevel represents the way the configuration item is modified.
          type: string
        readOnly:
          description: Whether the parameter is read-only
          type: boolean
          x-omitempty: false
    DmsParameterList:
      type: array
      items:
        $ref: '#/components/schemas/DmsObParameter'
    DmsObAlterParameter:
      type: object
      required:
        - parameter
        - isVariable
        - tenantName
        - mode
        - newValue
      properties:
        parameter:
          type: string
          description: parameter to alter
        newValue:
          type: string
          description: new value of parameter
        mode:
          type: string
          description: tenant mode
        tenantName:
          type: string
          description: tenant name
        isVariable:
          type: boolean
          description: whether the param is tenant variable or param
    recycleBinClusterListItem:
      description: information of kubeblocks cluster in recycle bin
      required:
        - cloudProvider
        - engine
        - environmentName
        - id
        - name
        - state
        - version
        - stoppedAt
      type: object
      properties:
        cloudProvider:
          description: Cloud Provider
          type: string
        cloudRegion:
          description: Cloud Provider
          type: string
        availabilityZones:
          title: Availability Zones
          description: Availability Zones
          items:
            type: string
          type: array
        displayName:
          description: Display name of cluster.
          type: string
        engine:
          description: Cluster Application Engine
          type: string
        mode:
          description: Cluster topology mode
          type: string
        environmentName:
          description: Environment Name
          type: string
        id:
          description: Cluster Recycle Bin ID
          type: string
        clusterId:
          description: Cluster ID
          type: string
        name:
          description: Name of cluster. Name must be unique within an Org
          type: string
        version:
          description: Cluster Application Version
          type: string
        classCode:
          description: Cluster main component classCode
          type: string
        storage:
          description: Cluster main component storage
          type: string
        orgName:
          description: Name of the Org
          type: string
        state:
          description: state represents whether the cluster has been deleted by a stop opsRequest, and therefore, whether it is in the recycle bin. It is differnt from the Status.Phase of the cluster in k8s.
          type: string
        stoppedAt:
          title: StoppedAt
          type: string
          description: 'StoppedAt is a timestamp representing the server time when this object was stopped and moved to the recycle bin. '
          format: date-time
        createdAt:
          title: CreatedAt
          type: string
          description: CreatedAt is a timestamp representing the server time when this object was created.
          format: date-time
        expiredAt:
          title: ExpiredAt
          type: string
          description: ExpiredAt is a timestamp representing the server time when this object will be expired, and deleted automatically.
          format: date-time
    recycleBinClusterList:
      description: recycleBinClusterList is a list of KubeBlocks clusters in the recycle bin
      properties:
        items:
          description: Items is the KubeBlocks cluster objects in the recycleBinClusterList
          items:
            $ref: '#/components/schemas/recycleBinClusterListItem'
          type: array
      required:
        - items
      type: object
    recycleBinCluster:
      required:
        - engine
        - environmentName
        - name
      type: object
      properties:
        id:
          title: ID
          type: string
          description: Cluster Recycle Bin ID
        clusterId:
          title: Cluster ID
          type: string
          description: Cluster ID
        orgName:
          title: Org Name
          type: string
          description: Org Name
        cloudProvider:
          title: Cloud Provider
          type: string
          description: Cloud Provider
        environmentId:
          title: Environment ID
          type: string
          description: ID of the environment
        environmentName:
          title: Environment Name
          type: string
          description: Environment Name
        environmentType:
          title: Environment Type
          type: string
          description: Environment Types
        cloudRegion:
          title: Cloud Region
          type: string
          description: Cloud Region
        namespace:
          title: Environment Namespace
          type: string
          default: kubeblocks-cloud-ns
          description: Environment Namespace
        name:
          title: Name
          type: string
          description: Name of cluster. Name must be unique within an Org
        hash:
          title: Hash
          type: string
          description: Hash of cluster. Name must be unique within an Org
        engine:
          title: Engine
          type: string
          description: Cluster Application Engine
        values:
          type: object
          additionalProperties: true
          description: Values
        version:
          title: Version
          type: string
          description: Cluster Application Version
        replicas:
          title: Replicas
          type: integer
          description: The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3.
        cpu:
          title: CPU
          type: number
          description: CPU cores.
          format: double
        memory:
          title: Memory(Gi)
          type: number
          description: Memory, the unit is Gi.
          format: double
        storage:
          title: Storage(Gi)
          minimum: 1
          type: number
          description: Storage size, the unit is Gi.
          format: double
        status:
          title: Status
          type: string
          description: status represents the actual status of the cluster in k8s, it is different from the state of the cluster in recycle bin, which means whether the cluster has been deleted by a stop opsRequest.
        state:
          title: state
          type: string
          description: state represents whether the cluster has been deleted by a stop opsRequest, and therefore, whether it is in the recycle bin. It is differnt from the Status of the cluster undeleted.
        mode:
          title: Mode
          type: string
          description: Cluster topology mode
        components:
          $ref: '#/components/schemas/components'
        singleZone:
          title: Single availability zones
          description: Use single availability zones
          type: boolean
          default: false
        availabilityZones:
          title: Availability Zones
          description: Availability Zones
          items:
            type: string
          type: array
        backup:
          description: Set cluster backup
          $ref: '#/components/schemas/clusterBackup'
        stoppedAt:
          title: StoppedAt
          type: string
          description: 'StoppedAt is a timestamp representing the server time when this object was stopped and moved to the recycle bin. '
          format: date-time
        createdAt:
          title: CreatedAt
          type: string
          description: CreatedAt is a timestamp representing the server time when this object was created.
          format: date-time
        expiredAt:
          title: ExpiredAt
          type: string
          description: ExpiredAt is a timestamp representing the server time when this object will be expired, and deleted automatically.
          format: date-time
      description: KubeBlocks cluster(in recycle bin) information
    projectItem:
      description: Project item.
      type: object
      required:
        - name
        - createdAt
        - clusterTotal
        - status
      properties:
        name:
          type: string
          description: The name of the project.
        clusterTotal:
          type: integer
          description: The total number of clusters in the project.
        createdAt:
          type: string
          format: date-time
          description: The time the project was created.
        status:
          type: string
          description: The status of project.
        description:
          type: string
          description: The description of the project.
    projectList:
      description: Project list.
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/projectItem'
          description: The list of projects.
    disasterRecoveryTask:
      description: Task information of disasterRecovery job
      properties:
        logicalInstanceID:
          description: Logical instance ID
          type: string
          nullable: true
        taskId:
          description: Task ID
          type: string
          nullable: true
      required:
        - taskId
      type: object
    taskSummary:
      type: object
      properties:
        taskType:
          type: string
          description: Type of task operation
        progress:
          type: integer
          description: Progress percentage of the task
          minimum: 0
          maximum: 100
        message:
          type: string
          description: Detailed message about the task status
          x-nullable: true
    disasterRecoveryClusterItem:
      description: DisasterRecovery cluster information
      properties:
        logicalInstanceID:
          description: Logical instance ID
          type: string
        cluster:
          $ref: '#/components/schemas/clusterListItem'
        taskSummary:
          $ref: '#/components/schemas/taskSummary'
      type: object
    disasterRecoveryClusterList:
      description: disasterRecoveryClusterList is a list of disaster recovery clusters
      properties:
        items:
          description: Items is the list of disaster recovery cluster objects in the list
          items:
            $ref: '#/components/schemas/disasterRecoveryClusterItem'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    disasterRecoveryCreate:
      description: DisasterRecoveryCreate is the description to create a DisasterRecovery cluster
      properties:
        cluster:
          $ref: '#/components/schemas/clusterCreate'
      required:
        - cluster
      type: object
    disasterRecoveryPromote:
      description: the Promote object for disasterRecovery instance
      properties:
        mode:
          description: the mode of cluster after promotion. default is the primary cluster's mode
          type: string
          nullable: true
        reason:
          description: the reason for promoting
          type: string
      type: object
    disasterRecoveryEventType:
      description: 'the event type of disasterRecovery history, support values: [CreateInstance, DeleteInstance, Promote]'
      enum:
        - CreateInstance
        - DeleteInstance
        - Promote
      type: string
      nullable: true
    disasterRecoveryStatus:
      default: Pending
      description: 'the status of promote event, support values: [Pending, Succeed, Failed, Running, Unknown]'
      enum:
        - Pending
        - Succeed
        - Failed
        - Running
        - Unknown
      type: string
      nullable: true
    disasterRecoveryHistoryItem:
      description: DisasterRecovery history detail for Cluster
      properties:
        taskID:
          description: the ID of disaster recovery task in TaskFlow
          type: string
          nullable: true
        parentClusterID:
          description: the ID of parent cluster
          type: string
          nullable: true
        parentClusterName:
          description: the Name of parent cluster
          type: string
          nullable: true
        parentEnvName:
          description: parent env name
          type: string
          nullable: true
        clusterID:
          description: the ID of promote cluster
          type: string
          nullable: true
        clusterName:
          description: the Name of promote cluster
          type: string
          nullable: true
        envName:
          description: env name
          type: string
          nullable: true
        eventType:
          $ref: '#/components/schemas/disasterRecoveryEventType'
        reason:
          description: the reason of promote
          type: string
          nullable: true
        operator:
          description: the operator name
          type: string
        operatorId:
          description: the user ID of the operator
          type: string
        createdAt:
          description: the create time of promote event
          type: string
          format: date-time
        updateAt:
          description: the update time of promote event
          type: string
          format: date-time
        status:
          $ref: '#/components/schemas/disasterRecoveryStatus'
      type: object
    disasterRecoveryHistory:
      description: DisasterRecovery history for Cluster
      properties:
        items:
          description: Items is the list of DisasterRecovery logs
          items:
            $ref: '#/components/schemas/disasterRecoveryHistoryItem'
          type: array
      required:
        - items
      type: object
    disasterRecoveryStatusResponse:
      description: Status of the Disaster Recovery instance
      properties:
        clusterId:
          title: Cluster ID
          type: string
          description: Unique identifier for the cluster
        clusterName:
          title: Cluster Name
          type: string
          nullable: true
          description: Name of the cluster
        displayName:
          title: Display Name
          type: string
          nullable: true
          description: User-friendly name of the cluster
        status:
          title: Status
          type: string
          nullable: true
          description: Current operational status of the cluster
        parentId:
          title: Parent Cluster ID
          type: string
          description: ID of the parent cluster, if applicable; can be empty if there is no parent relationship
        parentName:
          title: Parent Cluster Name
          type: string
          nullable: true
          description: Name of the parent cluster
        parentDisplayName:
          title: Parent Cluster Display Name
          type: string
          nullable: true
          description: User-friendly name of the parent cluster
        parentStatus:
          title: Parent Cluster Status
          type: string
          nullable: true
          description: Current operational status of the parent cluster
        delay:
          title: Delay
          type: number
          format: double
          nullable: true
          description: Delay time in seconds
        currentReplicationPoint:
          title: Current Replication Point
          type: string
          nullable: true
          description: Current replication point for the disaster recovery instance
      required:
        - clusterId
        - parentId
      type: object
    availableClusterList:
      type: array
      items:
        type: object
        properties:
          id:
            type: string
            description: ID of the cluster
          name:
            type: string
            description: Name of the cluster
          displayName:
            type: string
            description: Display name of the cluster
          clusterType:
            type: string
    relatedClusterListItem:
      type: object
      x-nullable: true
      description: the simplified cluster info for relation
      required:
        - id
        - name
        - clusterDefinition
        - version
        - mode
        - status
        - environmentName
        - resource
        - storage
        - createdAt
      properties:
        id:
          type: string
          description: ID of the cluster
        name:
          type: string
          description: Name of the cluster
        clusterDefinition:
          type: string
          description: Type of the cluster
        version:
          type: string
        mode:
          type: string
        status:
          type: string
        environmentName:
          type: string
          description: Name of the environment
        resource:
          type: string
          description: Resource of the cluster
        storage:
          type: string
        createdAt:
          type: string
          format: date-time
          description: Time when the cluster was created
        proxyUrl:
          type: string
          description: Proxy URL of the cluster
    relatedClusterList:
      type: array
      items:
        $ref: '#/components/schemas/relatedClusterListItem'
    computeGroupMember:
      type: object
      properties:
        id:
          type: string
          description: Engine-native member identifier.
        host:
          type: string
        port:
          type: integer
          format: int64
        alive:
          type: boolean
          x-omitempty: false
    computeGroupBackend:
      type: object
      properties:
        id:
          type: string
          description: Opaque backend ID; do not convert to a JavaScript number.
        host:
          type: string
        heartbeatPort:
          type: integer
          format: int64
        alive:
          type: boolean
        decommissioned:
          type: boolean
        tabletCount:
          type: integer
          format: int64
        lastHeartbeat:
          type: string
        version:
          type: string
        errorMessage:
          type: string
    computeGroup:
      type: object
      properties:
        name:
          type: string
        componentName:
          type: string
        managed:
          type: boolean
        isDefault:
          type: boolean
        phase:
          type: string
          description: Kubernetes component phase, independent of engine membership.
        stopped:
          type: boolean
        replicas:
          type: integer
          format: int64
        classCode:
          type: string
        cpu:
          type: number
        memory:
          type: number
        memberCount:
          type: integer
          format: int64
          x-nullable: true
          description: Number of registered members.
        aliveMemberCount:
          type: integer
          format: int64
          x-nullable: true
          description: Number of members reported online by the engine.
        members:
          type: array
          x-omitempty: true
          items:
            $ref: '#/components/schemas/computeGroupMember'
        computeGroupEnabled:
          type: boolean
          default: true
          x-nullable: true
          description: Whether the component is configured as a native compute group; task completion reports convergence.
        backendCount:
          type: integer
          format: int64
        aliveBackendCount:
          type: integer
          format: int64
        defaultUsers:
          type: array
          items:
            type: string
        backends:
          type: array
          items:
            $ref: '#/components/schemas/computeGroupBackend'
        allowedActions:
          type: array
          items:
            type: string
    computeGroupList:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/computeGroup'
        managementSupported:
          type: boolean
        unsupportedReason:
          type: string
    computeGroupCreate:
      type: object
      required:
        - name
        - replicas
        - classCode
      properties:
        name:
          type: string
          pattern: ^[A-Za-z][A-Za-z0-9_]{0,63}$
        replicas:
          type: integer
          format: int64
          minimum: 1
          maximum: 1000
        classCode:
          type: string
          minLength: 1
          maxLength: 128
      additionalProperties: false
    computeGroupEnable:
      type: object
      required:
        - componentName
        - name
      properties:
        componentName:
          type: string
          minLength: 1
          description: Existing compute component to enable.
        name:
          type: string
          pattern: ^[A-Za-z][A-Za-z0-9_]{0,63}$
          description: Target compute group name. An enabled component cannot be renamed.
      additionalProperties: false
    computeGroupScale:
      type: object
      properties:
        replicas:
          x-nullable: true
          type: integer
          format: int64
          minimum: 1
          maximum: 1000
        classCode:
          type: string
          minLength: 1
          maxLength: 128
      additionalProperties: false
    computeGroupAccount:
      type: object
      properties:
        identity:
          type: string
        accountName:
          type: string
        manageable:
          type: boolean
        globalGrants:
          type: string
        computeGrants:
          type: string
        roles:
          type: string
        isDefault:
          type: boolean
      description: Grants reported by the engine can include role inheritance. Revoking a direct grant does not remove inherited permissions.
    computeGroupAccountList:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/computeGroupAccount'
    Broker:
      x-go-name: KafkaBroker
      type: object
      properties:
        id:
          type: integer
          format: int32
          x-omitempty: false
        host:
          type: string
        port:
          type: integer
          x-omitempty: false
        leaderPartitions:
          type: array
          items:
            type: integer
        followerPartitions:
          type: array
          items:
            type: integer
    BrokerList:
      x-go-name: KafkaBrokerList
      type: array
      items:
        $ref: '#/components/schemas/Broker'
        nullable: true
    ConfigEntry:
      x-go-name: KafkaConfigEntry
      type: object
      properties:
        name:
          type: string
          x-omitempty: false
        value:
          type: string
          x-omitempty: false
        isDefault:
          type: boolean
          description: Whether the configuration is the default value
          x-omitempty: false
        readOnly:
          type: boolean
          x-omitempty: false
        sensitive:
          type: boolean
          description: Whether the configuration is sensitive
          x-omitempty: false
        description:
          type: string
          description: Configuration description
          x-omitempty: false
        validValues:
          type: array
          items:
            type: string
          description: Valid values for the configuration
          x-omitempty: true
        type:
          type: string
          description: Configuration type
          x-omitempty: true
    ConfigList:
      x-go-name: KafkaConfigList
      type: array
      items:
        $ref: '#/components/schemas/ConfigEntry'
        nullable: true
    UpdateBrokerConfigRequest:
      x-go-name: KafkaBrokerConfigUpdate
      type: object
      properties:
        configs:
          type: object
          additionalProperties:
            type: string
    Topic:
      x-go-name: KafkaTopic
      type: object
      required:
        - name
      properties:
        name:
          type: string
          x-omitempty: false
        partitionsCount:
          type: integer
          format: int32
          x-omitempty: false
        consumerGroupsCount:
          type: integer
          format: int32
          x-omitempty: false
        replicaCount:
          type: integer
          format: int32
          x-omitempty: false
        TotalLogSize:
          type: integer
          format: int64
          x-omitempty: false
        internal:
          type: boolean
          description: show if the topic is internal topic
          x-omitempty: false
    TopicsList:
      x-go-name: KafkaTopicsList
      type: array
      items:
        $ref: '#/components/schemas/Topic'
        nullable: true
    CreateTopicRequest:
      x-go-name: KafkaTopicCreation
      type: object
      properties:
        name:
          type: string
        partitions:
          type: integer
          format: int32
          minimum: 1
        replicationFactor:
          type: integer
          format: int32
          minimum: 1
      required:
        - name
        - partitions
        - replicationFactor
    PartitionInfo:
      x-go-name: KafkaPartitionInfo
      type: object
      properties:
        id:
          type: integer
          format: int32
          x-omitempty: false
        beginningOffset:
          type: integer
          format: int64
          x-omitempty: false
        endOffset:
          type: integer
          format: int64
          x-omitempty: false
    TopicDetails:
      x-go-name: KafkaTopicDetails
      type: object
      required:
        - name
      properties:
        name:
          type: string
          x-omitempty: false
        internal:
          type: boolean
          x-omitempty: false
        replicaCount:
          type: integer
          format: int32
          x-omitempty: false
          description: the replica count of the topic
        partitions:
          type: array
          items:
            $ref: '#/components/schemas/PartitionInfo'
            nullable: true
        totalLogSize:
          type: integer
          format: int64
          x-omitempty: false
    TopicBrokerList:
      x-go-name: KafkaTopicBrokerList
      type: array
      items:
        $ref: '#/components/schemas/Broker'
        nullable: true
    brokerNode:
      x-go-name: kafkaNode
      type: object
      properties:
        id:
          type: integer
          format: int32
          x-omitempty: false
        host:
          type: string
          x-omitempty: false
        port:
          type: integer
          format: int32
          x-omitempty: false
        logSize:
          type: integer
          format: int64
          x-omitempty: false
    Partition:
      x-go-name: KafkaPartition
      type: object
      required:
        - id
        - leader
      properties:
        id:
          type: integer
          format: int32
          x-omitempty: false
        leader:
          $ref: '#/components/schemas/brokerNode'
        replicas:
          type: array
          items:
            $ref: '#/components/schemas/brokerNode'
        isr:
          type: array
          items:
            $ref: '#/components/schemas/brokerNode'
          description: In-Sync Replicas
        beginningOffset:
          type: integer
          format: int64
          x-omitempty: false
        endOffset:
          type: integer
          format: int64
          x-omitempty: false
    PartitionList:
      x-go-name: KafkaPartitionList
      type: array
      items:
        $ref: '#/components/schemas/Partition'
        nullable: true
    ExpandPartitionRequest:
      type: object
      required:
        - newPartitions
      properties:
        newPartitions:
          type: integer
          format: int32
    UpdateTopicConfigRequest:
      type: object
      properties:
        configs:
          type: object
          additionalProperties:
            type: string
    ConsumerGroup:
      x-go-name: KafkaConsumerGroup
      x-nullable: true
      type: object
      properties:
        groupId:
          type: string
          x-omitempty: false
        state:
          type: string
          x-omitempty: false
        lag:
          type: integer
          format: int64
          x-omitempty: false
        topics:
          type: array
          items:
            type: string
          x-omitempty: false
    ConsumerGroupList:
      x-go-name: KafkaConsumerGroupList
      type: array
      items:
        $ref: '#/components/schemas/ConsumerGroup'
        nullable: true
    TopicOffset:
      type: object
      x-nullable: true
      properties:
        topic:
          type: string
          description: 主题名称
        partition:
          type: integer
          format: int32
          description: 分区号
          x-omitempty: false
        consumerOffset:
          type: integer
          format: int64
          nullable: true
          description: 消费者组当前消费位置
        beginningOffset:
          type: integer
          format: int64
          nullable: true
          description: 分区最早消息的偏移量
        endOffset:
          type: integer
          format: int64
          nullable: true
          description: 分区最新消息的下一个偏移量
        groupId:
          type: string
          description: 消费者组ID
          x-omitempty: false
    TopicOffsetList:
      x-go-name: KafkaTopicOffsetList
      type: array
      items:
        $ref: '#/components/schemas/TopicOffset'
        nullable: true
    OffsetResetStrategy:
      type: string
      enum:
        - EARLIEST
        - LATEST
        - TIMESTAMP
        - ABSOLUTE
    ResetOffsetRequest:
      type: object
      properties:
        partition:
          type: integer
          format: int32
          description: the partition to reset
          x-omitempty: false
        seek:
          $ref: '#/components/schemas/OffsetResetStrategy'
          description: the seek strategy
          x-nullable: true
          x-omitempty: false
        offset:
          type: integer
          format: int64
          description: the offset to reset to
          x-omitempty: false
    TopicMessage:
      x-go-name: KafkaTopicMessage
      type: object
      properties:
        topic:
          type: string
          description: 消息所属的主题
          x-omitempty: false
        partition:
          type: integer
          format: int32
          description: 消息所在的分区号
          x-omitempty: false
        offset:
          type: integer
          format: int64
          description: 消息在分区中的偏移量
          x-omitempty: false
        timestamp:
          type: integer
          format: int64
          description: 消息的时间戳
          x-omitempty: false
        key:
          type: string
          description: 消息的key
          x-omitempty: false
        value:
          type: string
          description: 消息的内容
          x-omitempty: false
    TopicMessageList:
      x-go-name: KafkaTopicMessageList
      type: array
      items:
        $ref: '#/components/schemas/TopicMessage'
        nullable: true
    TopicMessageRequest:
      type: object
      x-go-name: KafkaTopicMessageRequest
      properties:
        partition:
          type: integer
          format: int32
          description: 指定消息将被发送到的Kafka分区
          example: 0
          x-omitempty: false
        key:
          type: string
          description: 消息的键（可选）
          x-omitempty: false
        value:
          type: string
          description: 消息的实际内容
          x-omitempty: false
    ConsumerGroupDescribe:
      x-go-name: KafkaConsumerGroupDescribe
      x-nullable: true
      type: object
      properties:
        groupId:
          type: string
          description: Consumer group ID
          x-omitempty: false
        topic:
          type: string
          description: Topic name
          x-omitempty: false
        partition:
          type: integer
          description: Partition number
          format: int32
          x-omitempty: false
        currentOffset:
          type: integer
          format: int64
          description: Current offset position of the consumer group
          x-omitempty: false
        logBeginningOffset:
          type: integer
          format: int64
          description: The earliest message offset in this partition
          x-omitempty: false
        logEndOffset:
          type: integer
          format: int64
          description: The next offset after the latest message in this partition
          x-omitempty: false
        lag:
          type: integer
          format: int64
          description: Consumer lag
          x-omitempty: false
        consumerId:
          type: string
          description: Consumer ID, unique identifier automatically generated by Kafka
          x-omitempty: false
        host:
          type: string
          description: Consumer host address
          x-omitempty: false
        clientId:
          type: string
          description: Consumer client ID
          x-omitempty: false
    ConsumerGroupDescribeResponse:
      x-go-name: KafkaConsumerGroupDescribeResponse
      type: array
      items:
        $ref: '#/components/schemas/ConsumerGroupDescribe'
        nullable: true
    accountListRoleType:
      description: The user role name, should be one of [ROOT, SUPERUSER, BASICUSER].
      enum:
        - SUPERUSER
        - BASICUSER
        - ROOT
      type: string
    privilegeType:
      title: privilegeType
      description: The type of privilege.
      type: string
      enum:
        - DBADMIN
        - READWRITE
        - READONLY
        - DDLONLY
        - DMLONLY
        - ADMIN
        - DBA
        - USER
        - GUEST
    privilegeListItem:
      type: object
      description: Database and its assigned privileges.
      properties:
        databaseName:
          title: databaseName
          type: string
          description: The name of the database.
        privileges:
          $ref: '#/components/schemas/privilegeType'
      required:
        - privileges
    privilegeList:
      type: array
      items:
        $ref: '#/components/schemas/privilegeListItem'
      description: A list of privileges and their databases.
    accountListItem:
      description: Cluster account information.
      properties:
        component:
          description: Component type.
          type: string
        name:
          description: The name of user.
          type: string
        password:
          description: The password of user.
          type: string
        role:
          $ref: '#/components/schemas/accountListRoleType'
        privilegesList:
          description: privileges of databases of cluster
          title: privilegesList
          $ref: '#/components/schemas/privilegeList'
        extra:
          description: extra information of account
          type: object
          additionalProperties: {}
      required:
        - name
      type: object
    accountList:
      items:
        $ref: '#/components/schemas/accountListItem'
      type: array
    accountRoleType:
      default: SUPERUSER
      description: Role name should be one of [BASICUSER, SUPERUSER, ROOT].
      enum:
        - SUPERUSER
        - BASICUSER
        - ROOT
      title: role
      type: string
    account:
      description: Cluster account information
      properties:
        privilegesList:
          description: privileges of databases of cluster
          title: privilegesList
          $ref: '#/components/schemas/privilegeList'
        component:
          description: Specify the name of component to be connected. If not specified, pick the first one.
          title: component
          type: string
        instance:
          description: Specify the name of instance to be connected.
          title: instance
          type: string
        name:
          description: Specify the name of user, which must be unique.
          title: name
          type: string
        password:
          description: Specify the password of user. The default value is empty, which means a random password will be generated.
          title: password
          type: string
        role:
          $ref: '#/components/schemas/accountRoleType'
        extra:
          description: extra information of account
          type: object
          additionalProperties: {}
      required:
        - name
        - role
      type: object
    redisPrivilegeType:
      description: Redis user privileges
      enum:
        - READWRITE
        - READONLY
        - CUSTOM
      type: string
    ACLUser:
      x-go-name: RedisACLUser
      type: object
      x-nullable: true
      properties:
        role:
          $ref: '#/components/schemas/accountListRoleType'
        privileges:
          $ref: '#/components/schemas/redisPrivilegeType'
        name:
          type: string
          description: ACL user name
        enabled:
          type: boolean
          description: Whether the user is enabled
          x-omitempty: false
        nopass:
          type: boolean
          description: Whether the user requires no password
          x-omitempty: false
        passwords:
          type: array
          items:
            type: string
          description: List of plain text passwords
        password_hashes:
          type: array
          items:
            type: string
          description: List of hashed passwords
        passwords_to_remove:
          type: array
          items:
            type: string
          description: List of passwords to be removed
        password_hashes_to_remove:
          type: array
          items:
            type: string
          description: List of password hashes to be removed
        acl_rules:
          type: string
          description: Custom ACL rules
          x-omitempty: true
      required:
        - name
        - role
    ACLUserResponse:
      x-go-name: RedisACLUserResponse
      type: object
      properties:
        mode:
          type: string
        master:
          x-omitempty: true
          type: array
          items:
            $ref: '#/components/schemas/ACLUser'
            nullable: true
        sentinel:
          x-omitempty: true
          type: array
          items:
            $ref: '#/components/schemas/ACLUser'
            nullable: true
    ESSecurityUser:
      type: object
      properties:
        roles:
          type: array
          items:
            type: string
        full_name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        metadata:
          type: object
          additionalProperties: true
        enabled:
          type: boolean
          nullable: true
    ESSecurityUsers:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/ESSecurityUser'
    ESPutSecurityUserRequest:
      type: object
      properties:
        password:
          type: string
          nullable: true
        password_hash:
          type: string
          nullable: true
        roles:
          type: array
          items:
            type: string
        full_name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        metadata:
          type: object
          additionalProperties: true
        enabled:
          type: boolean
          nullable: true
      required:
        - roles
    ESSecurityPasswordRequest:
      type: object
      properties:
        password:
          type: string
      required:
        - password
    ESSecurityFieldSecurity:
      type: object
      properties:
        grant:
          type: array
          x-omitempty: true
          items:
            type: string
        except:
          type: array
          x-omitempty: true
          items:
            type: string
    ESSecurityIndexPrivileges:
      type: object
      properties:
        names:
          type: array
          items:
            type: string
        privileges:
          type: array
          items:
            type: string
        field_security:
          $ref: '#/components/schemas/ESSecurityFieldSecurity'
        query:
          type: string
          nullable: true
        allow_restricted_indices:
          type: boolean
          nullable: true
      required:
        - names
        - privileges
    ESSecurityRemoteIndexPrivileges:
      type: object
      properties:
        clusters:
          type: array
          items:
            type: string
        names:
          type: array
          items:
            type: string
        privileges:
          type: array
          items:
            type: string
        field_security:
          $ref: '#/components/schemas/ESSecurityFieldSecurity'
        query:
          type: string
          nullable: true
        allow_restricted_indices:
          type: boolean
          nullable: true
      required:
        - clusters
        - names
        - privileges
    ESSecurityRemoteClusterPrivileges:
      type: object
      properties:
        clusters:
          type: array
          items:
            type: string
        privileges:
          type: array
          items:
            type: string
      required:
        - clusters
        - privileges
    ESSecurityApplicationPrivileges:
      type: object
      properties:
        application:
          type: string
          x-omitempty: true
        privileges:
          type: array
          x-omitempty: true
          items:
            type: string
        resources:
          type: array
          x-omitempty: true
          items:
            type: string
    ESSecurityRoleDescriptor:
      type: object
      properties:
        description:
          type: string
          nullable: true
        cluster:
          type: array
          x-omitempty: true
          items:
            type: string
        global:
          type: object
          additionalProperties: true
        indices:
          type: array
          x-omitempty: true
          items:
            $ref: '#/components/schemas/ESSecurityIndexPrivileges'
        remote_indices:
          type: array
          x-omitempty: true
          items:
            $ref: '#/components/schemas/ESSecurityRemoteIndexPrivileges'
        remote_cluster:
          type: array
          x-omitempty: true
          items:
            $ref: '#/components/schemas/ESSecurityRemoteClusterPrivileges'
        applications:
          type: array
          x-omitempty: true
          items:
            $ref: '#/components/schemas/ESSecurityApplicationPrivileges'
        run_as:
          type: array
          x-omitempty: true
          items:
            type: string
        metadata:
          type: object
          additionalProperties: true
        restriction:
          type: object
          additionalProperties: true
        transient_metadata:
          type: object
          additionalProperties: true
    ESSecurityRoles:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/ESSecurityRoleDescriptor'
    ESSecurityRoleTemplateFormat:
      type: string
      enum:
        - string
        - json
    ESSecurityRoleTemplate:
      type: object
      properties:
        template:
          type: object
          additionalProperties: true
        format:
          $ref: '#/components/schemas/ESSecurityRoleTemplateFormat'
          nullable: true
      required:
        - template
    ESSecurityRoleMapping:
      type: object
      description: Native Elasticsearch security role mapping. At least one of roles or role_templates must be non-empty.
      properties:
        enabled:
          type: boolean
          nullable: true
        roles:
          type: array
          x-omitempty: true
          items:
            type: string
        role_templates:
          type: array
          x-omitempty: true
          items:
            $ref: '#/components/schemas/ESSecurityRoleTemplate'
        rules:
          type: object
          additionalProperties: true
        metadata:
          type: object
          additionalProperties: true
      required:
        - enabled
        - rules
    ESSecurityRoleMappings:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/ESSecurityRoleMapping'
    ESBuiltinPrivileges:
      type: object
      additionalProperties:
        type: array
        items:
          type: string
    CkAccountType:
      type: string
      description: The account role type.
      enum:
        - SUPERUSER
        - BASICUSER
        - ROOT
    CkAccount:
      type: object
      description: A ClickHouse account.
      properties:
        name:
          type: string
          description: The account (user) name.
        hostIp:
          type: array
          description: Host IPs the account is allowed to log in from.
          items:
            type: string
        hostNames:
          type: array
          description: Host names the account is allowed to log in from.
          items:
            type: string
        roles:
          type: string
          description: Roles granted to the account, separated by commas.
        type:
          $ref: '#/components/schemas/CkAccountType'
    OracleTablespaceFile:
      type: object
      required:
        - id
        - name
        - status
        - allocatedSizeMB
        - usedSizeMB
        - autoExtend
        - nextSizeMB
        - maxSizeMB
      properties:
        id:
          type: integer
          format: int64
        name:
          type: string
        status:
          type: string
        allocatedSizeMB:
          type: number
          format: double
        usedSizeMB:
          type: number
          format: double
        autoExtend:
          type: boolean
        nextSizeMB:
          type: number
          format: double
        maxSizeMB:
          type: number
          format: double
    OracleTablespace:
      type: object
      description: Oracle tablespace in the datasource connection's current container. Sizes are in MiB. Supports Oracle 12c and 19c.
      required:
        - name
        - contents
        - status
        - bigfile
        - blockSize
        - containerName
        - isDefault
        - allocatedSizeMB
        - usedSizeMB
        - maxSizeMB
        - files
      properties:
        name:
          type: string
        contents:
          type: string
          description: PERMANENT, TEMPORARY, or UNDO.
        status:
          type: string
        bigfile:
          type: boolean
        blockSize:
          type: integer
          format: int64
        containerName:
          type: string
        isDefault:
          type: boolean
          description: Whether this is a default permanent or temporary tablespace, including default temporary group members.
        allocatedSizeMB:
          type: number
          format: double
        usedSizeMB:
          type: number
          format: double
          description: Allocated file space minus free extents, or temporary file space currently allocated to temporary segments.
        maxSizeMB:
          type: number
          format: double
          description: Configured file growth limit; does not imply available disk capacity.
        files:
          type: array
          items:
            $ref: '#/components/schemas/OracleTablespaceFile'
    OracleTablespaceContents:
      type: string
      enum:
        - PERMANENT
        - TEMPORARY
      description: New tablespaces default to PERMANENT when omitted.
    OracleTablespaceFileSpec:
      type: object
      required:
        - sizeMB
      properties:
        name:
          type: string
          description: Absolute database-server file path or ASM destination. Omit to use Oracle Managed Files (DB_CREATE_FILE_DEST must be configured). Existing files are never reused.
          maxLength: 1024
        sizeMB:
          type: integer
          format: int64
          minimum: 1
        autoExtend:
          type: boolean
          default: false
        nextSizeMB:
          type: integer
          format: int64
          minimum: 0
          description: Required positive increment when autoExtend is true; otherwise omit.
        maxSizeMB:
          type: integer
          format: int64
          minimum: 0
          description: Maximum size when autoExtend is true; zero or omitted means UNLIMITED. Otherwise omit.
    OracleTablespaceCreate:
      type: object
      required:
        - name
        - files
      properties:
        name:
          type: string
          pattern: ^[A-Za-z][A-Za-z0-9_$#]{0,29}$
          description: Converted to uppercase. Limited to 30 ASCII bytes for compatibility with Oracle 12.1.
        contents:
          $ref: '#/components/schemas/OracleTablespaceContents'
        bigfile:
          type: boolean
          default: false
        files:
          type: array
          minItems: 1
          description: Exactly one file for BIGFILE tablespaces.
          items:
            $ref: '#/components/schemas/OracleTablespaceFileSpec'
    OracleTablespaceExpandAction:
      type: string
      enum:
        - resize
        - addFile
    OracleTablespaceExpand:
      type: object
      description: One DDL operation per request. Use resize with fileId and sizeMB, or addFile with file. Shrinking and adding files to BIGFILE tablespaces are rejected.
      required:
        - action
      properties:
        action:
          $ref: '#/components/schemas/OracleTablespaceExpandAction'
        fileId:
          type: integer
          format: int64
          minimum: 1
        sizeMB:
          type: integer
          format: int64
          minimum: 1
        file:
          $ref: '#/components/schemas/OracleTablespaceFileSpec'
    DmFile:
      type: object
      required:
        - name
      properties:
        id:
          type: string
          description: the id of this file
        name:
          type: string
          description: the name of this file
        autoExtend:
          type: boolean
          description: whether this file auto extend
        allocatedSizeMB:
          type: string
          description: the size already allocated of this file, unit MB
        usedSizeMB:
          type: string
          description: the current used size of this file, unit MB
        usedRatio:
          type: string
          description: the current used ratio of this file
        extendStepMB:
          type: string
          description: the extend step of this file, unit MB
        maxSizeMB:
          type: string
          description: the max size of this file, unit MB
        usedRatioInMax:
          type: string
          description: the used ratio in the max size of this file
    tableSpaceStatus:
      type: string
      description: the status of this tablespace
      enum:
        - ONLINE
        - OFFLINE
        - CORRUPT
    DmTablespace:
      type: object
      required:
        - name
        - files
      properties:
        name:
          type: string
          description: tablespace name
        users:
          type: string
          description: damengdb users belong to this tablespace
        files:
          type: array
          items:
            $ref: '#/components/schemas/DmFile'
          description: the physical files of this tablespace
        allocatedSizeMB:
          type: string
          description: the total size already allocated of this tablespace, unit MB
        usedSizeMB:
          type: string
          description: the current used size of this tablespace, unit MB
        usedRatio:
          type: string
          description: the current used ratio of this tablespace
        autoExtend:
          type: boolean
          description: whether this tablespace auto extend
        maxSizeMB:
          type: string
          description: the max size can be allocated of this tablespace, unit MB
        usedRatioInMax:
          type: string
          description: the used ratio in the max allocated size of this tablespace
        status:
          $ref: '#/components/schemas/tableSpaceStatus'
    DmTablespaceList:
      type: array
      items:
        $ref: '#/components/schemas/DmTablespace'
      description: the list of tablespace
    consoleStatus:
      type: string
      enum:
        - deployed
        - uninstalled
        - superseded
        - failed
        - uninstalling
        - pending-install
        - pending-upgrade
        - pending-rollback
        - unknown
    console:
      type: object
      description: engine console plugin, like redisinsight, minio-console, etc.
      properties:
        name:
          type: string
        status:
          $ref: '#/components/schemas/consoleStatus'
        description:
          type: string
        version:
          type: string
        address:
          type: string
          x-omitempty: false
    DMSConsoleNetMode:
      type: string
      enum:
        - PRIVATE
        - PUBLIC
    DMSConsoleSvcType:
      type: string
      enum:
        - ClusterIP
        - LoadBalancer
        - NodePort
    DMSConsoleEnableOpt:
      type: object
      required:
        - networkMode
        - serviceType
      properties:
        networkMode:
          $ref: '#/components/schemas/DMSConsoleNetMode'
          description: network mode of redis insight
        serviceType:
          $ref: '#/components/schemas/DMSConsoleSvcType'
          description: service type of redis insight
    databaseItem:
      description: Cluster database information
      properties:
        name:
          description: Specify the name of database, which must be unique.
          title: name
          type: string
        options:
          description: Specify the options of database.
          title: options
          type: object
          additionalProperties: {}
      required:
        - name
      type: object
    databaseList:
      description: DatabaesList is a list of Databaes
      properties:
        items:
          description: Items is the list of Databases objects in the list
          items:
            $ref: '#/components/schemas/databaseItem'
          type: array
      required:
        - items
      type: object
    database:
      description: Cluster database information
      properties:
        component:
          description: component type
          title: component
          type: string
        name:
          description: Specify the name of database, which must be unique.
          title: name
          type: string
        description:
          description: Description of the database.
          title: description
          type: string
        options:
          description: Specify the options of database.
          title: options
          type: object
          additionalProperties:
            type: string
      required:
        - name
      type: object
    ObjectPrivilegeSubjectType:
      type: string
      default: account
      x-nullable: false
      enum:
        - account
        - role
      description: Native authorization subject kind. Does not create accounts or roles, or change memberships.
    ObjectPrivilegeTarget:
      type: object
      required:
        - objectType
      properties:
        objectType:
          type: string
          x-nullable: false
          description: Native object kind returned by capabilities. Table includes views; view/foreignTable/materializedView also validate the concrete kind.
        databaseName:
          type: string
          description: Database name used to locate the resource. PostgreSQL also uses this as the connection database, including cluster-wide objects.
        schemaName:
          type: string
          description: Native schema containing the object, or the schema itself for schema objects.
        objectName:
          type: string
          description: Exact object name, never a SQL fragment. Required except for global, database, schema, and largeObject.
        objectId:
          type: string
          description: Opaque native identity returned by discovery. Interpretation and validation belong to the engine. PostgreSQL routines and large objects require a nonzero uint32 OID; routine names must also match.
        catalogName:
          type: string
          description: Native catalog name when required by engine capabilities. Unsupported fields are rejected.
    ObjectPrivilegeGrant:
      type: object
      required:
        - name
        - grantable
      properties:
        name:
          type: string
        column:
          type: string
          description: Empty means an object-level privilege.
        grantable:
          type: boolean
        grantor:
          type: string
          description: PostgreSQL ACL grantor. Omitted for MySQL and effective privilege results.
    ObjectPrivilegeSubject:
      type: object
      required:
        - name
        - type
      properties:
        name:
          type: string
          x-nullable: false
          minLength: 1
          description: Exact native database account or role name.
        type:
          $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
        qualifiers:
          type: object
          additionalProperties:
            type: string
          description: Engine-declared native identity qualifiers. MySQL host defaults to %. Unknown keys are rejected, including empty values.
    ObjectPrivilegePrerequisiteStatus:
      type: string
      x-nullable: false
      enum:
        - granted
        - denied
        - unknown
    ObjectPrivilegePrerequisiteCheck:
      type: object
      required:
        - target
        - privilege
        - status
      properties:
        target:
          $ref: '#/components/schemas/ObjectPrivilegeTarget'
        privilege:
          type: string
          x-nullable: false
        status:
          $ref: '#/components/schemas/ObjectPrivilegePrerequisiteStatus'
        reason:
          type: string
          description: Optional explanation. Checks are not a complete proof of executable access. Missing checks do not imply granted.
    ObjectPrivilegeEvidence:
      type: object
      required:
        - kind
        - format
        - items
      properties:
        databaseName:
          type: string
          description: Connection database for native privilege evidence.
        kind:
          type: string
          x-nullable: false
        format:
          type: string
          x-nullable: false
        items:
          type: array
          items:
            type: string
          description: Read-only native evidence; never replay as a privilege mutation.
    ObjectPrivilegeSnapshot:
      type: object
      required:
        - target
        - supportedPrivileges
        - supportedColumnPrivileges
        - directPrivileges
        - effectivePrivilegesKnown
        - subject
      properties:
        target:
          $ref: '#/components/schemas/ObjectPrivilegeTarget'
        supportedPrivileges:
          type: array
          items:
            type: string
        supportedColumnPrivileges:
          type: array
          items:
            type: string
        directPrivileges:
          type: array
          items:
            $ref: '#/components/schemas/ObjectPrivilegeGrant'
          description: Native grants to this account at this exact object scope. Does not include inherited grants or prove executable access.
        effectivePrivilegesKnown:
          type: boolean
          description: Native PostgreSQL checks when available. False for PostgreSQL large objects before 18 and MySQL (active roles depend on the session). False or omitted effectivePrivileges never means no access.
        effectivePrivileges:
          type: array
          items:
            $ref: '#/components/schemas/ObjectPrivilegeGrant'
          description: PostgreSQL native has_*_privilege checks, including PUBLIC and inherited permissions. Other prerequisites, RLS and session SET ROLE can affect actual execution.
        warnings:
          type: array
          items:
            type: string
          description: Native behavior and scope overlap explanations, including preset overlap and partial revokes.
        subject:
          $ref: '#/components/schemas/ObjectPrivilegeSubject'
        extensions:
          type: object
          additionalProperties:
            x-go-type:
              type: RawMessage
              import:
                package: encoding/json
                alias: json
              hints:
                kind: interface
                noValidation: true
                nullable: false
          description: Versioned namespaced JSON extensions. Response keys unknown to a client may be ignored. Change keys must be registered and strictly decoded by the current engine; PG/MySQL currently accept no change extensions.
        prerequisiteChecks:
          type: array
          items:
            $ref: '#/components/schemas/ObjectPrivilegePrerequisiteCheck'
        evidence:
          type: array
          items:
            $ref: '#/components/schemas/ObjectPrivilegeEvidence'
    ObjectPrivilegeSpec:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          minLength: 1
          description: Native keyword from the capability for the requested object type.
        columns:
          type: array
          uniqueItems: true
          items:
            type: string
            minLength: 1
          description: Exact columns, supported only on table/view objects. Empty means object-level privileges.
    ObjectPrivilegeChange:
      type: object
      required:
        - target
        - action
      properties:
        target:
          $ref: '#/components/schemas/ObjectPrivilegeTarget'
        action:
          type: string
          description: Operation, either grant or revoke.
        privileges:
          type: array
          maxItems: 128
          items:
            $ref: '#/components/schemas/ObjectPrivilegeSpec'
          description: Required except when revoking MySQL scope-wide GRANT OPTION. Dynamic global privileges require explicit names.
        grantOption:
          type: boolean
          description: Grant delegation. MySQL static GRANT OPTION is scope-wide; dynamic global privileges each have their own grant option.
        grantOptionOnly:
          type: boolean
          description: Revoke delegation only. PostgreSQL applies to listed privileges. MySQL requires an empty privileges list and revokes GRANT OPTION at the entire scope; global dynamic grant options can also be removed.
        extensions:
          type: object
          additionalProperties:
            x-go-type:
              type: RawMessage
              import:
                package: encoding/json
                alias: json
              hints:
                kind: interface
                noValidation: true
                nullable: false
          description: Versioned namespaced JSON extensions. Response keys unknown to a client may be ignored. Change keys must be registered and strictly decoded by the current engine; PG/MySQL currently accept no change extensions.
        grantPrerequisites:
          type: boolean
          description: Explicitly grant advertised access prerequisites. PG schema-contained grants add CONNECT and schema USAGE in the same transaction; never sequence privileges. Defaults false; later revoke does not undo prerequisites.
        revokeBehavior:
          type: string
          description: Explicit native revoke behavior from capabilities; valid only for revoke. Omitted uses the advertised default.
    ObjectPrivilegeGrantOptionScope:
      type: string
      x-nullable: false
      enum:
        - none
        - privilege
        - object
    ObjectPrivilegeDefinition:
      type: object
      required:
        - name
        - grantOptionScope
      properties:
        name:
          type: string
          minLength: 1
          x-nullable: false
        supportsColumns:
          type: boolean
        grantOptionScope:
          $ref: '#/components/schemas/ObjectPrivilegeGrantOptionScope'
    ObjectPrivilegeCapability:
      type: object
      required:
        - objectType
        - privileges
        - requiredTargetFields
        - requiredDiscoveryFields
        - revokeBehaviors
        - defaultRevokeBehavior
      properties:
        objectType:
          type: string
          x-nullable: false
        privileges:
          type: array
          items:
            $ref: '#/components/schemas/ObjectPrivilegeDefinition'
        requiredTargetFields:
          type: array
          items:
            type: string
        warnings:
          type: array
          items:
            type: string
        requiredDiscoveryFields:
          type: array
          items:
            type: string
          description: Fields required to enumerate objects of this kind; distinct from fields needed to identify an individual target.
        revokeGrantOptionScope:
          $ref: '#/components/schemas/ObjectPrivilegeGrantOptionScope'
          description: Delegation-only revoke scope. object requires an empty privileges list; privilege requires explicit privilege names.
        extensions:
          type: object
          additionalProperties:
            x-go-type:
              type: RawMessage
              import:
                package: encoding/json
                alias: json
              hints:
                kind: interface
                noValidation: true
                nullable: false
          description: Versioned namespaced JSON extensions. Response keys unknown to a client may be ignored. Change keys must be registered and strictly decoded by the current engine; PG/MySQL currently accept no change extensions.
        supportsGrantPrerequisites:
          type: boolean
          description: Allows explicitly granting the documented access prerequisites together with an object grant.
        grantPrerequisitesAtomic:
          type: boolean
          description: When prerequisite grants are supported, whether they and the requested grant are atomic.
        revokeBehaviors:
          type: array
          items:
            type: string
          description: Explicit revoke behaviors supported by this object kind. Omitted change behavior uses defaultRevokeBehavior.
        defaultRevokeBehavior:
          type: string
          description: Default native revoke behavior. PostgreSQL restrict; MySQL native.
          x-nullable: false
        changeExtensions:
          type: array
          items:
            type: string
          description: Versioned namespaces accepted for change extensions by this engine/version; empty means none.
    ObjectPrivilegeQualifier:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          x-nullable: false
        required:
          type: boolean
        defaultValue:
          type: string
          x-nullable: true
        description:
          type: string
          description: ''
    ObjectPrivilegeCapabilities:
      type: object
      required:
        - engineVersion
        - objects
        - subjectTypes
      properties:
        engineVersion:
          type: string
          x-nullable: false
        objects:
          type: array
          items:
            $ref: '#/components/schemas/ObjectPrivilegeCapability'
        subjectTypes:
          type: array
          items:
            $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
          description: Native subject kinds supported by this connected engine version.
        subjectQualifiers:
          type: array
          items:
            $ref: '#/components/schemas/ObjectPrivilegeQualifier'
    ObjectPrivilegeResetStep:
      type: object
      description: One ordered, engine-generated step of an account privilege reset.
      required:
        - sql
      properties:
        databaseName:
          type: string
          description: Connection database in which this statement must run. Omitted when no particular database is required, as with MySQL account-wide REVOKE. This is execution context, not the scope of objects affected by the SQL.
        sql:
          type: string
          x-nullable: false
          minLength: 1
          description: Engine-generated statement for display (SQL, or a native MongoDB command encoded as JSON). Callers cannot submit or modify these steps for execution; reset rebuilds the plan from current grants.
    ObjectPrivilegeObject:
      type: object
      required:
        - target
        - identity
      properties:
        target:
          $ref: '#/components/schemas/ObjectPrivilegeTarget'
        identity:
          type: string
          x-nullable: false
          description: Display identity, including PostgreSQL routine input argument types. Use target for operations; identity is never accepted as SQL.
    ObjectPrivilegeObjectList:
      type: object
      required:
        - items
        - hasMore
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ObjectPrivilegeObject'
        hasMore:
          type: boolean
          x-nullable: false
        nextOffset:
          type: integer
          format: int64
          description: Offset for the next page; omitted when exhausted.
    DmsServiceAccount:
      description: MinIO service account access-key
      type: object
      properties:
        userName:
          type: string
          description: MinIO user that owns the service account.
        accessKey:
          type: string
          description: Service account access key.
        secretKey:
          type: string
          description: Secret key returned only by create.
        status:
          type: string
          description: Service account status.
        name:
          type: string
          description: Display name of the service account.
        description:
          type: string
          description: Description of the service account.
        expiration:
          type: string
          format: date-time
          description: Service account expiration time.
        policy:
          type: string
          description: Service account policy text.
        impliedPolicy:
          type: boolean
          description: Whether the policy is implied from the parent user.
    DmsServiceAccountList:
      description: MinIO service account access-key list
      type: array
      items:
        $ref: '#/components/schemas/DmsServiceAccount'
    DmsServiceAccountCreateRequest:
      description: MinIO service account access-key create request
      type: object
      required:
        - userName
      properties:
        userName:
          type: string
          description: MinIO user that owns the service account.
        accessKey:
          type: string
          description: Optional fixed access key. If omitted, MinIO generates it.
        secretKey:
          type: string
          description: Optional fixed secret key. If omitted, MinIO generates it.
        name:
          type: string
          description: Display name of the service account.
        description:
          type: string
          description: Description of the service account.
        expiration:
          type: string
          format: date-time
          description: Optional service account expiration time.
    DmsServiceAccountStatus:
      description: MinIO service account status.
      type: string
      enum:
        - enabled
        - disabled
    DmsServiceAccountUpdateRequest:
      description: MinIO service account access-key update request
      type: object
      properties:
        status:
          $ref: '#/components/schemas/DmsServiceAccountStatus'
          description: Optional service account status.
        expiration:
          type: string
          format: date-time
          description: Optional service account expiration time. Use the Unix epoch to clear expiration.
    MilvusRoleGrant:
      type: object
      description: Native Milvus role privilege grant.
      required:
        - privilege
      properties:
        dbName:
          type: string
          description: Milvus database name. Empty means Milvus default/global scope.
        collectionName:
          type: string
          description: Milvus collection name. Use '*' for all collections in the database.
        privilege:
          type: string
          description: Native Milvus privilege name, such as DatabaseReadOnly, DatabaseReadWrite, DatabaseAdmin, Search, Insert, or Delete.
    MilvusRole:
      type: object
      description: Milvus role with native privilege grants.
      required:
        - name
        - grants
      properties:
        name:
          type: string
          description: Milvus role name.
        grants:
          type: array
          description: Native Milvus privilege grants owned by this role.
          items:
            $ref: '#/components/schemas/MilvusRoleGrant'
    MilvusRoleList:
      type: object
      description: Milvus role list.
      required:
        - items
      properties:
        items:
          type: array
          description: Milvus roles.
          items:
            $ref: '#/components/schemas/MilvusRole'
    MilvusRoleCreateRequest:
      type: object
      description: Milvus role create request.
      required:
        - name
      properties:
        name:
          type: string
          description: Milvus role name.
        grants:
          type: array
          description: Native Milvus privilege grants owned by this role.
          items:
            $ref: '#/components/schemas/MilvusRoleGrant'
    MilvusRoleRequest:
      type: object
      description: Milvus role update request.
      properties:
        grants:
          type: array
          description: Native Milvus privilege grants owned by this role. Existing grants are replaced.
          items:
            $ref: '#/components/schemas/MilvusRoleGrant'
    MilvusAccountPassword:
      type: object
      description: Milvus account password update request.
      required:
        - oldPassword
        - password
      properties:
        oldPassword:
          type: string
          description: Current account password. Required by Milvus.
        password:
          type: string
          description: New account password.
    MilvusAccountRoles:
      type: object
      description: Milvus account role update request.
      properties:
        role:
          type: string
          description: Generic account role. SUPERUSER maps to the Milvus admin role.
        roles:
          type: array
          description: Milvus role names to assign to the user. Existing roles are replaced.
          items:
            type: string
    dbTDERequest:
      type: object
      properties:
        enable:
          type: array
          items:
            type: string
        disable:
          type: array
          items:
            type: string
      required:
        - enable
        - disable
    PgExtensionAvailableDatabaseSchema:
      type: object
      properties:
        database:
          type: string
          description: The database where the extension can be installed.
        schemas:
          type: array
          items:
            type: string
          description: The schema candidates or fixed schema hints for this extension in the database. Extensions with fixed schemas return schemas declared by extension metadata. Relocatable extensions return current database schemas as install candidates. Non-relocatable extensions without fixed schema hints only return the public schema when it exists.
          x-omitempty: false
    PgExtension:
      type: object
      properties:
        name:
          type: string
          description: The name of the PostgreSQL extension.
        database:
          type: string
          description: The database where the extension is installed.
        default_version:
          type: string
          description: The default version of the extension.
        installed_version:
          type: string
          description: The currently installed version of the extension.
        schema:
          type: string
          description: The schema where the extension is installed.
        available_database_schema:
          type: array
          items:
            $ref: '#/components/schemas/PgExtensionAvailableDatabaseSchema'
          description: The databases and schemas where the extension can be installed. This is empty for installed extensions.
          x-omitempty: false
        category:
          type: string
          description: The category of the extension.
          x-omitempty: false
        need_restart:
          type: boolean
          description: Whether the extension needs a restart to take effect.
          x-omitempty: false
        pg_version:
          type: array
          items:
            type: string
          description: The version of PostgreSQL that the extension is compatible with.
          x-omitempty: false
        description_zn:
          type: string
          description: A description of the extension in Chinese.
          x-omitempty: false
        description_en:
          type: string
          description: A description of the extension in English.
          x-omitempty: false
    PgExtensionList:
      type: array
      items:
        $ref: '#/components/schemas/PgExtension'
    PgCreateExtensionOpt:
      type: object
      required:
        - databases
        - names
      properties:
        databases:
          type: array
          minItems: 1
          maxItems: 100
          items:
            type: string
            minLength: 1
          description: Target databases. At most 100 database-extension pairs per request.
        names:
          type: array
          minItems: 1
          maxItems: 100
          items:
            type: string
            minLength: 1
          description: Extensions to enable using their default versions and schemas.
        version:
          type: string
          description: The version of the extension to install.
        schema:
          type: string
          description: The schema where the extension is installed.
    PgCreateExtensionStatus:
      type: string
      enum:
        - installed
        - already_installed
        - scheduled
        - failed
    PgCreateExtensionResult:
      type: object
      required:
        - database
        - name
        - status
      properties:
        database:
          type: string
        name:
          type: string
        status:
          $ref: '#/components/schemas/PgCreateExtensionStatus'
          description: Scheduled means accepted for installation after the reconfiguration task, not installed yet.
        error:
          type: string
          description: The error for an extension that failed to install or schedule.
    createPgExtensionResp:
      type: object
      required:
        - items
      properties:
        opsRequestResult:
          $ref: '#/components/schemas/opsRequestName'
        items:
          type: array
          items:
            $ref: '#/components/schemas/PgCreateExtensionResult'
    RbmqUser:
      type: object
      properties:
        username:
          type: string
        password:
          type: string
    RbmqVhostPermission:
      type: object
      properties:
        vhost:
          type: string
          description: VHost name
        read:
          type: string
          description: Read permission regexp
        write:
          type: string
          description: Write permission regexp
        config:
          type: string
          description: Config permission regexp
    RbmqTopicPermission:
      type: object
      properties:
        vhost:
          type: string
          description: VHost name
        exchange:
          type: string
          description: Exchange name
        read:
          type: string
          description: Read permission regexp
        write:
          type: string
          description: Write permission regexp
    RbmqPermission:
      type: object
      properties:
        tags:
          type: array
          items:
            type: string
        vhostPermission:
          type: array
          items:
            $ref: '#/components/schemas/RbmqVhostPermission'
          description: List of VHost permissions
        topicPermission:
          type: array
          items:
            $ref: '#/components/schemas/RbmqTopicPermission'
          description: List of topic permissions
    RbmqAccountsList:
      type: object
      properties:
        items:
          type: array
          items:
            type: object
            properties:
              user:
                $ref: '#/components/schemas/RbmqUser'
                description: RabbitMQ user
              userPermission:
                $ref: '#/components/schemas/RbmqPermission'
                description: RabbitMQ user permissions
    RbmqAccountRequest:
      type: object
      properties:
        user:
          $ref: '#/components/schemas/RbmqUser'
          description: RabbitMQ user
        userPermission:
          $ref: '#/components/schemas/RbmqPermission'
          description: RabbitMQ user permissions
    RbmqPasswordUpdateRequest:
      type: object
      description: RabbitMQ account password update request.
      required:
        - password
      properties:
        password:
          type: string
          description: New RabbitMQ account password.
    RbmqVHost:
      type: object
      properties:
        name:
          type: string
          description: Virtual host name
        description:
          type: string
          description: Virtual host description
        tags:
          type: array
          items:
            type: string
        default_queue_type:
          type: string
          description: Type of queue to create in virtual host when unspecified
        tracing:
          type: boolean
          description: True if tracing is enabled for this virtual host
        messages:
          type: integer
          description: Total number of messages in queues of this virtual host
        messages_rate:
          type: number
          format: double
          description: Rate of messages in queues of this virtual host per second
        messages_ready:
          type: integer
          description: Total number of messages ready to be delivered in queues of this virtual host
        messages_ready_rate:
          type: number
          format: double
          description: Rate of messages ready to be delivered in queues of this virtual host per second
        messages_unacknowledged:
          type: integer
          description: Total number of messages pending acknowledgement from consumers in this virtual host
        messages_unacknowledged_rate:
          type: number
          format: double
          description: Rate of messages pending acknowledgement from consumers in this virtual host per second
        recv_oct:
          type: integer
          format: int64
          description: Octets received
        send_oct:
          type: integer
          format: int64
          description: Octets sent
        recv_cnt:
          type: integer
          format: int64
          description: Count of received messages
        send_cnt:
          type: integer
          format: int64
          description: Count of sent messages
        send_pend:
          type: integer
          format: int64
          description: Count of pending messages to be sent
        recv_oct_rate:
          type: number
          format: double
          description: Rate of octets received per second
        send_oct_rate:
          type: number
          format: double
          description: Rate of octets sent per second
    RbmqVHostList:
      type: array
      items:
        $ref: '#/components/schemas/RbmqVHost'
    RbmqMessageStats:
      type: object
      properties:
        publish_in:
          type: integer
          description: Messages published in
        publish_in_rate:
          type: number
          format: double
          description: Rate of messages published in per second
        publish_out:
          type: integer
          description: Messages published out
        publish_out_rate:
          type: number
          format: double
          description: Rate of messages published out per second
    RbmqExchange:
      type: object
      properties:
        name:
          type: string
          description: Exchange name
        vhost:
          type: string
          description: VHost name
        type:
          type: string
          description: Exchange type
        durable:
          type: boolean
          description: Durable
        auto_delete:
          type: boolean
          description: Auto delete
        internal:
          type: boolean
          description: Internal
        arguments:
          type: object
          additionalProperties: true
          description: Arguments
        message_stats:
          $ref: '#/components/schemas/RbmqMessageStats'
    RbmqExchangeList:
      type: array
      items:
        $ref: '#/components/schemas/RbmqExchange'
    aiAgentRuntimeStatusCode:
      x-generate-alias-as-model: true
      type: string
      enum:
        - ready
        - missing_model_config
        - unreachable
        - unauthorized
        - not_configured
    aiAgentObjectRef:
      type: object
      properties:
        kind:
          type: string
          x-nullable: true
        name:
          type: string
          x-nullable: true
    aiAgentScope:
      type: object
      properties:
        orgName:
          type: string
          x-nullable: true
        environmentName:
          type: string
          x-nullable: true
        clusterName:
          type: string
        objectRef:
          $ref: '#/components/schemas/aiAgentObjectRef'
    aiAgentRuntimeStatus:
      type: object
      required:
        - status
      properties:
        status:
          $ref: '#/components/schemas/aiAgentRuntimeStatusCode'
        message:
          type: string
          x-nullable: true
        model:
          type: string
          x-nullable: true
        scope:
          $ref: '#/components/schemas/aiAgentScope'
    aiAgentMode:
      x-generate-alias-as-model: true
      type: string
      enum:
        - global
        - cluster_diagnosis
    aiAgentProfile:
      x-generate-alias-as-model: true
      type: string
      enum:
        - cloud-ai-agent
    aiAgentContextState:
      x-generate-alias-as-model: true
      type: string
      enum:
        - global
        - cluster_bound
    aiAgentConversationStatus:
      x-generate-alias-as-model: true
      type: string
      enum:
        - idle
        - running
        - waiting_for_approval
        - failed
        - cancelled
    aiAgentMessageRole:
      x-generate-alias-as-model: true
      type: string
      enum:
        - user
        - assistant
        - system
    aiAgentMessagePartType:
      x-generate-alias-as-model: true
      type: string
      enum:
        - text
        - reasoning_text
        - diagnosis_summary
        - tool_observation_summary
    aiAgentMessagePart:
      type: object
      required:
        - type
      properties:
        type:
          $ref: '#/components/schemas/aiAgentMessagePartType'
        text:
          type: string
          x-nullable: true
        summary:
          type: string
          x-nullable: true
        payload:
          type: object
          additionalProperties: true
          x-nullable: true
    aiAgentMessage:
      type: object
      required:
        - messageId
        - conversationId
        - role
        - parts
        - createdAt
      properties:
        messageId:
          type: string
        conversationId:
          type: string
        turnId:
          type: string
          x-nullable: true
        role:
          $ref: '#/components/schemas/aiAgentMessageRole'
        contexts:
          type: array
          items:
            $ref: '#/components/schemas/aiAgentScope'
        parts:
          type: array
          items:
            $ref: '#/components/schemas/aiAgentMessagePart'
        createdAt:
          type: string
          format: date-time
    aiAgentConversation:
      type: object
      required:
        - conversationId
        - status
        - createdAt
        - updatedAt
      properties:
        conversationId:
          type: string
        entryClusterName:
          type: string
          x-nullable: true
        agentMode:
          $ref: '#/components/schemas/aiAgentMode'
        agent_profile:
          $ref: '#/components/schemas/aiAgentProfile'
        contextState:
          $ref: '#/components/schemas/aiAgentContextState'
        scopeLabel:
          type: string
          description: Safe display label for the conversation scope. It does not expose profile paths, skills paths, credentials, or endpoints.
          x-nullable: true
        title:
          type: string
          x-nullable: true
        status:
          $ref: '#/components/schemas/aiAgentConversationStatus'
        runtimeStatus:
          $ref: '#/components/schemas/aiAgentRuntimeStatusCode'
        model:
          type: string
          x-nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        lastMessage:
          $ref: '#/components/schemas/aiAgentMessage'
    aiAgentConversationList:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/aiAgentConversation'
    aiAgentCreateConversationRequest:
      type: object
      properties:
        title:
          type: string
          x-nullable: true
        model:
          type: string
          x-nullable: true
        entryClusterName:
          type: string
          x-nullable: true
        contexts:
          type: array
          description: |
            Optional creation-time context. When entryClusterName is omitted, the
            first clusterName here binds the conversation to cluster diagnosis.
          items:
            $ref: '#/components/schemas/aiAgentScope'
    aiAgentDeleteConversationResponse:
      type: object
      required:
        - conversationId
        - status
      properties:
        conversationId:
          type: string
        status:
          type: string
    aiAgentMessageList:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/aiAgentMessage'
    aiAgentSendMessageRequest:
      type: object
      required:
        - content
      properties:
        content:
          type: string
        contexts:
          type: array
          items:
            $ref: '#/components/schemas/aiAgentScope'
    aiAgentTurnStatus:
      x-generate-alias-as-model: true
      type: string
      enum:
        - running
        - waiting_for_approval
        - completed
        - failed
        - cancelled
    aiAgentSendMessageResponse:
      type: object
      required:
        - messageId
        - turnId
        - status
      properties:
        messageId:
          type: string
        turnId:
          type: string
        status:
          $ref: '#/components/schemas/aiAgentTurnStatus'
        eventsUrl:
          type: string
          x-nullable: true
        agentMode:
          $ref: '#/components/schemas/aiAgentMode'
        agent_profile:
          $ref: '#/components/schemas/aiAgentProfile'
        contextState:
          $ref: '#/components/schemas/aiAgentContextState'
        scopeLabel:
          type: string
          description: Safe display label for the run scope. It does not expose profile paths, skills paths, credentials, or endpoints.
          x-nullable: true
    aiAgentEventType:
      x-generate-alias-as-model: true
      type: string
      enum:
        - cloud.conversation.ready
        - cloud.stream.connected
        - cloud.turn.started
        - message.delta
        - cloud.assistant.message.completed
        - reasoning.available
        - agent.step
        - tool.generating
        - tool.started
        - tool.completed
        - approval.request
        - approval.responded
        - run.completed
        - run.failed
        - run.cancelled
    aiAgentTurnAction:
      type: object
      required:
        - actionId
        - conversationId
        - turnId
        - type
        - title
        - hasDetail
        - createdAt
      properties:
        actionId:
          type: string
        conversationId:
          type: string
        turnId:
          type: string
        messageId:
          type: string
          x-nullable: true
        type:
          $ref: '#/components/schemas/aiAgentEventType'
        status:
          type: string
          x-nullable: true
        title:
          type: string
        summary:
          type: string
          x-nullable: true
        toolName:
          type: string
          x-nullable: true
        target:
          type: string
          x-nullable: true
        confirmationId:
          type: string
          x-nullable: true
        hasDetail:
          type: boolean
        detail:
          type: object
          description: |
            Sanitized action detail. Warning states are returned as `warning.value`
            with stable values such as `output_truncated`, `final_analysis_missing`,
            `no_tool_evidence`, `model_no_tool_call`, or `tooling_unavailable`.
            `model_no_tool_call` and `tooling_unavailable` are turn-completed
            warnings and are not emitted on tool/check detail cards.
            The legacy `warningReason` string may be present for compatibility.
          additionalProperties: true
          x-nullable: true
        createdAt:
          type: string
          format: date-time
    aiAgentTurnActionList:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/aiAgentTurnAction'
        nextCursor:
          type: string
          description: Raw action cursor for the next page; independent of coalesced item IDs and timestamps.
        hasMore:
          type: boolean
          description: Whether more actions are available. Pages finish the last turn before coalescing, so item counts must not be used to detect the final page.
    aiAgentEvent:
      type: object
      required:
        - eventId
        - conversationId
        - type
        - createdAt
      properties:
        eventId:
          type: string
        conversationId:
          type: string
        turnId:
          type: string
          x-nullable: true
        type:
          $ref: '#/components/schemas/aiAgentEventType'
        status:
          type: string
          x-nullable: true
        message:
          type: string
          x-nullable: true
        payload:
          type: object
          additionalProperties: true
          x-nullable: true
        createdAt:
          type: string
          format: date-time
    aiAgentToolConfirmationDecisionRequest:
      type: object
      properties:
        comment:
          type: string
          x-nullable: true
    aiAgentToolConfirmationStatus:
      x-generate-alias-as-model: true
      type: string
      enum:
        - pending
        - approved
        - rejected
        - expired
    aiAgentToolConfirmationDecisionResponse:
      type: object
      required:
        - confirmationId
        - status
        - turnId
      properties:
        confirmationId:
          type: string
        status:
          $ref: '#/components/schemas/aiAgentToolConfirmationStatus'
        turnId:
          type: string
    aiAgentStopConversationResponse:
      type: object
      required:
        - conversationId
        - status
      properties:
        conversationId:
          type: string
        status:
          $ref: '#/components/schemas/aiAgentConversationStatus'
    encryptionAlgorithm:
      description: the encryption algorithm
      type: string
      enum:
        - AES-128-CFB
        - AES-192-CFB
        - AES-256-CFB
    encryptionKeyUsage:
      type: string
      enum:
        - encryption
      description: The intended usage of the key.
    keyCluster:
      description: a cluster which uses the key
      type: object
      properties:
        clusterId:
          type: string
          description: the id of the cluster
        name:
          type: string
          description: the name of the cluster
        clusterDefinition:
          type: string
          description: the cluster definition (engine type) of the cluster
        status:
          type: string
          description: the status of the cluster
    keyBackup:
      description: a backup which uses the key
      type: object
      properties:
        id:
          type: string
          description: the id of the backup
        engine:
          type: string
          description: the engine of the backup
        name:
          type: string
          description: the name of the backup
        status:
          type: string
          description: the status of the backup
    key:
      description: mutiple kv pair
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the key.
        name:
          type: string
          description: The name of the key.
        algorithm:
          $ref: '#/components/schemas/encryptionAlgorithm'
        keyUsage:
          $ref: '#/components/schemas/encryptionKeyUsage'
        clusters:
          type: array
          items:
            $ref: '#/components/schemas/keyCluster'
          description: the clusters which use the key
        backups:
          type: array
          items:
            $ref: '#/components/schemas/keyBackup'
          description: the backups which use the key
        createdAt:
          type: string
          format: date-time
          description: The creation timestamp of the key.
        updatedAt:
          type: string
          format: date-time
          description: The last update timestamp of the key.
        key:
          type: string
          description: the key content. This field will not be included in list/get response.
    keyList:
      description: key list
      properties:
        items:
          description: Items is the list of key objects in the list
          items:
            $ref: '#/components/schemas/key'
          type: array
        pageResult:
          $ref: '#/components/schemas/pageResult'
      required:
        - items
      type: object
    dashboardConfig:
      type: object
      required:
        - key
      properties:
        key:
          type: string
          description: Frontend-defined platform-wide key. Organization identifiers in this key do not enforce tenant isolation.
          minLength: 1
          maxLength: 512
        value:
          description: Stored JSON value, or null when the key has no configuration.
          x-omitempty: false
    platformParameterCategory:
      type: string
      description: platformParameter category, representing the platformParameter group
    platformParameter:
      description: platformParameter item
      type: object
      required:
        - id
        - name
        - category
        - description
        - constraints
        - type
      properties:
        id:
          type: string
          description: platformParameter ID
        name:
          type: string
          description: platformParameter name
        category:
          $ref: '#/components/schemas/platformParameterCategory'
        type:
          type: string
          description: |
            type of platformParameter value, by convention one of string, int,
            boolean or json. Values are always transferred as strings; the type
            declares how the value is interpreted and validated.
        constraints:
          type: object
          description: platformParameter constraints including min, max, enum, default value
          properties:
            min:
              type: string
              description: platformParameter min value
            max:
              type: string
              description: platformParameter max value
            enum:
              type: array
              items:
                type: string
              description: platformParameter enum constraints
            default:
              type: string
              description: platformParameter default value
        value:
          type: string
          description: platformParameter value
        description:
          $ref: '#/components/schemas/localizedDescription'
    platformParameterList:
      description: platformParameter list
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/platformParameter'
      required:
        - items
    storage:
      type: object
      description: Storage is a specification that provides guidance accessing remote storage.
      properties:
        id:
          type: string
          description: Unique identifier for the storage
        name:
          type: string
          description: Name of the storage
        storageProvider:
          type: string
          description: Name of the storage provider
        params:
          type: object
          description: the parameters for the storage
          additionalProperties:
            type: string
        envName:
          type: string
          description: the environment name that storage belongs to
        createdBy:
          type: string
          description: User who created the storage
          format: date-time
        clusterID:
          type: string
          description: the id of cluster that storage used
          nullable: true
        clusterMetadataAddress:
          type: string
          description: the address of cluster
          nullable: true
        updatedBy:
          type: string
          description: User who updated the storage
          format: date-time
        tags:
          type: object
          description: the tags for the storage
          additionalProperties:
            type: string
    storageList:
      type: array
      items:
        $ref: '#/components/schemas/storage'
    channelStatus:
      enum:
        - Pending
        - Initializing
        - Running
        - Finished
        - Failed
        - Pausing
        - Paused
        - Deleting
      type: string
    dataReplicationEndpointType:
      enum:
        - custom
        - kubeblocks
        - definition
      type: string
    authType:
      enum:
        - basic
      type: string
    basicAuthModel:
      type: object
      properties:
        userName:
          type: string
        password:
          type: string
          description: if password is not provided when patch replication channel, it means not to modify the password
          nullable: true
    customEndpoint:
      type: object
      properties:
        connectionString:
          description: display connection string information, including connection details such as url, database, etc
          type: string
        connection:
          type: string
        authType:
          $ref: '#/components/schemas/authType'
        basicAuth:
          $ref: '#/components/schemas/basicAuthModel'
          nullable: true
    kubeblocksEndpoint:
      type: object
      properties:
        environmentID:
          type: string
        environmentName:
          type: string
        clusterID:
          type: string
        clusterName:
          type: string
        displayName:
          type: string
          nullable: true
    definitionEndpoint:
      type: object
      description: Reference to an existing data endpoint in the same organization.
      required:
        - endpointID
      properties:
        endpointID:
          type: string
          minLength: 1
    endpointStatusEnum:
      enum:
        - valid
        - invalid
      type: string
    dataChannelListEndpoint:
      type: object
      properties:
        id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        engineName:
          type: string
        endpointType:
          $ref: '#/components/schemas/dataReplicationEndpointType'
        custom:
          $ref: '#/components/schemas/customEndpoint'
          nullable: true
        kubeblocks:
          $ref: '#/components/schemas/kubeblocksEndpoint'
          nullable: true
        definition:
          $ref: '#/components/schemas/definitionEndpoint'
          nullable: true
        channelNum:
          type: integer
          description: the number of channels associated with this endpoint
          nullable: true
        description:
          type: string
          nullable: true
        status:
          $ref: '#/components/schemas/endpointStatusEnum'
        extraCfgs:
          type: object
          additionalProperties:
            type: string
          nullable: true
    dataChannelObject:
      type: object
      properties:
        includeObjects:
          type: array
          items:
            type: string
        excludeObjects:
          type: array
          items:
            type: string
          nullable: true
    dataChannelItem:
      type: object
      properties:
        channelID:
          type: string
        channelName:
          type: string
        orgName:
          type: string
        channelStatus:
          $ref: '#/components/schemas/channelStatus'
        environmentID:
          type: string
        environmentName:
          type: string
        project:
          type: string
        kubernetesName:
          type: string
        standardDefinition:
          type: string
        source:
          $ref: '#/components/schemas/dataChannelListEndpoint'
        target:
          $ref: '#/components/schemas/dataChannelListEndpoint'
        replicationObjects:
          $ref: '#/components/schemas/dataChannelObject'
        modules:
          type: array
          items:
            type: string
        events:
          type: array
          items:
            $ref: '#/components/schemas/eventObject'
        createdAt:
          type: string
          format: date-time
        FinishedAt:
          type: string
          format: date-time
          nullable: true
    dataChannelList:
      type: array
      items:
        $ref: '#/components/schemas/dataChannelItem'
    customEndpointCreate:
      type: object
      properties:
        connection:
          type: string
        authType:
          $ref: '#/components/schemas/authType'
        basicAuth:
          $ref: '#/components/schemas/basicAuthModel'
          nullable: true
    dataChannelEndpointCreate:
      type: object
      description: Use endpointType custom or kubeblocks with the corresponding inline connection configuration, or endpointType definition with definition.endpointID to reuse an existing data endpoint. Inline connection configuration is not used for endpointType definition.
      properties:
        name:
          type: string
          nullable: true
        engineName:
          type: string
        definitionName:
          type: string
        endpointType:
          $ref: '#/components/schemas/dataReplicationEndpointType'
        custom:
          $ref: '#/components/schemas/customEndpointCreate'
          nullable: true
        kubeblocks:
          $ref: '#/components/schemas/kubeblocksEndpoint'
          nullable: true
        definition:
          $ref: '#/components/schemas/definitionEndpoint'
          nullable: true
        description:
          type: string
          nullable: true
        extraCfgs:
          type: object
          additionalProperties:
            type: string
          nullable: true
    dataChannelParameterKeyValue:
      type: object
      properties:
        key:
          type: string
        value:
          type: string
      required:
        - key
        - value
    dataReplicationCreate:
      type: object
      properties:
        channelName:
          type: string
        modules:
          type: array
          items:
            type: string
        environmentID:
          type: string
        project:
          type: string
          default: kubeblocks-cloud-ns
        standardDefinition:
          type: string
        source:
          $ref: '#/components/schemas/dataChannelEndpointCreate'
        target:
          $ref: '#/components/schemas/dataChannelEndpointCreate'
        replicationObjects:
          $ref: '#/components/schemas/dataChannelObject'
        events:
          type: array
          items:
            $ref: '#/components/schemas/eventObject'
        parameters:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/dataChannelParameterKeyValue'
          nullable: true
    dataChannelResponse:
      type: object
      properties:
        channelID:
          type: string
        channelName:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
          nullable: true
    dataChannelModuleProgress:
      type: object
      properties:
        moduleName:
          type: string
        kubernetesName:
          type: string
          nullable: true
        progress:
          type: number
          format: double
          nullable: true
        status:
          type: string
        message:
          type: string
          nullable: true
    dataChannelProgress:
      type: object
      properties:
        progress:
          type: number
          format: double
          nullable: true
        moduleProgress:
          type: array
          items:
            $ref: '#/components/schemas/dataChannelModuleProgress'
    dataChannelDetail:
      type: object
      properties:
        channel:
          $ref: '#/components/schemas/dataChannelItem'
        progress:
          $ref: '#/components/schemas/dataChannelProgress'
    dataReplicationUpdate:
      type: object
      properties:
        clusterUpdates:
          $ref: '#/components/schemas/dataReplicationCreate'
        isRestart:
          type: boolean
          nullable: true
    dataReplicationOpsType:
      description: data replication ops type
      enum:
        - pause
        - resume
        - restart
      type: string
    eventItem:
      type: object
      properties:
        eventID:
          type: string
        eventName:
          type: string
        eventTime:
          type: string
          format: date-time
        eventMessage:
          type: string
        operator:
          type: string
        operatorID:
          type: string
          nullable: true
    dataReplicationEventList:
      type: array
      items:
        $ref: '#/components/schemas/eventItem'
    replicationObjectQuery:
      type: object
      properties:
        sourceEngineDefinition:
          type: string
        targetEngineDefinition:
          type: string
        endpoint:
          $ref: '#/components/schemas/dataChannelEndpointCreate'
        nodeType:
          type: string
          nullable: true
        nodeValue:
          type: string
          nullable: true
        queryNodeType:
          type: string
          nullable: true
    replicationObjectNode:
      type: object
      properties:
        nodeName:
          type: string
        nodeValue:
          type: string
    replicationObjectTree:
      type: object
      properties:
        nodeType:
          type: string
        nodeValues:
          type: array
          items:
            $ref: '#/components/schemas/replicationObjectNode'
        childrenNodeTypes:
          type: array
          nullable: true
          items:
            type: string
    preCheckCreate:
      type: object
      properties:
        modules:
          type: array
          items:
            type: string
        environmentID:
          type: string
        source:
          $ref: '#/components/schemas/dataChannelEndpointCreate'
        target:
          $ref: '#/components/schemas/dataChannelEndpointCreate'
        replicationObjects:
          $ref: '#/components/schemas/dataChannelObject'
    preCheckTaskResponse:
      type: object
      properties:
        taskId:
          type: string
    preCheckStatus:
      enum:
        - Pending
        - Running
        - Succeed
        - Failed
      type: string
    preCheckTaskItem:
      type: object
      properties:
        checkerName:
          type: string
        checkerDesc:
          type: string
        message:
          type: string
          nullable: true
        status:
          $ref: '#/components/schemas/preCheckStatus'
    preCheckResult:
      type: object
      properties:
        name:
          type: string
        checkerName:
          type: string
        message:
          type: string
          nullable: true
        advice:
          type: string
          nullable: true
    preCheckTaskDetail:
      type: object
      properties:
        taskID:
          type: string
        taskStatus:
          $ref: '#/components/schemas/preCheckStatus'
        progress:
          type: integer
          format: int32
          nullable: true
        checkers:
          type: array
          items:
            $ref: '#/components/schemas/preCheckTaskItem'
        errors:
          type: array
          items:
            $ref: '#/components/schemas/preCheckResult'
          nullable: true
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/preCheckResult'
          nullable: true
        createdAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
          nullable: true
    dataReplicationChannelContainer:
      type: object
      properties:
        name:
          type: string
        isMainContainer:
          type: boolean
          default: false
        isInitContainer:
          type: boolean
          default: false
    dataReplicationParametersResponseDetail:
      type: object
      properties:
        displayName:
          type: string
        desc:
          $ref: '#/components/schemas/internationalDesc'
        key:
          type: string
        defaultValue:
          type: string
        value:
          type: string
        valueType:
          $ref: '#/components/schemas/parameterValueType'
      required:
        - key
    dataReplicationParametersResponse:
      type: object
      description: the parameters of the data channel, the key is the module name, the value is the parameter template
      additionalProperties:
        type: array
        items:
          $ref: '#/components/schemas/dataReplicationParametersResponseDetail'
    dataEndpointList:
      type: array
      items:
        $ref: '#/components/schemas/dataChannelListEndpoint'
    dataEndpointTypeCreation:
      enum:
        - custom
        - kubeblocks
      type: string
    dataEndpointCreate:
      type: object
      description: Connection configuration for an independently managed data endpoint.
      properties:
        name:
          type: string
          nullable: true
        engineName:
          type: string
        definitionName:
          type: string
        endpointType:
          $ref: '#/components/schemas/dataEndpointTypeCreation'
        custom:
          $ref: '#/components/schemas/customEndpointCreate'
          nullable: true
        kubeblocks:
          $ref: '#/components/schemas/kubeblocksEndpoint'
          nullable: true
        description:
          type: string
          nullable: true
        extraCfgs:
          type: object
          additionalProperties:
            type: string
          nullable: true
    dataEndpointResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/endpointStatusEnum'
        endpointID:
          type: string
        endpointName:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
          nullable: true
    dataCheckType:
      type: string
      description: Type of check to run. A standalone check runs exactly one type.
      enum:
        - struct
        - snapshot
    dataCheckStatus:
      type: string
      enum:
        - Running
        - Finished
        - Failed
    dataCheckListSummary:
      type: object
      properties:
        is_consistent:
          type: boolean
          nullable: true
        miss_count:
          type: integer
          format: int64
        diff_count:
          type: integer
          format: int64
        skip_count:
          type: integer
          format: int64
        sql_count:
          type: integer
          format: int64
    dataCheckListItem:
      type: object
      properties:
        checkID:
          type: string
        checkName:
          type: string
        orgName:
          type: string
        checkType:
          $ref: '#/components/schemas/dataCheckType'
        checkStatus:
          $ref: '#/components/schemas/dataCheckStatus'
        checkSummary:
          $ref: '#/components/schemas/dataCheckListSummary'
          nullable: true
        environmentID:
          type: string
        environmentName:
          type: string
        project:
          type: string
        source:
          $ref: '#/components/schemas/dataChannelListEndpoint'
        target:
          $ref: '#/components/schemas/dataChannelListEndpoint'
        replicationObjects:
          $ref: '#/components/schemas/dataChannelObject'
        errorMessage:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        finishedAt:
          type: string
          format: date-time
          nullable: true
    dataCheckList:
      type: array
      items:
        $ref: '#/components/schemas/dataCheckListItem'
    dataCheckCreate:
      type: object
      required:
        - checkType
      description: Exactly one entry point must be used. Provide channelID with checkType to create from an existing channel, or provide environmentID, project, source, target, replicationObjects, and checkType for direct creation.
      properties:
        checkType:
          $ref: '#/components/schemas/dataCheckType'
        channelID:
          type: string
          description: Existing data replication channel ID used only as a create-time shortcut.
        checkName:
          type: string
          nullable: true
        environmentID:
          type: string
          description: Environment UUID for direct check creation.
        project:
          type: string
          description: Kubernetes namespace for direct check creation.
        source:
          $ref: '#/components/schemas/dataChannelEndpointCreate'
          nullable: true
        target:
          $ref: '#/components/schemas/dataChannelEndpointCreate'
          nullable: true
        replicationObjects:
          $ref: '#/components/schemas/dataChannelObject'
          nullable: true
    dataCheckResponse:
      type: object
      properties:
        checkID:
          type: string
        checkName:
          type: string
        createdAt:
          type: string
          format: date-time
    dataCheckTableSummary:
      type: object
      properties:
        schema:
          type: string
        tb:
          type: string
        target_schema:
          type: string
        target_tb:
          type: string
        checked_count:
          type: integer
          format: int64
        miss_count:
          type: integer
          format: int64
        diff_count:
          type: integer
          format: int64
        skip_count:
          type: integer
          format: int64
    dataCheckSummary:
      type: object
      properties:
        is_consistent:
          type: boolean
          nullable: true
        miss_count:
          type: integer
          format: int64
        diff_count:
          type: integer
          format: int64
        skip_count:
          type: integer
          format: int64
        sql_count:
          type: integer
          format: int64
        tables:
          type: array
          items:
            $ref: '#/components/schemas/dataCheckTableSummary'
    dataCheckItem:
      type: object
      properties:
        orgName:
          type: string
        checkID:
          type: string
        checkName:
          type: string
        checkType:
          $ref: '#/components/schemas/dataCheckType'
        checkStatus:
          $ref: '#/components/schemas/dataCheckStatus'
        checkSummary:
          $ref: '#/components/schemas/dataCheckSummary'
          nullable: true
        environmentID:
          type: string
        environmentName:
          type: string
        project:
          type: string
        source:
          $ref: '#/components/schemas/dataChannelListEndpoint'
        target:
          $ref: '#/components/schemas/dataChannelListEndpoint'
        replicationObjects:
          $ref: '#/components/schemas/dataChannelObject'
        errorMessage:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        finishedAt:
          type: string
          format: date-time
          nullable: true
    dataCheckDetailType:
      type: string
      enum:
        - miss
        - diff
    dataCheckDiffValue:
      type: object
      properties:
        src:
          type: string
          nullable: true
        dst:
          type: string
          nullable: true
        src_type:
          type: string
          nullable: true
        dst_type:
          type: string
          nullable: true
    dataCheckDetailItem:
      type: object
      properties:
        key:
          type: string
          description: Struct check object key. Present for struct details; omitted for snapshot row details.
        schema:
          type: string
          description: Source schema or database from the requested detail scope.
        tb:
          type: string
          description: Source table from the requested detail scope.
        target_schema:
          type: string
          nullable: true
          description: Target schema or database for snapshot details when routing changes the target object.
        target_tb:
          type: string
          nullable: true
          description: Target table for snapshot details when routing changes the target object.
        id_col_values:
          type: object
          additionalProperties: {}
        src_sql:
          type: string
          nullable: true
        diff_col_values:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/dataCheckDiffValue'
          nullable: true
        src_row:
          type: object
          additionalProperties: true
          nullable: true
        dst_row:
          type: object
          additionalProperties: true
          nullable: true
        dst_sql:
          type: string
          nullable: true
    dataCheckDetails:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/dataCheckDetailItem'
        pagination:
          $ref: '#/components/schemas/paginationResult'
    ImportPreflightRequest:
      description: Data source preflight request
      type: object
      required:
        - sourceType
        - connectionConfig
      properties:
        sourceType:
          type: string
          description: Data source type
        connectionConfig:
          type: object
          description: Connection configuration parameters that vary by data source type
          example:
            host: mysql-source.example.com
            port: 3306
            username: migration_user
            password: secret123
            sslMode: disable
        objectSelection:
          $ref: '#/components/schemas/dataChannelObject'
    ImportQueryObjectsRequest:
      description: Request payload for querying import data source objects.
      type: object
      required:
        - sourceType
        - connectionConfig
      properties:
        sourceType:
          $ref: '#/components/schemas/ImportSourceType'
          description: Data source type to query objects from.
        connectionConfig:
          type: object
          description: Connection configuration parameters that vary by data source type.
          example:
            host: mysql-source.example.com
            port: 3306
            username: migration_user
            password: secret123
            sslMode: disable
        nodeType:
          type: string
          description: Current node type in the replication object tree.
        nodeValue:
          type: string
          description: Encoded node value of the current tree node.
        queryNodeType:
          type: string
          description: Target node type to enumerate for the next level.
    ImportTaskStatus:
      type: string
      description: Import task status
      enum:
        - Pending
        - Initializing
        - Finished
        - Failed
        - Deleting
    ImportTaskResponse:
      description: Import task response
      type: object
      properties:
        id:
          type: string
          description: Import task ID
        name:
          type: string
          description: Import name
        status:
          $ref: '#/components/schemas/ImportTaskStatus'
        sourceEndpoint:
          type: string
          description: Source endpoint address
        targetClusterName:
          type: string
          description: Target cluster name
        progress:
          type: integer
          format: int32
          minimum: 0
          maximum: 100
          default: 0
          description: Overall progress
        sourceType:
          type: string
          description: Data source type
        targetEngine:
          type: string
          description: Target engine type
        syncTimestamp:
          type: string
          format: date-time
          description: Sync timestamp
          nullable: true
        delaySecond:
          type: integer
          description: Delay seconds
          nullable: true
        createdAt:
          type: string
          format: date-time
          description: Creation time
        updatedAt:
          type: string
          format: date-time
          description: Update time
        finishedAt:
          type: string
          format: date-time
          description: Finish time
          nullable: true
        message:
          type: string
          description: Operation result message
          nullable: true
      required:
        - id
        - name
        - status
        - sourceEndpoint
        - targetClusterName
        - progress
        - sourceType
        - targetEngine
        - createdAt
        - updatedAt
        - message
    ImportTaskListResponse:
      description: Import task list response
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ImportTaskResponse'
          description: Task list
      required:
        - items
    ImportTaskCreateRequest:
      description: Create import task request
      type: object
      required:
        - sourceType
        - connectionConfig
      properties:
        name:
          type: string
          description: Import name
        sourceType:
          $ref: '#/components/schemas/ImportSourceType'
        connectionConfig:
          type: object
          description: Connection configuration
        objectSelection:
          $ref: '#/components/schemas/dataChannelObject'
    ImportOpsType:
      type: string
      description: Import task operation type
      enum:
        - pause
        - resume
    license:
      description: License info
      type: object
      required:
        - clusterID
        - notAfter
        - notBefore
      properties:
        clusterID:
          type: string
          description: The kubernetes cluster ID
        notAfter:
          type: string
          format: date-time
          description: The license expiration time
        notBefore:
          type: string
          format: date-time
          description: The license start time
    environmentPricing:
      type: object
      description: the information of environment pricing
      required:
        - envName
        - cpuPrice
        - memoryPrice
        - storagePrice
        - backupPrice
      properties:
        envName:
          description: The environment name
          type: string
          nullable: true
        cpuPrice:
          description: The price of CPU, the unit is 'Core'
          type: string
          nullable: true
        memoryPrice:
          description: The price of Memory, the unit is 'GB'
          type: string
          nullable: true
        storagePrice:
          description: The price of Storage, the unit is 'GB'
          type: string
          nullable: true
        backupPrice:
          description: The price of Backup, the unit is 'GB'
          type: string
          nullable: true
    environmentPricingList:
      type: object
      description: list of information with environment pricing
      properties:
        items:
          description: Items is the list of environment pricing information
          items:
            $ref: '#/components/schemas/environmentPricing'
          type: array
      required:
        - items
    globalPricing:
      type: object
      description: the global information of pricing
      required:
        - billScheduleTime
        - cpuPrice
        - memoryPrice
        - storagePrice
        - backupPrice
      properties:
        enabled:
          description: Enable global pricing
          type: boolean
          x-omitempty: false
        currencyUnit:
          description: The currency uint for display in bill query
          type: string
          nullable: true
        billScheduleTime:
          description: Scheduled production time for daily bills, the format is 'HH:mm:ss', such as '01:00:00' meas every day at 1:00 AM, use the configured timezone
          type: string
          nullable: true
          example: '01:00:00'
        lastBillingTime:
          description: |
            The last billing time in RFC3339 format (e.g., '2025-09-01T00:00:00Z' or '2025-09-01T00:00:00+08:00').
            This timestamp represents when the end time of the latest bill.
          type: string
          format: date-time
          nullable: true
          example: '2025-09-02T00:00:00Z'
        cpuPrice:
          description: The price of CPU, the unit is 'Core'
          type: string
          nullable: true
        memoryPrice:
          description: The price of Memory, the unit is 'GB'
          type: string
          nullable: true
        storagePrice:
          description: The price of Storage, the unit is 'GB'
          type: string
          nullable: true
        backupPrice:
          description: The price of Backup, the unit is 'GB'
          type: string
          nullable: true
        timezone:
          description: |
            The timezone used for billing calculations and time alignment, specified as an IANA timezone identifier.

            This timezone determines:
            - When daily billing periods start and end (aligned to midnight in this timezone)
            - How input timestamps are converted and normalized for billing calculations
            - The timezone context for scheduled billing operations

            Examples of valid timezone values:
            - "UTC" - Coordinated Universal Time
            - "Asia/Shanghai" - China Standard Time (CST, UTC+8)
            - "America/New_York" - Eastern Time (EST/EDT, UTC-5/-4)
            - "Europe/London" - Greenwich Mean Time/British Summer Time (GMT/BST, UTC+0/+1)

            **The system defaults to UTC and not support to change for now.**
          type: string
          nullable: true
          example: UTC
    aggregationTimeType:
      description: The type of aggregation time
      enum:
        - yearly
        - monthly
        - quarterly
        - daily
      type: string
      nullable: true
    orgAggregationGroupType:
      description: The type of aggregation group for organization-scoped bills
      enum:
        - organization
        - cluster
      type: string
      nullable: true
    Bill:
      type: object
      description: Task information
      properties:
        dataTime:
          description: |
            The Unix timestamp (seconds since epoch) representing the start of the billing period.
          type: integer
          format: int64
          example: 1756656000
        price:
          description: The total price
          type: string
        clusterID:
          description: The ID of cluster
          type: string
          nullable: true
          x-omitempty: true
        clusterName:
          description: The Name of cluster
          type: string
          nullable: true
          x-omitempty: true
        clusterDisplayName:
          description: The Display Name of cluster
          type: string
          nullable: true
          x-omitempty: true
        engine:
          description: Cluster Application Engine
          type: string
          nullable: true
          x-omitempty: true
        version:
          description: Cluster Application Version
          type: string
          nullable: true
          x-omitempty: true
        mode:
          description: Cluster topology mode
          type: string
          nullable: true
          x-omitempty: true
        orgName:
          description: The Name of organization
          type: string
          nullable: true
          x-omitempty: true
        projectName:
          description: The Name of project
          type: string
          nullable: true
          x-omitempty: true
    BillList:
      type: object
      description: list price details in date range
      properties:
        items:
          description: Items of the price
          items:
            $ref: '#/components/schemas/Bill'
          type: array
      required:
        - items
    MeteringTrack:
      type: object
      description: RTS metering track information
      properties:
        clusterID:
          description: The ID of cluster
          type: string
          nullable: true
          x-omitempty: true
        orgName:
          description: The Name of organization
          type: string
          nullable: true
          x-omitempty: true
        projectName:
          description: The Name of project
          type: string
          nullable: true
          x-omitempty: true
        environmentID:
          description: The ID of environment
          type: string
          nullable: true
          x-omitempty: true
        startTime:
          description: The clipped start time of the metering track in Unix timestamp (seconds since epoch)
          type: integer
          format: int64
          example: 1756656000
        endTime:
          description: The clipped end time of the metering track in Unix timestamp (seconds since epoch)
          type: integer
          format: int64
          example: 1756663200
        cpu:
          description: The CPU usage tracked for the interval
          type: string
        memory:
          description: The memory usage tracked for the interval
          type: string
        storage:
          description: The storage usage tracked for the interval
          type: string
        backup:
          description: The backup usage tracked for the interval
          type: string
    MeteringTrackList:
      type: object
      description: list metering tracks in date range
      properties:
        items:
          description: Items of the metering tracks
          items:
            $ref: '#/components/schemas/MeteringTrack'
          type: array
        pagination:
          $ref: '#/components/schemas/paginationResult'
      required:
        - items
    inspectionScriptCategory:
      type: string
      description: Current inspection category vocabulary. Existing legacy categories are normalized by the backend before they are returned.
      enum:
        - availability
        - performance
        - connections
        - resource
        - capacity
        - vacuumWraparound
        - backup
        - security
    inspectionEvaluationMode:
      type: string
      description: Empty legacy values mean check. Display collects information without scoring. Manual requires type=manual and presents scriptExpr verbatim as instructions; it executes no SQL or templates, returns severity=unknown, and retains rule importance.
      enum:
        - check
        - display
        - manual
    inspectionCriticality:
      type: string
      description: Rule importance used for score weighting. Info marks automatically collected information excluded from scoring. Manual items retain their importance but return unknown and are not scored. Missing legacy values normally default to medium; cluster and node status default to critical.
      enum:
        - critical
        - high
        - medium
        - low
        - info
    inspectionThresholdDirection:
      type: string
      description: Direction used to interpret warnThreshold and critThreshold. asc means larger values are worse, desc means smaller values are worse, boolean means the check expression decides.
      enum:
        - asc
        - desc
        - boolean
    inspectionScript:
      required:
        - name
        - engine
        - type
        - category
        - scriptExpr
        - scopeType
        - enabled
      properties:
        id:
          type: string
        name:
          pattern: ^[a-zA-Z0-9_]{1,64}$
          type: string
        displayName:
          $ref: '#/components/schemas/localizedDescription'
        engine:
          description: The engine type this script is applicable to, such as cluster, mysql, node
          type: string
        type:
          description: The type of the script, such as "promQL" or "manual" (requires evaluationMode=manual)
          type: string
        category:
          $ref: '#/components/schemas/inspectionScriptCategory'
        description:
          $ref: '#/components/schemas/localizedDescription'
        scriptExpr:
          type: string
          description: Collector expression for automatic modes; complete user instructions (up to 8192 UTF-8 bytes) for manual mode. Manual placeholders are not rendered.
        evaluationMode:
          $ref: '#/components/schemas/inspectionEvaluationMode'
        checkExpr:
          type: string
        criticality:
          $ref: '#/components/schemas/inspectionCriticality'
        warnThreshold:
          type: number
          format: double
          x-nullable: true
          description: First-version warning threshold assumption. It documents the script contract and is not a permanent product conclusion.
        critThreshold:
          type: number
          format: double
          x-nullable: true
          description: First-version critical threshold assumption. It documents the script contract and is not a permanent product conclusion.
        direction:
          $ref: '#/components/schemas/inspectionThresholdDirection'
        remediation:
          $ref: '#/components/schemas/localizedDescription'
        docLink:
          type: string
        scopeType:
          description: scope type, such as "system"/"global"/"org"
          type: string
        scopeID:
          description: The identifier of the scope, such as org_id
          type: string
        scopeName:
          description: The identifier of the scope, such as org_name
          type: string
        enabled:
          type: boolean
        unit:
          type: string
        createdAt:
          description: Timestamp of creation time
          type: integer
        updatedAt:
          description: Timestamp of update time
          type: integer
    autoInspectionResourceType:
      type: string
      description: Specifies the type of the resource for the auto inspection.
      enum:
        - organization
        - cluster
        - environment
        - environment_node
    autoInspectionRunUnit:
      type: string
      description: Specifies the unit of time for the auto inspection schedule.
      enum:
        - hour
        - day
        - week
        - month
    autoInspection:
      required:
        - resourceType
        - resourceName
        - creator
        - enabled
      properties:
        id:
          type: string
        resourceType:
          $ref: '#/components/schemas/autoInspectionResourceType'
        resourceID:
          type: string
        resourceName:
          type: string
        orgName:
          type: string
        creator:
          type: string
        schedule:
          type: string
        runEvery:
          $ref: '#/components/schemas/autoInspectionRunUnit'
        daysOfWeek:
          type: array
          items:
            type: integer
        daysOfMonth:
          type: array
          items:
            type: integer
        hour:
          type: integer
        minute:
          type: integer
        savedDays:
          type: integer
        nextRunTime:
          format: date-time
          type: string
        enabled:
          type: boolean
    inspectionTaskItemEvidence:
      type: object
      description: Structured evidence used to explain the item result. Unavailable or invalid evidence from any collection source, including Prometheus/exporters and DMS, is reported as unknown instead of being converted into a healthy or unhealthy conclusion.
      additionalProperties: true
    inspectionTaskItem:
      properties:
        id:
          type: string
        taskID:
          type: string
        scriptID:
          type: string
        scriptName:
          $ref: '#/components/schemas/localizedDescription'
        scriptDescription:
          $ref: '#/components/schemas/localizedDescription'
        scriptCategory:
          type: string
          description: Category used to group inspection items, such as availability, performance, capacity, or backup.
        resourceType:
          type: string
          description: Type of the inspected resource, such as cluster or node; resourceID and resourceName identify the target.
        resourceID:
          type: string
        resourceName:
          type: string
        status:
          type: string
          description: Execution state, such as Running, Completed, or Failed. Use severity for the health conclusion. For manual items, Completed means instructions are available, not that the user has performed them.
        result:
          type: string
          description: Textual observation or execution message for display. It may contain nonnumeric information or an error; use severity for the health conclusion. Manual instructions are stored in evidence.ruleSnapshot.scriptExpr.
        valueNum:
          type: number
          format: double
          x-nullable: true
          description: Numeric observation when available, including numeric information collected by info items. Omitted when no numeric observation exists, including manual guidance. Use with unit and thresholds for numeric displays.
        warnThreshold:
          type: number
          format: double
          x-nullable: true
          description: Warning threshold interpreted using direction and the same unit as valueNum. Omitted when no numeric warning threshold is configured.
        critThreshold:
          type: number
          format: double
          x-nullable: true
          description: Critical threshold interpreted using direction and the same unit as valueNum. Omitted when no numeric critical threshold is configured.
        direction:
          $ref: '#/components/schemas/inspectionThresholdDirection'
        criticality:
          $ref: '#/components/schemas/inspectionCriticality'
        evidence:
          $ref: '#/components/schemas/inspectionTaskItemEvidence'
        statusChangedAt:
          format: date-time
          type: string
          description: Item-level timestamp for when this item's status was last evaluated or changed.
        remediation:
          $ref: '#/components/schemas/localizedDescription'
        docLink:
          type: string
          description: Link to documentation explaining this inspection item and recommended actions.
        severity:
          type: string
          description: 'Health conclusion: red (critical), yellow (warning), green (healthy), unknown (cannot evaluate), or info (automatically collected information). Manual guidance returns unknown and retains its criticality. Unknown and info do not contribute to health scoring; Completed for manual guidance means instructions are available, not user completion.'
        unit:
          type: string
          description: Display unit for the inspection result and thresholds, such as percent, seconds, or bytes. Empty when no unit applies.
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
    inspectionTask:
      properties:
        id:
          type: string
        creator:
          type: string
        status:
          type: string
        engine:
          type: string
        orgName:
          type: string
        clusterID:
          type: string
        clusterName:
          type: string
        envName:
          type: string
        envID:
          type: string
        nodeName:
          description: Node name(s) for inspection. Multiple nodes can be specified as a comma-separated string (e.g. "node1,node2,node3").
          type: string
        isAuto:
          type: boolean
        savedDays:
          type: integer
        expiredAt:
          type: string
          format: date-time
          description: Expiration timestamp fixed when the inspection report is created from savedDays.
        score:
          type: integer
          format: int64
          x-nullable: true
          description: Weighted health score from 0 to 100 over evaluable inspection items only. Unknown results and items with info importance are excluded from both the numerator and denominator. The field is omitted when no item is evaluable. Doris and SelectDB also omit it when risk-check evidence is unavailable, and score correlated findings once per failure family. A present value of 0 is a valid evaluated score.
        result:
          type: string
          description: Task health conclusion derived from evaluable item states and criticality-aware score caps. Valid conclusions are red, yellow, green, and unknown. Unknown means no item is evaluable, or a Doris/SelectDB inspection has unavailable risk-check evidence without an observed red or yellow finding. Unavailable evidence never hides an observed red or yellow finding.
        latestRunAt:
          format: date-time
          type: string
          description: Last inspection execution timestamp used for freshness checks.
        expectedInterval:
          type: string
          description: Expected first-version inspection interval assumption, for example 1h.
        nextRunAt:
          format: date-time
          type: string
          description: Expected next inspection time derived from latestRunAt and expectedInterval.
        isStale:
          type: boolean
          description: True when the latest inspection is older than the expected interval. Stale or missing inspection data must not be displayed as healthy.
        items:
          type: array
          items:
            $ref: '#/components/schemas/inspectionTaskItem'
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        timeRangeStart:
          format: date-time
          type: string
        timeRangeEnd:
          format: date-time
          type: string
    inspectionTaskCreate:
      type: object
      properties:
        engines:
          description: Engine names to inspect in the path organization. Omit or pass an empty array to inspect all engines.
          type: array
          uniqueItems: true
          items:
            type: string
            pattern: ^[^,\s]+$
        clusterIDs:
          description: Cluster IDs to inspect in the path organization. Omit or pass an empty array to inspect all clusters selected by engines.
          type: array
          uniqueItems: true
          items:
            type: string
            pattern: ^[1-9][0-9]*$
        timeRangeStart:
          type: string
          format: date-time
          description: Start of the inspection window. If either bound is omitted, defaults to the preceding 24 hours.
        timeRangeEnd:
          type: string
          format: date-time
        savedDays:
          type: integer
          format: int64
          minimum: 0
          description: Report retention in days. Zero uses the existing default retention policy.
    inspectionTaskFormat:
      description: Specifies the format of the task in the aggregate task result.
      enum:
        - json
        - pdf
      type: string
    aggregateTaskType:
      type: string
      description: Specifies the type of the aggregate meta data.
      enum:
        - cluster
        - node
        - all
    aggregateTaskResultType:
      type: string
      description: Specifies the type of the aggregate task result.
      enum:
        - green
        - yellow
        - red
        - unknown
    aggregateTaskResultSummary:
      type: object
      properties:
        error:
          type: integer
        warning:
          type: integer
        normal:
          type: integer
        unknown:
          type: integer
          description: Number of completed tasks with no evaluable inspection item. Tasks that contain both evaluable and unknown items retain the conclusion derived from their evaluable items.
    aggregateTaskResult:
      properties:
        engine:
          type: string
        summary:
          $ref: '#/components/schemas/aggregateTaskResultSummary'
        tasks:
          type: array
          items:
            $ref: '#/components/schemas/inspectionTask'
    aggregateTaskResultList:
      type: object
      properties:
        summary:
          $ref: '#/components/schemas/aggregateTaskResultSummary'
        items:
          type: array
          items:
            $ref: '#/components/schemas/aggregateTaskResult'
    engineSchedulingPolicy:
      type: object
      description: Engine-level default scheduling policy for a specific engine and engine mode.
      properties:
        id:
          type: string
          description: Id of engine scheduling policy.
        schedulingPolicyType:
          description: Scheduling policy type applied by default to matching clusters unless overridden by a environment-level or cluster-level setting.
          $ref: '#/components/schemas/schedulingPolicyType'
        engine:
          type: string
          description: Database engine that this policy applies to. Used together with `engineMode`.
        engineMode:
          type: string
          description: Engine mode that this policy applies to, such as `standalone` or `replication`.
        description:
          type: string
          description: Human-readable description of the engine scheduling policy.
      required:
        - engine
        - engineMode
        - schedulingPolicyType
    engineNetworkModeSupported:
      type: object
      properties:
        supported:
          type: array
          items:
            $ref: '#/components/schemas/networkMode'
          description: supported network modes
        notSupportedVersions:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: not supported versions, key is networkMode, value is array of versions
    blueGreenDeploymentStatus:
      description: The status of a blue-green deployment.
      enum:
        - Maintenance
        - Synchronizing
        - Synced
        - Interrupted
        - Switched
        - Failed
        - Deleting
      type: string
    blueGreenDeploymentItem:
      description: blueGreenDeploymentItem is the response to a blue-green deployment creation request.
      properties:
        deploymentID:
          description: The ID of the blue-green deployment.
          type: string
        deploymentName:
          description: The name of the blue-green deployment.
          type: string
        blueClusterVersion:
          type: string
        greenClusterVersion:
          type: string
        blueCluster:
          $ref: '#/components/schemas/clusterListItem'
        greenCluster:
          $ref: '#/components/schemas/clusterListItem'
        deploymentStatus:
          description: The status of the blue-green deployment. This is different from the cluster status.
          $ref: '#/components/schemas/blueGreenDeploymentStatus'
        replicationLag:
          description: The lag of the replication.
          type: string
          nullable: true
        createdAt:
          description: The creation time of the blue-green deployment.
          type: string
          format: date-time
        updatedAt:
          description: The update time of the blue-green deployment.
          type: string
          format: date-time
      required:
        - deploymentID
      type: object
    blueGreenDeploymentTask:
      description: Task information of a blue-green deployment job.
      properties:
        taskId:
          description: Task ID.
          type: string
      required:
        - taskId
      type: object
    blueGreenDeploymentItemList:
      description: blueGreenDeploymentItemList is the response type for listing blue-green deployment instances.
      properties:
        items:
          description: The list of blue-green deployment instances.
          items:
            $ref: '#/components/schemas/blueGreenDeploymentItem'
          type: array
      required:
        - items
      type: object
    blueGreenDeploymentCreation:
      description: blueGreenDeploymentCreation defines the request to create a blue-green deployment.
      properties:
        deploymentName:
          description: The name of the blue-green deployment.
          type: string
        greenCluster:
          $ref: '#/components/schemas/clusterCreate'
      required:
        - greenCluster
        - deploymentName
      type: object
    blueGreenDeploymentSwitchStepStatus:
      description: The status of a step in a blue-green deployment switch.
      enum:
        - Pending
        - Running
        - Succeed
        - Failed
      type: string
    blueGreenDeploymentSwitchStep:
      description: blueGreenDeploymentSwitchStep details a step in the blue-green deployment switch process.
      type: object
      properties:
        stepName:
          description: The name of the step.
          type: string
        stepStatus:
          description: The status of the step.
          $ref: '#/components/schemas/blueGreenDeploymentSwitchStepStatus'
        stepMessage:
          description: The message of the step.
          type: string
        stepDetail:
          description: Additional details of the step.
          type: object
    blueGreenDeploymentSwitchResponse:
      description: blueGreenDeploymentSwitchResponse represents the response when switching a blue-green deployment.
      properties:
        deploymentID:
          description: The ID of the blue-green deployment.
          type: string
        taskId:
          description: Task ID.
          type: string
        taskStatus:
          $ref: '#/components/schemas/taskStatus'
        steps:
          description: The steps involved in the blue-green deployment switch.
          items:
            $ref: '#/components/schemas/blueGreenDeploymentSwitchStep'
          type: array
      required:
        - taskId
      type: object
    blueGreenDeploymentPrecheckStatus:
      description: The status of a step in a blue-green deployment precheck.
      enum:
        - Pending
        - Running
        - Succeed
        - Warning
        - Failed
      type: string
    blueGreenDeploymentPrecheckItem:
      description: blueGreenDeploymentPrecheckItem is a precheck item in the blue-green deployment precheck result.
      type: object
      properties:
        checkerName:
          description: The name of the checker.
          type: string
        checkerDesc:
          description: The description of the checker.
          type: string
        status:
          $ref: '#/components/schemas/blueGreenDeploymentPrecheckStatus'
        message:
          description: The message from the checker.
          type: string
          nullable: true
    blueGreenDeploymentPreCheckResponse:
      description: blueGreenDeploymentPreCheckResponse is the response for retrieving the precheck task of a blue-green deployment.
      properties:
        taskId:
          description: Task ID.
          type: string
        taskStatus:
          $ref: '#/components/schemas/taskStatus'
        checkers:
          description: The checkers of the precheck task.
          items:
            $ref: '#/components/schemas/blueGreenDeploymentPrecheckItem'
          type: array
      required:
        - taskId
      type: object
  responses:
    '400':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Bad Request
    '401':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Unauthorized
    '403':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Forbidden
    '404':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Not Found
    '409':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Conflict
    '413':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Payload Too Large
    '429':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Too many requests
    '500':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Internal server error
    '501':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Not Implemented
    '503':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Service Unavailable
    '504':
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIErrorResponse'
      description: Gateway Timeout
  parameters:
    startTime:
      name: start
      in: query
      description: The start of the time range for the query, unit is seconds.
      schema:
        type: integer
        format: int64
      required: true
      example: 1708848695
    endTime:
      name: end
      in: query
      description: The end of the time range for the query, unit is seconds.
      schema:
        type: integer
        format: int64
      required: true
      example: 1711354295
    orderBy:
      name: orderBy
      in: query
      description: |
        A generic orderBy construct used to specify which field to sort by in the interface. (e.g., startTime or endTime).  The validity of this field is verified by the apiserver,  and it is not required in the YAML.
      required: false
      schema:
        type: string
    sortDesc:
      name: sortDesc
      in: query
      description: Specifies the sorting direction. `true` for descending, `false` for ascending.
      schema:
        type: boolean
      required: false
      default: true
    orgName:
      in: path
      name: orgName
      required: true
      schema:
        type: string
    clusterName:
      in: path
      name: clusterName
      required: true
      schema:
        type: string
    componentName:
      in: query
      name: componentName
      schema:
        type: string
    instanceName:
      in: query
      name: instanceName
      schema:
        type: string
    filename:
      in: query
      name: filename
      schema:
        type: string
    clusterLogStartTime:
      in: query
      name: startTime
      description: Start time in epoch nanoseconds.
      required: true
      schema:
        type: string
    clusterLogEndTime:
      in: query
      name: endTime
      description: End time in epoch nanoseconds.
      required: true
      schema:
        type: string
    limit:
      in: query
      name: limit
      schema:
        type: string
    sortType:
      in: query
      name: sortType
      schema:
        $ref: '#/components/schemas/sortType'
    query:
      in: query
      name: query
      schema:
        type: string
    dashboardConfigKey:
      in: path
      name: key
      required: true
      description: Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
      schema:
        type: string
        minLength: 1
        maxLength: 512
x-tagGroups:
  - name: User
    tags:
      - user
  - name: Organization
    tags:
      - organization
      - member
      - role
      - organizationParameter
  - name: Project
    tags:
      - project
  - name: Environment
    tags:
      - environment
  - name: Cluster
    tags:
      - cluster
      - clusterLog
      - account
      - database
      - opsrequest
      - parameter
      - tag
      - metrics
      - service
      - tls
      - whitelist
      - database
      - recycleBinCluster
  - name: Backup & Restore
    tags:
      - backup
      - restore
      - backupRepo
  - name: dms
    tags:
      - dms
  - name: Operation Events
    tags:
      - event
  - name: Alert
    tags:
      - alert
      - alertConfig
      - alertReceiver
      - alertRule
      - alertMetrics
      - alertStrategy
      - alertObject
      - clusterAlertSwitch
      - alertInhibit
  - name: Parameter Template
    tags:
      - paramTpl
  - name: Engine
    tags:
      - engine
      - engineOption
      - class
  - name: Benchmark
    tags:
      - benchmark
  - name: Feature
    tags:
      - feature
  - name: disasterRecovery
    tags:
      - disasterRecovery
  - name: import
    tags:
      - import
  - name: AI
    tags:
      - AI
      - AI Agent
      - llm
  - name: billing
    tags:
      - pricing
      - billing
      - metering
  - name: blueGreenDeployment
    tags:
      - blueGreenDeployment
