Apache Ranger · Capability

Apache Ranger REST API — Audit

Apache Ranger REST API — Audit. 1 operations. Lead operation: Apache Ranger Get Access Audit. Self-contained Naftiko capability covering one Apache Ranger business surface.

Run with Naftiko Apache RangerAudit

What You Can Do

GET
Getaccessaudit — Apache Ranger Get Access Audit
/v1/audit/access

MCP Tools

apache-ranger-get-access-audit

Apache Ranger Get Access Audit

read-only idempotent

Capability Spec

rest-audit.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache Ranger REST API — Audit
  description: 'Apache Ranger REST API — Audit. 1 operations. Lead operation: Apache Ranger Get Access Audit. Self-contained
    Naftiko capability covering one Apache Ranger business surface.'
  tags:
  - Apache Ranger
  - Audit
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_RANGER_API_KEY: APACHE_RANGER_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-audit
    baseUri: https://ranger.example.com/service
    description: Apache Ranger REST API — Audit business capability. Self-contained, no shared references.
    resources:
    - name: audit-access
      path: /audit/access
      operations:
      - name: getaccessaudit
        method: GET
        description: Apache Ranger Get Access Audit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: startDate
          in: query
          type: string
        - name: endDate
          in: query
          type: string
        - name: user
          in: query
          type: string
        - name: resource
          in: query
          type: string
    authentication:
      type: basic
      username: '{{env.APACHE_RANGER_USER}}'
      password: '{{env.APACHE_RANGER_PASS}}'
  exposes:
  - type: rest
    namespace: rest-audit-rest
    port: 8080
    description: REST adapter for Apache Ranger REST API — Audit. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/audit/access
      name: audit-access
      description: REST surface for audit-access.
      operations:
      - method: GET
        name: getaccessaudit
        description: Apache Ranger Get Access Audit
        call: rest-audit.getaccessaudit
        with:
          startDate: rest.startDate
          endDate: rest.endDate
          user: rest.user
          resource: rest.resource
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-audit-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache Ranger REST API — Audit. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: apache-ranger-get-access-audit
      description: Apache Ranger Get Access Audit
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-audit.getaccessaudit
      with:
        startDate: tools.startDate
        endDate: tools.endDate
        user: tools.user
        resource: tools.resource
      outputParameters:
      - type: object
        mapping: $.