Refreshes the cache based on cache tags that you configured.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cdn:RefreshObjectCacheByCacheTag | none | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DomainName | string | Yes | The accelerated domain name. | example.com |
CacheTag | string | Yes | The tags of Cache. If multiple tags are returned, the tags are separated by commas (,). | tag1,tag2 |
Force | boolean | No | Specifies whether to purge all resources that you submit if the requested content is one of the resources that you submit to purge. Default value: false.
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "2E5AD83F-BD7B-462E-8319-2E30E305519A",
"RefreshTaskId": "17772470184"
}
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 | InvalidObjectPath.Malformed | The specified ObjectPath is invalid. | - |
400 | InvalidObjectPath.Size.Malformed | The size of ObjectPath is bigger than 1000. | The number of URLs to be prefetched cannot exceed 1,000. |
400 | QuotaExceeded.Refresh | You've exceeded the prescribed refresh limits. | |
400 | QuotaExceeded.Refresh | Your refresh attempts have exceeded the daily limit. | Refresh quantity exceeds daily quota limit. |
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. | - |
400 | InvalidExtensiveDomain.ValueNotSupported | Extensive domain not supported. | This operation is not supported for wildcard domain names. |
400 | PreloadQueueFull | Preload queue is full, please try again later! | Preload queue is full, please try again later. |
400 | QuotaPerMinuteExceeded.Refresh | You've exceeded the prescribed refresh limits per minute. | - |
400 | InvalidStations.Malformed | The specified Stations is invalid. | - |
400 | InvalidParameters | The parameters you provided are invalid. | - |
For a list of error codes, visit the Service error codes.