Scaleway · Capability

Managed Database for PostgreSQL and MySQL API — ACLs

Managed Database for PostgreSQL and MySQL API — ACLs. 4 operations. Lead operation: List ACL rules of a Database Instance. Self-contained Naftiko capability covering one Scaleway business surface.

Run with Naftiko ScalewayACLs

What You Can Do

GET
Listinstanceaclrules — List ACL rules of a Database Instance
/v1/rdb/v1/regions/{region}/instances/{instance-id}/acls
POST
Addinstanceaclrules — Add an ACL rule to a Database Instance
/v1/rdb/v1/regions/{region}/instances/{instance-id}/acls
PUT
Setinstanceaclrules — Set ACL rules for a Database Instance
/v1/rdb/v1/regions/{region}/instances/{instance-id}/acls
DELETE
Deleteinstanceaclrules — Delete ACL rules of a Database Instance
/v1/rdb/v1/regions/{region}/instances/{instance-id}/acls

MCP Tools

list-acl-rules-database-instance

List ACL rules of a Database Instance

read-only idempotent
add-acl-rule-database-instance

Add an ACL rule to a Database Instance

set-acl-rules-database-instance

Set ACL rules for a Database Instance

idempotent
delete-acl-rules-database-instance

Delete ACL rules of a Database Instance

idempotent

Capability Spec

database-acls.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Managed Database for PostgreSQL and MySQL API — ACLs
  description: 'Managed Database for PostgreSQL and MySQL API — ACLs. 4 operations. Lead operation: List ACL rules of a Database
    Instance. Self-contained Naftiko capability covering one Scaleway business surface.'
  tags:
  - Scaleway
  - ACLs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SCALEWAY_API_KEY: SCALEWAY_API_KEY
capability:
  consumes:
  - type: http
    namespace: database-acls
    baseUri: https://api.scaleway.com
    description: Managed Database for PostgreSQL and MySQL API — ACLs business capability. Self-contained, no shared references.
    resources:
    - name: rdb-v1-regions-region-instances-instance_id-acls
      path: /rdb/v1/regions/{region}/instances/{instance_id}/acls
      operations:
      - name: listinstanceaclrules
        method: GET
        description: List ACL rules of a Database Instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: instance_id
          in: path
          type: string
          description: UUID of the Database Instance.
          required: true
        - name: page
          in: query
          type: string
        - name: page_size
          in: query
          type: integer
      - name: addinstanceaclrules
        method: POST
        description: Add an ACL rule to a Database Instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: instance_id
          in: path
          type: string
          description: UUID of the Database Instance you want to add ACL rules to.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: setinstanceaclrules
        method: PUT
        description: Set ACL rules for a Database Instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: instance_id
          in: path
          type: string
          description: UUID of the Database Instance where the ACL rules must be set.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteinstanceaclrules
        method: DELETE
        description: Delete ACL rules of a Database Instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: instance_id
          in: path
          type: string
          description: UUID of the Database Instance you want to delete an ACL rule from.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: X-Auth-Token
      value: '{{env.SCALEWAY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: database-acls-rest
    port: 8080
    description: REST adapter for Managed Database for PostgreSQL and MySQL API — ACLs. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/rdb/v1/regions/{region}/instances/{instance-id}/acls
      name: rdb-v1-regions-region-instances-instance-id-acls
      description: REST surface for rdb-v1-regions-region-instances-instance_id-acls.
      operations:
      - method: GET
        name: listinstanceaclrules
        description: List ACL rules of a Database Instance
        call: database-acls.listinstanceaclrules
        with:
          region: rest.region
          instance_id: rest.instance_id
          page: rest.page
          page_size: rest.page_size
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addinstanceaclrules
        description: Add an ACL rule to a Database Instance
        call: database-acls.addinstanceaclrules
        with:
          region: rest.region
          instance_id: rest.instance_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setinstanceaclrules
        description: Set ACL rules for a Database Instance
        call: database-acls.setinstanceaclrules
        with:
          region: rest.region
          instance_id: rest.instance_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteinstanceaclrules
        description: Delete ACL rules of a Database Instance
        call: database-acls.deleteinstanceaclrules
        with:
          region: rest.region
          instance_id: rest.instance_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: database-acls-mcp
    port: 9090
    transport: http
    description: MCP adapter for Managed Database for PostgreSQL and MySQL API — ACLs. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-acl-rules-database-instance
      description: List ACL rules of a Database Instance
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: database-acls.listinstanceaclrules
      with:
        region: tools.region
        instance_id: tools.instance_id
        page: tools.page
        page_size: tools.page_size
      outputParameters:
      - type: object
        mapping: $.
    - name: add-acl-rule-database-instance
      description: Add an ACL rule to a Database Instance
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: database-acls.addinstanceaclrules
      with:
        region: tools.region
        instance_id: tools.instance_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: set-acl-rules-database-instance
      description: Set ACL rules for a Database Instance
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: database-acls.setinstanceaclrules
      with:
        region: tools.region
        instance_id: tools.instance_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-acl-rules-database-instance
      description: Delete ACL rules of a Database Instance
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: database-acls.deleteinstanceaclrules
      with:
        region: tools.region
        instance_id: tools.instance_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.