Skip to content

Get a single edge-cache-rule by id

GET
/edge-cache-rules/{id}
id
required
string

DocumentId

OK

object
data
object
path_pattern
required

URL path pattern matched by this rule, e.g. /static/* or /api/*.

string
ttl_seconds

Cache TTL in seconds. 0 = bypass (do not cache).

integer
query_string_caching

Controls how query strings affect the cache key.

string
Allowed values: all none whitelist
cookie_forwarding

Controls whether cookies are forwarded to the origin.

string
Allowed values: all none whitelist
compress

Whether the CDN should compress eligible responses (gzip/Brotli).

boolean
allowed_methods

HTTP methods allowed through this behavior (string[]), e.g. [“GET”,“HEAD”].

is_active

Whether this rule is currently applied to the distribution.

boolean
cdn_distribution
One of:

DocumentId reference to api::cdn-distribution.cdn-distribution

string
organisation
One of:

DocumentId reference to api::organisation.organisation

string
documentId
string
id
integer
createdAt
string format: date-time
updatedAt
string format: date-time
publishedAt
string format: date-time
nullable

Missing or invalid authentication

Not authorized (tenant scope or capability)

Not found