Longhorn · Capability

Longhorn Manager API — SystemBackups

Longhorn Manager API — SystemBackups. 2 operations. Lead operation: Longhorn List system backups. Self-contained Naftiko capability covering one Longhorn business surface.

Run with Naftiko LonghornSystemBackups

What You Can Do

GET
Listsystembackups — Longhorn List system backups
/v1/v1/systembackups
POST
Createsystembackup — Longhorn Create a system backup
/v1/v1/systembackups

MCP Tools

longhorn-list-system-backups

Longhorn List system backups

read-only idempotent
longhorn-create-system-backup

Longhorn Create a system backup

Capability Spec

manager-systembackups.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Longhorn Manager API — SystemBackups
  description: 'Longhorn Manager API — SystemBackups. 2 operations. Lead operation: Longhorn List system backups. Self-contained
    Naftiko capability covering one Longhorn business surface.'
  tags:
  - Longhorn
  - SystemBackups
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LONGHORN_API_KEY: LONGHORN_API_KEY
capability:
  consumes:
  - type: http
    namespace: manager-systembackups
    baseUri: http://{longhornManagerHost}:{longhornManagerPort}
    description: Longhorn Manager API — SystemBackups business capability. Self-contained, no shared references.
    resources:
    - name: v1-systembackups
      path: /v1/systembackups
      operations:
      - name: listsystembackups
        method: GET
        description: Longhorn List system backups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createsystembackup
        method: POST
        description: Longhorn Create a system backup
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.LONGHORN_API_KEY}}'
  exposes:
  - type: rest
    namespace: manager-systembackups-rest
    port: 8080
    description: REST adapter for Longhorn Manager API — SystemBackups. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/systembackups
      name: v1-systembackups
      description: REST surface for v1-systembackups.
      operations:
      - method: GET
        name: listsystembackups
        description: Longhorn List system backups
        call: manager-systembackups.listsystembackups
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createsystembackup
        description: Longhorn Create a system backup
        call: manager-systembackups.createsystembackup
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: manager-systembackups-mcp
    port: 9090
    transport: http
    description: MCP adapter for Longhorn Manager API — SystemBackups. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: longhorn-list-system-backups
      description: Longhorn List system backups
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: manager-systembackups.listsystembackups
      outputParameters:
      - type: object
        mapping: $.
    - name: longhorn-create-system-backup
      description: Longhorn Create a system backup
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: manager-systembackups.createsystembackup
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.