Purges file content on nodes. Specifies URL content to purge on cache nodes, and supports batch URL purging.
Operation description
Currently, the only supported service region is China (Shanghai).
Each account can submit up to 2,000 URL purge requests and 100 directory purge requests per day.
Purge and prefetch operations include the RefreshVodObjectCaches purge operation and the PreloadVodObjectCaches prefetch operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:RefreshVodObjectCaches |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ObjectPath |
string |
Yes |
The URL of the file to prefetch. Separate multiple URLs with line breaks (\n or \r\n). |
abc.com/image/1.png |
| ObjectType |
string |
No |
The type of purge. Valid values:
|
File |
| Force |
boolean |
No |
Specifies whether to purge all resources in the corresponding directory when the back-to-origin content is inconsistent with the origin server resources. Default value: false.
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RefreshTaskId |
string |
The ID of the purge task. Multiple task IDs are separated by commas (,). The returned purge task IDs are merged based on the following rules: Purge tasks (at URL granularity) submitted for the same domain name within the same second are merged into a single RefreshTaskId. If purge tasks (at URL granularity) submitted for the same domain name within the same second exceed 2,000, they are merged into one RefreshTaskId per 2,000 tasks. |
70422*****2904 |
| RequestId |
string |
The request ID. |
D61E4801-EAFF-4A63-****-FBF6CE1CFD1C |
Examples
Success response
JSON format
{
"RefreshTaskId": "70422*****2904",
"RequestId": "D61E4801-EAFF-4A63-****-FBF6CE1CFD1C"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SingleRequest.OverLimit | A maximum of 1000 URLs are supported for each request. | |
| 400 | InvalidObjectType.Malformed | The specified ObjectType is invalid. | |
| 400 | QuotaExceeded.Refresh | Your refresh attempts have exceeded the daily limit. | The daily refresh quota has been exceeded. |
| 400 | InvalidObjectPath.Malformed | The specified ObjectPath is invalid. | The ObjectPath parameter is invalid. |
| 400 | InvalidExtensiveDomain.ValueNotSupported | The specified ExtensiveDomain is not supported. | |
| 400 | QuotaPerMinuteExceeded.Refresh | You tried to refresh too frequently; please try again later. | |
| 400 | TooMany.Refresh | The refresh queue is full; please try again later. | |
| 404 | InvalidDomain.NotFound | The domain provided does not belong to you. | |
| 404 | InvalidDomain.Offline | The domain provided is offline. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.