purge_key#
- ltdconveyor.fastly.purge_key(surrogate_key, service_id, api_key)#
Instant purge URLs with a given surrogate key from the Fastly caches.
- Parameters:
surrogate_key (str) – Surrogate key header (
x-amz-meta-surrogate-key
) value of objects to purge from the Fastly cache.service_id (str) – Fastly service ID.
api_key (str) – Fastly API key.
- Raises:
FastlyError – Error with the Fastly API usage.
- Return type:
Notes
This function uses Fastly’s
/service/{service}/purge/{key}
endpoint. See the Fastly Purge documentation for more information.For other Fastly APIs, consider using fastly-py.