StackRox · Capability

API Reference — ServiceAccountService

API Reference — ServiceAccountService. 2 operations. Lead operation: ServiceAccountService. Self-contained Naftiko capability covering one Stackrox business surface.

Run with Naftiko StackroxServiceAccountService

What You Can Do

GET
Listserviceaccounts — listserviceaccounts
/v1/v1/serviceaccounts
GET
Getserviceaccount — getserviceaccount
/v1/v1/serviceaccounts/{id}

MCP Tools

listserviceaccounts

listserviceaccounts

read-only idempotent
getserviceaccount

getserviceaccount

read-only idempotent

Capability Spec

stackrox-serviceaccountservice.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Reference — ServiceAccountService
  description: 'API Reference — ServiceAccountService. 2 operations. Lead operation: ServiceAccountService. Self-contained
    Naftiko capability covering one Stackrox business surface.'
  tags:
  - Stackrox
  - ServiceAccountService
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STACKROX_API_KEY: STACKROX_API_KEY
capability:
  consumes:
  - type: http
    namespace: stackrox-serviceaccountservice
    baseUri: https://{central-host}
    description: API Reference — ServiceAccountService business capability. Self-contained, no shared references.
    resources:
    - name: v1-serviceaccounts
      path: /v1/serviceaccounts
      operations:
      - name: listserviceaccounts
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: query
          in: query
          type: string
        - name: pagination.limit
          in: query
          type: integer
        - name: pagination.offset
          in: query
          type: integer
        - name: pagination.sort_option.field
          in: query
          type: string
        - name: pagination.sort_option.reversed
          in: query
          type: boolean
    - name: v1-serviceaccounts-id
      path: /v1/serviceaccounts/{id}
      operations:
      - name: getserviceaccount
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.STACKROX_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: stackrox-serviceaccountservice-rest
    port: 8080
    description: REST adapter for API Reference — ServiceAccountService. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/serviceaccounts
      name: v1-serviceaccounts
      description: REST surface for v1-serviceaccounts.
      operations:
      - method: GET
        name: listserviceaccounts
        description: listserviceaccounts
        call: stackrox-serviceaccountservice.listserviceaccounts
        with:
          query: rest.query
          pagination.limit: rest.pagination.limit
          pagination.offset: rest.pagination.offset
          pagination.sort_option.field: rest.pagination.sort_option.field
          pagination.sort_option.reversed: rest.pagination.sort_option.reversed
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/serviceaccounts/{id}
      name: v1-serviceaccounts-id
      description: REST surface for v1-serviceaccounts-id.
      operations:
      - method: GET
        name: getserviceaccount
        description: getserviceaccount
        call: stackrox-serviceaccountservice.getserviceaccount
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stackrox-serviceaccountservice-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Reference — ServiceAccountService. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: listserviceaccounts
      description: listserviceaccounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackrox-serviceaccountservice.listserviceaccounts
      with:
        query: tools.query
        pagination.limit: tools.pagination.limit
        pagination.offset: tools.pagination.offset
        pagination.sort_option.field: tools.pagination.sort_option.field
        pagination.sort_option.reversed: tools.pagination.sort_option.reversed
      outputParameters:
      - type: object
        mapping: $.
    - name: getserviceaccount
      description: getserviceaccount
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackrox-serviceaccountservice.getserviceaccount
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.