capabilities.work

Purge by Surrogate Key

A 2-step recipe with Fastly. We can help you get access.

Recipe · 2 steps

Purge by Surrogate Key

with Fastly

Validate a service and purge cached objects by surrogate key.

  1. Confirm the service exists before issuing the purge.
  2. Purge all cached objects tagged with the surrogate key.
What you'll need to have ready
  • apiToken: The Fastly API token used to authenticate requests.
  • serviceId: The alphanumeric identifier of the service.
  • surrogateKey: The surrogate key tag to purge.
  • softPurge: Set to "1" to mark objects stale instead of removing them.
For your developer

Arazzo workflow fastly:purge-by-surrogate-key, 2 operations: getService → purgeBySurrogateKey. Specs on APIs.io.