Skip to content
Start here

Cache

Purge Cached Content
client.Cache.Purge(ctx, params) (*CachePurgeResponse, error)
POST/zones/{zone_id}/purge_cache

CacheCache Reserve

Get Cache Reserve setting
client.Cache.CacheReserve.Get(ctx, query) (*CacheReserveGetResponse, error)
GET/zones/{zone_id}/cache/cache_reserve
Change Cache Reserve setting
client.Cache.CacheReserve.Edit(ctx, params) (*CacheReserveEditResponse, error)
PATCH/zones/{zone_id}/cache/cache_reserve
Get Cache Reserve Clear
client.Cache.CacheReserve.Status(ctx, query) (*CacheReserveStatusResponse, error)
GET/zones/{zone_id}/cache/cache_reserve_clear
Start Cache Reserve Clear
client.Cache.CacheReserve.Clear(ctx, params) (*CacheReserveClearResponse, error)
POST/zones/{zone_id}/cache/cache_reserve_clear
ModelsExpand Collapse
type CacheReserve string

The identifier of the caching setting.

type CacheReserveClear string

ID of the zone setting.

type State string

The current state of the Cache Reserve Clear operation.

One of the following:
const StateInProgress State = "In-progress"
const StateCompleted State = "Completed"

CacheSmart Tiered Cache

Get Smart Tiered Cache setting
client.Cache.SmartTieredCache.Get(ctx, query) (*SmartTieredCacheGetResponse, error)
GET/zones/{zone_id}/cache/tiered_cache_smart_topology_enable
Patch Smart Tiered Cache setting
client.Cache.SmartTieredCache.Edit(ctx, params) (*SmartTieredCacheEditResponse, error)
PATCH/zones/{zone_id}/cache/tiered_cache_smart_topology_enable
Delete Smart Tiered Cache setting
client.Cache.SmartTieredCache.Delete(ctx, body) (*SmartTieredCacheDeleteResponse, error)
DELETE/zones/{zone_id}/cache/tiered_cache_smart_topology_enable

CacheVariants

Get variants setting
client.Cache.Variants.Get(ctx, query) (*VariantGetResponse, error)
GET/zones/{zone_id}/cache/variants
Change variants setting
client.Cache.Variants.Edit(ctx, params) (*VariantEditResponse, error)
PATCH/zones/{zone_id}/cache/variants
Delete variants setting
client.Cache.Variants.Delete(ctx, body) (*VariantDeleteResponse, error)
DELETE/zones/{zone_id}/cache/variants
ModelsExpand Collapse
type CacheVariant struct{…}

Variant support enables caching variants of images with certain file extensions in addition to the original. This only applies when the origin server sends the 'Vary: Accept' response header. If the origin server sends 'Vary: Accept' but does not serve the variant requested, the response will not be cached. This will be indicated with BYPASS cache status in the response headers.

ID CacheVariantID

ID of the zone setting.

ModifiedOn Timeoptional

Last time this setting was modified.

formatdate-time

CacheRegional Tiered Cache

Get Regional Tiered Cache setting
client.Cache.RegionalTieredCache.Get(ctx, query) (*RegionalTieredCacheGetResponse, error)
GET/zones/{zone_id}/cache/regional_tiered_cache
Change Regional Tiered Cache setting
client.Cache.RegionalTieredCache.Edit(ctx, params) (*RegionalTieredCacheEditResponse, error)
PATCH/zones/{zone_id}/cache/regional_tiered_cache
ModelsExpand Collapse
type RegionalTieredCache string

The identifier of the caching setting.