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
| Parameter | Required | Description | Default |
|---|---|---|---|
[taskId] | No | Task ID returned by a purge; history is listed when omitted | — |
-d, --domain <domain> | Yes | HTTP access service domain | — |
-t, --type <type> | No | Filter by granularity: url / prefix / host | — |
-c, --cache-type <cacheType> | No | cdn / eo | — |
--limit <n> | No | Page size, at most 1000 | 20 |
--offset <n> | No | Page offset | 0 |
-e, --env-id <envId> | No | Environment ID | envId 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