OpenSearch · Capability

OpenSearch Security Plugin REST API — Nodes DN

OpenSearch Security Plugin REST API — Nodes DN. 4 operations. Lead operation: List all node DN entries. Self-contained Naftiko capability covering one Opensearch business surface.

Run with Naftiko OpensearchNodes DN

What You Can Do

GET
Listnodesdn — List all node DN entries
/v1/plugins/security/api/nodesdn
GET
Getnodesdn — Get node DN entry
/v1/plugins/security/api/nodesdn/{name}
PUT
Createorreplacenodesdn — Create or replace node DN entry
/v1/plugins/security/api/nodesdn/{name}
DELETE
Deletenodesdn — Delete node DN entry
/v1/plugins/security/api/nodesdn/{name}

MCP Tools

list-all-node-dn-entries

List all node DN entries

read-only idempotent
get-node-dn-entry

Get node DN entry

read-only idempotent
create-replace-node-dn-entry

Create or replace node DN entry

idempotent
delete-node-dn-entry

Delete node DN entry

idempotent

Capability Spec

security-nodes-dn.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenSearch Security Plugin REST API — Nodes DN
  description: 'OpenSearch Security Plugin REST API — Nodes DN. 4 operations. Lead operation: List all node DN entries. Self-contained
    Naftiko capability covering one Opensearch business surface.'
  tags:
  - Opensearch
  - Nodes DN
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENSEARCH_API_KEY: OPENSEARCH_API_KEY
capability:
  consumes:
  - type: http
    namespace: security-nodes-dn
    baseUri: https://{cluster-host}:9200
    description: OpenSearch Security Plugin REST API — Nodes DN business capability. Self-contained, no shared references.
    resources:
    - name: _plugins-_security-api-nodesdn
      path: /_plugins/_security/api/nodesdn
      operations:
      - name: listnodesdn
        method: GET
        description: List all node DN entries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: _plugins-_security-api-nodesdn-name
      path: /_plugins/_security/api/nodesdn/{name}
      operations:
      - name: getnodesdn
        method: GET
        description: Get node DN entry
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createorreplacenodesdn
        method: PUT
        description: Create or replace node DN entry
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletenodesdn
        method: DELETE
        description: Delete node DN entry
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.OPENSEARCH_USER}}'
      password: '{{env.OPENSEARCH_PASS}}'
  exposes:
  - type: rest
    namespace: security-nodes-dn-rest
    port: 8080
    description: REST adapter for OpenSearch Security Plugin REST API — Nodes DN. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/plugins/security/api/nodesdn
      name: plugins-security-api-nodesdn
      description: REST surface for _plugins-_security-api-nodesdn.
      operations:
      - method: GET
        name: listnodesdn
        description: List all node DN entries
        call: security-nodes-dn.listnodesdn
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/plugins/security/api/nodesdn/{name}
      name: plugins-security-api-nodesdn-name
      description: REST surface for _plugins-_security-api-nodesdn-name.
      operations:
      - method: GET
        name: getnodesdn
        description: Get node DN entry
        call: security-nodes-dn.getnodesdn
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createorreplacenodesdn
        description: Create or replace node DN entry
        call: security-nodes-dn.createorreplacenodesdn
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletenodesdn
        description: Delete node DN entry
        call: security-nodes-dn.deletenodesdn
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: security-nodes-dn-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenSearch Security Plugin REST API — Nodes DN. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-all-node-dn-entries
      description: List all node DN entries
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: security-nodes-dn.listnodesdn
      outputParameters:
      - type: object
        mapping: $.
    - name: get-node-dn-entry
      description: Get node DN entry
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: security-nodes-dn.getnodesdn
      outputParameters:
      - type: object
        mapping: $.
    - name: create-replace-node-dn-entry
      description: Create or replace node DN entry
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: security-nodes-dn.createorreplacenodesdn
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-node-dn-entry
      description: Delete node DN entry
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: security-nodes-dn.deletenodesdn
      outputParameters:
      - type: object
        mapping: $.