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: $.