YugabyteDB · Capability

YugabyteDB Anywhere APIs — HA

YugabyteDB Anywhere APIs — HA. 5 operations. Lead operation: YugabyteDB Anywhere Get High Availability Config. Self-contained Naftiko capability covering one Yugabytedb business surface.

Run with Naftiko YugabytedbHA

What You Can Do

GET
Gethaconfig — YugabyteDB Anywhere Get High Availability Config
/v1/api/v1/settings/ha/config
POST
Createhaconfig — YugabyteDB Anywhere Create High Availability Config
/v1/api/v1/settings/ha/config
DELETE
Deletehaconfig — deletehaconfig
/v1/api/v1/settings/ha/config/{cuuid}
PUT
Edithaconfig — edithaconfig
/v1/api/v1/settings/ha/config/{cuuid}
GET
Generateclusterkey — YugabyteDB Anywhere Generate Cluster Key
/v1/api/v1/settings/ha/generate-key

MCP Tools

yugabytedb-anywhere-get-high-availability

YugabyteDB Anywhere Get High Availability Config

read-only idempotent
yugabytedb-anywhere-create-high-availability

YugabyteDB Anywhere Create High Availability Config

deletehaconfig

deletehaconfig

idempotent
edithaconfig

edithaconfig

idempotent
yugabytedb-anywhere-generate-cluster-key

YugabyteDB Anywhere Generate Cluster Key

read-only idempotent

Capability Spec

anywhere-v1-full-ha.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: YugabyteDB Anywhere APIs — HA
  description: 'YugabyteDB Anywhere APIs — HA. 5 operations. Lead operation: YugabyteDB Anywhere Get High Availability Config.
    Self-contained Naftiko capability covering one Yugabytedb business surface.'
  tags:
  - Yugabytedb
  - HA
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    YUGABYTEDB_API_KEY: YUGABYTEDB_API_KEY
capability:
  consumes:
  - type: http
    namespace: anywhere-v1-full-ha
    baseUri: ''
    description: YugabyteDB Anywhere APIs — HA business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-settings-ha-config
      path: /api/v1/settings/ha/config
      operations:
      - name: gethaconfig
        method: GET
        description: YugabyteDB Anywhere Get High Availability Config
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createhaconfig
        method: POST
        description: YugabyteDB Anywhere Create High Availability Config
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: request
          in: query
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v1-settings-ha-config-cUUID
      path: /api/v1/settings/ha/config/{cUUID}
      operations:
      - name: deletehaconfig
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cUUID
          in: path
          type: string
          required: true
        - name: request
          in: query
          type: string
      - name: edithaconfig
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cUUID
          in: path
          type: string
          required: true
        - name: request
          in: query
          type: string
    - name: api-v1-settings-ha-generate_key
      path: /api/v1/settings/ha/generate_key
      operations:
      - name: generateclusterkey
        method: GET
        description: YugabyteDB Anywhere Generate Cluster Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-AUTH-YW-API-TOKEN
      value: '{{env.YUGABYTEDB_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: anywhere-v1-full-ha-rest
    port: 8080
    description: REST adapter for YugabyteDB Anywhere APIs — HA. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v1/settings/ha/config
      name: api-v1-settings-ha-config
      description: REST surface for api-v1-settings-ha-config.
      operations:
      - method: GET
        name: gethaconfig
        description: YugabyteDB Anywhere Get High Availability Config
        call: anywhere-v1-full-ha.gethaconfig
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createhaconfig
        description: YugabyteDB Anywhere Create High Availability Config
        call: anywhere-v1-full-ha.createhaconfig
        with:
          request: rest.request
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/settings/ha/config/{cuuid}
      name: api-v1-settings-ha-config-cuuid
      description: REST surface for api-v1-settings-ha-config-cUUID.
      operations:
      - method: DELETE
        name: deletehaconfig
        description: deletehaconfig
        call: anywhere-v1-full-ha.deletehaconfig
        with:
          cUUID: rest.cUUID
          request: rest.request
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: edithaconfig
        description: edithaconfig
        call: anywhere-v1-full-ha.edithaconfig
        with:
          cUUID: rest.cUUID
          request: rest.request
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/settings/ha/generate-key
      name: api-v1-settings-ha-generate-key
      description: REST surface for api-v1-settings-ha-generate_key.
      operations:
      - method: GET
        name: generateclusterkey
        description: YugabyteDB Anywhere Generate Cluster Key
        call: anywhere-v1-full-ha.generateclusterkey
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: anywhere-v1-full-ha-mcp
    port: 9090
    transport: http
    description: MCP adapter for YugabyteDB Anywhere APIs — HA. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: yugabytedb-anywhere-get-high-availability
      description: YugabyteDB Anywhere Get High Availability Config
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: anywhere-v1-full-ha.gethaconfig
      outputParameters:
      - type: object
        mapping: $.
    - name: yugabytedb-anywhere-create-high-availability
      description: YugabyteDB Anywhere Create High Availability Config
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: anywhere-v1-full-ha.createhaconfig
      with:
        request: tools.request
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: deletehaconfig
      description: deletehaconfig
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: anywhere-v1-full-ha.deletehaconfig
      with:
        cUUID: tools.cUUID
        request: tools.request
      outputParameters:
      - type: object
        mapping: $.
    - name: edithaconfig
      description: edithaconfig
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: anywhere-v1-full-ha.edithaconfig
      with:
        cUUID: tools.cUUID
        request: tools.request
      outputParameters:
      - type: object
        mapping: $.
    - name: yugabytedb-anywhere-generate-cluster-key
      description: YugabyteDB Anywhere Generate Cluster Key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: anywhere-v1-full-ha.generateclusterkey
      outputParameters:
      - type: object
        mapping: $.