Domain name for API request: ecdn.tencentcloudapi.com.
This API is used to query the submission record and progress of purge tasks.
Note:
If you have migrated your ECDN service to CDN, you can use the corresponding CDN API.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common parameter. The value used for this API: DescribePurgeTasks. |
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. |
PurgeType | No | String | Purge type to be queried. url: query URL purge records; path: query directory purge records. |
StartTime | No | Timestamp | Start time, such as 2018-08-08 00:00:00 |
EndTime | No | Timestamp | End time, such as 2018-08-08 23:59:59 |
TaskId | No | String | Task ID returned during submission. Either TaskId or start time must be specified for a query. |
Offset | No | Integer | Pagination offset. Default value: 0 (starting from entry 0). |
Limit | No | Integer | Pagination limit. Default value: 20. |
Keyword | No | String | Query keyword. Please enter a domain name or full URL beginning with http(s):// . |
Status | No | String | Specified task status to be queried. fail: failed, done: succeeded, process: purging. |
Parameter Name | Type | Description |
---|---|---|
PurgeLogs | Array of PurgeTask | Purge history. |
TotalCount | Integer | Total number of tasks, which is used for pagination. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://ecdn.tencentcloudapi.com/?Action=DescribePurgeTasks
&PurgeType=ur
&TaskId=1234567
&<Common request parameters>
{
"Response": {
"RequestId": "4d5a83f8-a61f-445b-8036-5636be640bef",
"PurgeLogs": [
{
"TaskId": "153303185323131331",
"Url": "http://www.test.com/",
"Status": "Done",
"PurgeType": "url",
"FlushType": "flush",
"CreateTime": "2018-07-30 18:10:53"
}
],
"TotalCount": 20
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError.EcdnSystemError | System error. Please submit a ticket for troubleshooting. |
InvalidParameter.EcdnInterfaceError | Internal API error. Please submit a ticket for troubleshooting. |
InvalidParameter.EcdnParamError | Parameter error. Please see the sample parameters in the documentation. |
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.EcdnMigratedCdn | Please go to the CDN console for operation. |
UnauthorizedOperation.EcdnUserIsSuspended | The acceleration service has been suspended. Please restart it and try again. |
문제 해결에 도움이 되었나요?