Longhorn · Capability

Longhorn Manager API — EngineImages

Longhorn Manager API — EngineImages. 4 operations. Lead operation: Longhorn List engine images. Self-contained Naftiko capability covering one Longhorn business surface.

Run with Naftiko LonghornEngineImages

What You Can Do

GET
Listengineimages — Longhorn List engine images
/v1/v1/engineimages
POST
Createengineimage — Longhorn Create an engine image
/v1/v1/engineimages
GET
Getengineimage — Longhorn Get an engine image
/v1/v1/engineimages/{engineimagename}
DELETE
Deleteengineimage — Longhorn Delete an engine image
/v1/v1/engineimages/{engineimagename}

MCP Tools

longhorn-list-engine-images

Longhorn List engine images

read-only idempotent
longhorn-create-engine-image

Longhorn Create an engine image

longhorn-get-engine-image

Longhorn Get an engine image

read-only idempotent
longhorn-delete-engine-image

Longhorn Delete an engine image

idempotent

Capability Spec

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