fastly · Capability

Fastly Access Control Lists API — ACL

Fastly Access Control Lists API — ACL. 5 operations. Lead operation: List ACLs. Self-contained Naftiko capability covering one Fastly business surface.

Run with Naftiko FastlyACL

What You Can Do

GET
Listacls — List ACLs
/v1/service/{service-id}/version/{version-id}/acl
POST
Createacl — Create an ACL
/v1/service/{service-id}/version/{version-id}/acl
GET
Getacl — Get an ACL
/v1/service/{service-id}/version/{version-id}/acl/{acl-name}
PUT
Updateacl — Update an ACL
/v1/service/{service-id}/version/{version-id}/acl/{acl-name}
DELETE
Deleteacl — Delete an ACL
/v1/service/{service-id}/version/{version-id}/acl/{acl-name}

MCP Tools

list-acls

List ACLs

read-only idempotent
create-acl

Create an ACL

get-acl

Get an ACL

read-only idempotent
update-acl

Update an ACL

idempotent
delete-acl

Delete an ACL

idempotent

Capability Spec

acls-acl.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fastly Access Control Lists API — ACL
  description: 'Fastly Access Control Lists API — ACL. 5 operations. Lead operation: List ACLs. Self-contained Naftiko capability
    covering one Fastly business surface.'
  tags:
  - Fastly
  - ACL
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FASTLY_API_KEY: FASTLY_API_KEY
capability:
  consumes:
  - type: http
    namespace: acls-acl
    baseUri: https://api.fastly.com
    description: Fastly Access Control Lists API — ACL business capability. Self-contained, no shared references.
    resources:
    - name: service-service_id-version-version_id-acl
      path: /service/{service_id}/version/{version_id}/acl
      operations:
      - name: listacls
        method: GET
        description: List ACLs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createacl
        method: POST
        description: Create an ACL
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: service-service_id-version-version_id-acl-acl_name
      path: /service/{service_id}/version/{version_id}/acl/{acl_name}
      operations:
      - name: getacl
        method: GET
        description: Get an ACL
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: acl_name
          in: path
          type: string
          description: The name of the ACL.
          required: true
      - name: updateacl
        method: PUT
        description: Update an ACL
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: acl_name
          in: path
          type: string
          description: The name of the ACL.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteacl
        method: DELETE
        description: Delete an ACL
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: acl_name
          in: path
          type: string
          description: The name of the ACL.
          required: true
    authentication:
      type: apikey
      key: Fastly-Key
      value: '{{env.FASTLY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: acls-acl-rest
    port: 8080
    description: REST adapter for Fastly Access Control Lists API — ACL. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/service/{service-id}/version/{version-id}/acl
      name: service-service-id-version-version-id-acl
      description: REST surface for service-service_id-version-version_id-acl.
      operations:
      - method: GET
        name: listacls
        description: List ACLs
        call: acls-acl.listacls
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createacl
        description: Create an ACL
        call: acls-acl.createacl
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/service/{service-id}/version/{version-id}/acl/{acl-name}
      name: service-service-id-version-version-id-acl-acl-name
      description: REST surface for service-service_id-version-version_id-acl-acl_name.
      operations:
      - method: GET
        name: getacl
        description: Get an ACL
        call: acls-acl.getacl
        with:
          acl_name: rest.acl_name
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateacl
        description: Update an ACL
        call: acls-acl.updateacl
        with:
          acl_name: rest.acl_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteacl
        description: Delete an ACL
        call: acls-acl.deleteacl
        with:
          acl_name: rest.acl_name
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: acls-acl-mcp
    port: 9090
    transport: http
    description: MCP adapter for Fastly Access Control Lists API — ACL. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-acls
      description: List ACLs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: acls-acl.listacls
      outputParameters:
      - type: object
        mapping: $.
    - name: create-acl
      description: Create an ACL
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: acls-acl.createacl
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-acl
      description: Get an ACL
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: acls-acl.getacl
      with:
        acl_name: tools.acl_name
      outputParameters:
      - type: object
        mapping: $.
    - name: update-acl
      description: Update an ACL
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: acls-acl.updateacl
      with:
        acl_name: tools.acl_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-acl
      description: Delete an ACL
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: acls-acl.deleteacl
      with:
        acl_name: tools.acl_name
      outputParameters:
      - type: object
        mapping: $.