Skip to main content

tcb domains cache task

Query the progress of a cache purge task, or list the purge history of the last 7 days.

Usage​

# Single task
tcb domains cache task <taskId> -d <domain> [options]

# Purge history
tcb domains cache task -d <domain> [options]

Parameters​

ParameterRequiredDescriptionDefault
[taskId]NoTask ID returned by a purge; history is listed when omitted—
-d, --domain <domain>YesHTTP access service domain—
-t, --type <type>NoFilter by granularity: url / prefix / host—
-c, --cache-type <cacheType>Nocdn / eo—
--limit <n>NoPage size, at most 100020
--offset <n>NoPage offset0
-e, --env-id <envId>NoEnvironment IDenvId in the configuration

Examples​

# Progress of a single task
tcb domains cache task <taskId> -d example.com -e <envId>

# Purge history of the last 7 days
tcb domains cache task -d example.com -e <envId>

# Filter by granularity
tcb domains cache task -d example.com -e <envId> -t prefix