Fastly · Capability

Fastly DDoS Protection — Rules

Get and update individual Fastly DDoS Protection rules.

Fastly DDoS Protection — Rules is a Naftiko capability published by Fastly, one of 73 capabilities the APIs.io network indexes for this provider. It bundles 2 operations across the GET and PATCH methods rooted at /v1/ddos-protection/rules/{…}.

The capability includes 1 read-only operation and 1 state-changing operation. Lead operation: Get a Fastly DDoS Protection rule. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Fastly, DDoS Protection, Security, and Rules.

Run with Naftiko FastlyDDoS ProtectionSecurityRules

What You Can Do

GET
Getrule — Get DDoS rule
/v1/ddos-protection/rules/{rule-id}
PATCH
Updaterule — Update DDoS rule
/v1/ddos-protection/rules/{rule-id}

MCP Tools

get-ddos-rule

Get a Fastly DDoS Protection rule

read-only idempotent
update-ddos-rule

Update a Fastly DDoS Protection rule

idempotent

Capability Spec

ddos-protection-rules.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fastly DDoS Protection — Rules
  description: Get and update individual Fastly DDoS Protection rules.
  tags: [Fastly, DDoS Protection, Security, Rules]
  created: '2026-05-22'
  modified: '2026-05-22'
binds:
- namespace: env
  keys: { FASTLY_API_KEY: FASTLY_API_KEY }
capability:
  consumes:
  - type: http
    namespace: ddos-protection-rules
    baseUri: https://api.fastly.com
    description: Fastly DDoS Protection rule management.
    resources:
    - name: rule
      path: /ddos-protection/v1/rules/{rule_id}
      operations:
      - { name: getrule, method: GET, description: Get a rule by ID, outputRawFormat: json, outputParameters: [ { name: result, type: object, value: $. } ] }
      - { name: updaterule, method: PATCH, description: Update rule, outputRawFormat: json, outputParameters: [ { name: result, type: object, value: $. } ] }
    authentication: { type: apikey, key: Fastly-Key, value: '{{env.FASTLY_API_KEY}}', placement: header }
  exposes:
  - type: rest
    namespace: ddos-protection-rules-rest
    port: 8080
    description: REST adapter.
    resources:
    - path: /v1/ddos-protection/rules/{rule-id}
      name: rule
      description: Single DDoS rule.
      operations:
      - { method: GET, name: getrule, description: Get DDoS rule, call: ddos-protection-rules.getrule, outputParameters: [ { type: object, mapping: $. } ] }
      - { method: PATCH, name: updaterule, description: Update DDoS rule, call: ddos-protection-rules.updaterule, outputParameters: [ { type: object, mapping: $. } ] }
  - type: mcp
    namespace: ddos-protection-rules-mcp
    port: 9090
    transport: http
    description: MCP adapter.
    tools:
    - { name: get-ddos-rule, description: Get a Fastly DDoS Protection rule, hints: { readOnly: true, destructive: false, idempotent: true }, call: ddos-protection-rules.getrule, outputParameters: [ { type: object, mapping: $. } ] }
    - { name: update-ddos-rule, description: Update a Fastly DDoS Protection rule, hints: { readOnly: false, destructive: false, idempotent: true }, call: ddos-protection-rules.updaterule, outputParameters: [ { type: object, mapping: $. } ] }