Elastic.io · Capability

elastic.io Platform REST API — SSH Keys

elastic.io Platform REST API — SSH Keys. 3 operations. Lead operation: Elastic.io List SSH keys. Self-contained Naftiko capability covering one Elastic Io business surface.

Run with Naftiko Elastic IoSSH Keys

What You Can Do

GET
Listsshkeys — Elastic.io List SSH keys
/v1/sshkeys
POST
Createsshkey — Elastic.io Create an SSH key
/v1/sshkeys
DELETE
Deletesshkey — Elastic.io Delete an SSH key
/v1/sshkeys/{sshkey-id}

MCP Tools

elastic-io-list-ssh-keys

Elastic.io List SSH keys

read-only idempotent
elastic-io-create-ssh-key

Elastic.io Create an SSH key

elastic-io-delete-ssh-key

Elastic.io Delete an SSH key

idempotent

Capability Spec

platform-ssh-keys.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: elastic.io Platform REST API — SSH Keys
  description: 'elastic.io Platform REST API — SSH Keys. 3 operations. Lead operation: Elastic.io List SSH keys. Self-contained
    Naftiko capability covering one Elastic Io business surface.'
  tags:
  - Elastic Io
  - SSH Keys
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ELASTIC_IO_API_KEY: ELASTIC_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-ssh-keys
    baseUri: https://api.elastic.io/v2
    description: elastic.io Platform REST API — SSH Keys business capability. Self-contained, no shared references.
    resources:
    - name: sshkeys
      path: /sshkeys
      operations:
      - name: listsshkeys
        method: GET
        description: Elastic.io List SSH keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createsshkey
        method: POST
        description: Elastic.io Create an SSH key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: sshkeys-sshkey_id
      path: /sshkeys/{sshkey_id}
      operations:
      - name: deletesshkey
        method: DELETE
        description: Elastic.io Delete an SSH key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sshkey_id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.ELASTIC_IO_API_KEY}}'
  exposes:
  - type: rest
    namespace: platform-ssh-keys-rest
    port: 8080
    description: REST adapter for elastic.io Platform REST API — SSH Keys. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/sshkeys
      name: sshkeys
      description: REST surface for sshkeys.
      operations:
      - method: GET
        name: listsshkeys
        description: Elastic.io List SSH keys
        call: platform-ssh-keys.listsshkeys
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createsshkey
        description: Elastic.io Create an SSH key
        call: platform-ssh-keys.createsshkey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sshkeys/{sshkey-id}
      name: sshkeys-sshkey-id
      description: REST surface for sshkeys-sshkey_id.
      operations:
      - method: DELETE
        name: deletesshkey
        description: Elastic.io Delete an SSH key
        call: platform-ssh-keys.deletesshkey
        with:
          sshkey_id: rest.sshkey_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-ssh-keys-mcp
    port: 9090
    transport: http
    description: MCP adapter for elastic.io Platform REST API — SSH Keys. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: elastic-io-list-ssh-keys
      description: Elastic.io List SSH keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-ssh-keys.listsshkeys
      outputParameters:
      - type: object
        mapping: $.
    - name: elastic-io-create-ssh-key
      description: Elastic.io Create an SSH key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-ssh-keys.createsshkey
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: elastic-io-delete-ssh-key
      description: Elastic.io Delete an SSH key
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: platform-ssh-keys.deletesshkey
      with:
        sshkey_id: tools.sshkey_id
      outputParameters:
      - type: object
        mapping: $.