PurgeUrlsCache

Last updated: 2020-05-29 11:13:58

1. API Description

Domain name for API request: ecdn.tencentcloudapi.com.

This API is used to batch purge URLs. One purge task ID will be returned for each submission.

A maximum of 20 requests can be initiated per second for this API.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: PurgeUrlsCache.
Version Yes String Common parameter. The value used for this API: 2019-10-12.
Region No String Common parameter. This parameter is not required for this API.
Urls.N Yes Array of String List of URLs to be purged. The protocol header must be included.

3. Output Parameters

Parameter Name Type Description
TaskId String Purge task ID. The first ten digits are the UTC time when the task is submitted.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Purging URLs

Input Example

https://ecdn.tencentcloudapi.com/?Action=PurgeUrlsCache
&Urls.0=http://www.test.com/1.jpg&Area=mainland
&<Common request parameters>

Output Example

{
  "Response": {
    "RequestId": "4d5a83f8-a61f-445b-8036-5636be640bef",
    "TaskId": "1533045796-i60rfmzm"
  }
}

5. Developer Resources

API Explorer

This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation.EcdnConfigError Failed to update the domain name configuration. Please try again or contact customer service for assistance.
InternalError.EcdnSystemError System error. Please submit a ticket for troubleshooting.
InvalidParameter.EcdnDomainInvalidStatus Invalid domain name status.
InvalidParameter.EcdnInterfaceError Internal API error. Please submit a ticket for troubleshooting.
InvalidParameter.EcdnParamError Parameter error. Please see the sample parameters in the documentation.
InvalidParameter.EcdnPurgeWildcardNotAllowed Wildcard domain names are not supported for purging.
InvalidParameter.EcdnUrlExceedLength The URL length exceeds the limit.
LimitExceeded.EcdnPurgeUrlExceedBatchLimit The number of URLs to be purged exceeded the limit on one request.
LimitExceeded.EcdnPurgeUrlExceedDayLimit The number of URLs to be purged exceeded the daily quota.
ResourceNotFound.EcdnDomainNotExists This domain name does not exist under the account. Please check and try again.
ResourceNotFound.EcdnUserNotExists The ECDN service has not been activated. Please activate it first before using this API.
UnauthorizedOperation.EcdnCamUnauthorized No CAM policy is configured for the sub-account.
UnauthorizedOperation.EcdnUserIsSuspended The acceleration service has been suspended. Please restart it and try again.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback
Help