Scaleway · Capability

IAM API — Logs

IAM API — Logs. 2 operations. Lead operation: List logs. Self-contained Naftiko capability covering one Scaleway business surface.

Run with Naftiko ScalewayLogs

What You Can Do

GET
Listlogs — List logs
/v1/iam/v1alpha1/logs
GET
Getlog — Get a log
/v1/iam/v1alpha1/logs/{log-id}

MCP Tools

list-logs

List logs

read-only idempotent
get-log

Get a log

read-only idempotent

Capability Spec

iam-logs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: IAM API — Logs
  description: 'IAM API — Logs. 2 operations. Lead operation: List logs. Self-contained Naftiko capability covering one Scaleway
    business surface.'
  tags:
  - Scaleway
  - Logs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SCALEWAY_API_KEY: SCALEWAY_API_KEY
capability:
  consumes:
  - type: http
    namespace: iam-logs
    baseUri: https://api.scaleway.com
    description: IAM API — Logs business capability. Self-contained, no shared references.
    resources:
    - name: iam-v1alpha1-logs
      path: /iam/v1alpha1/logs
      operations:
      - name: listlogs
        method: GET
        description: List logs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: order_by
          in: query
          type: string
          description: Criteria for sorting results.
        - name: organization_id
          in: query
          type: string
          description: Filter by Organization ID.
        - name: page_size
          in: query
          type: integer
          description: Number of results per page. Value must be between 1 and 100.
        - name: page
          in: query
          type: integer
          description: Page number. Value must be greater to 1.
        - name: created_after
          in: query
          type: string
          description: Defined whether or not to filter out logs created after this timestamp. (RFC 3339 format)
        - name: created_before
          in: query
          type: string
          description: Defined whether or not to filter out logs created before this timestamp. (RFC 3339 format)
        - name: action
          in: query
          type: string
          description: Defined whether or not to filter out by a specific action.
        - name: resource_type
          in: query
          type: string
          description: Defined whether or not to filter out by a specific type of resource.
        - name: search
          in: query
          type: string
          description: Defined whether or not to filter out log by bearer ID or resource ID.
    - name: iam-v1alpha1-logs-log_id
      path: /iam/v1alpha1/logs/{log_id}
      operations:
      - name: getlog
        method: GET
        description: Get a log
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: log_id
          in: path
          type: string
          description: ID of the log.
          required: true
    authentication:
      type: apikey
      key: X-Auth-Token
      value: '{{env.SCALEWAY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: iam-logs-rest
    port: 8080
    description: REST adapter for IAM API — Logs. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/iam/v1alpha1/logs
      name: iam-v1alpha1-logs
      description: REST surface for iam-v1alpha1-logs.
      operations:
      - method: GET
        name: listlogs
        description: List logs
        call: iam-logs.listlogs
        with:
          order_by: rest.order_by
          organization_id: rest.organization_id
          page_size: rest.page_size
          page: rest.page
          created_after: rest.created_after
          created_before: rest.created_before
          action: rest.action
          resource_type: rest.resource_type
          search: rest.search
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/iam/v1alpha1/logs/{log-id}
      name: iam-v1alpha1-logs-log-id
      description: REST surface for iam-v1alpha1-logs-log_id.
      operations:
      - method: GET
        name: getlog
        description: Get a log
        call: iam-logs.getlog
        with:
          log_id: rest.log_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: iam-logs-mcp
    port: 9090
    transport: http
    description: MCP adapter for IAM API — Logs. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-logs
      description: List logs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: iam-logs.listlogs
      with:
        order_by: tools.order_by
        organization_id: tools.organization_id
        page_size: tools.page_size
        page: tools.page
        created_after: tools.created_after
        created_before: tools.created_before
        action: tools.action
        resource_type: tools.resource_type
        search: tools.search
      outputParameters:
      - type: object
        mapping: $.
    - name: get-log
      description: Get a log
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: iam-logs.getlog
      with:
        log_id: tools.log_id
      outputParameters:
      - type: object
        mapping: $.