Elastic · Capability

Elastic Cloud API — Deployments

Elastic Cloud API — Deployments. 4 operations. Lead operation: List deployments. Self-contained Naftiko capability covering one Elastic business surface.

Run with Naftiko ElasticDeployments

What You Can Do

GET
Listdeployments — List deployments
/v1/api/v1/deployments
POST
Createdeployment — Create a deployment
/v1/api/v1/deployments
GET
Getdeployment — Get a deployment
/v1/api/v1/deployments/{deployment-id}
DELETE
Deletedeployment — Delete a deployment
/v1/api/v1/deployments/{deployment-id}

MCP Tools

list-deployments

List deployments

read-only idempotent
create-deployment

Create a deployment

get-deployment

Get a deployment

read-only idempotent
delete-deployment

Delete a deployment

idempotent

Capability Spec

cloud-deployments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Elastic Cloud API — Deployments
  description: 'Elastic Cloud API — Deployments. 4 operations. Lead operation: List deployments. Self-contained Naftiko capability
    covering one Elastic business surface.'
  tags:
  - Elastic
  - Deployments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ELASTIC_API_KEY: ELASTIC_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-deployments
    baseUri: https://api.elastic-cloud.com
    description: Elastic Cloud API — Deployments business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-deployments
      path: /api/v1/deployments
      operations:
      - name: listdeployments
        method: GET
        description: List deployments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createdeployment
        method: POST
        description: Create a deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v1-deployments-deployment_id
      path: /api/v1/deployments/{deployment_id}
      operations:
      - name: getdeployment
        method: GET
        description: Get a deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: deployment_id
          in: path
          type: string
          required: true
      - name: deletedeployment
        method: DELETE
        description: Delete a deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: deployment_id
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.ELASTIC_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: cloud-deployments-rest
    port: 8080
    description: REST adapter for Elastic Cloud API — Deployments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v1/deployments
      name: api-v1-deployments
      description: REST surface for api-v1-deployments.
      operations:
      - method: GET
        name: listdeployments
        description: List deployments
        call: cloud-deployments.listdeployments
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdeployment
        description: Create a deployment
        call: cloud-deployments.createdeployment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/deployments/{deployment-id}
      name: api-v1-deployments-deployment-id
      description: REST surface for api-v1-deployments-deployment_id.
      operations:
      - method: GET
        name: getdeployment
        description: Get a deployment
        call: cloud-deployments.getdeployment
        with:
          deployment_id: rest.deployment_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletedeployment
        description: Delete a deployment
        call: cloud-deployments.deletedeployment
        with:
          deployment_id: rest.deployment_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-deployments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Elastic Cloud API — Deployments. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-deployments
      description: List deployments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-deployments.listdeployments
      outputParameters:
      - type: object
        mapping: $.
    - name: create-deployment
      description: Create a deployment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-deployments.createdeployment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-deployment
      description: Get a deployment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-deployments.getdeployment
      with:
        deployment_id: tools.deployment_id
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-deployment
      description: Delete a deployment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: cloud-deployments.deletedeployment
      with:
        deployment_id: tools.deployment_id
      outputParameters:
      - type: object
        mapping: $.