Docs
api
Cloud Delivery(UCDN)
DescribeNewUcdnRefreshCacheTask

Get domain refresh task status - DescribeNewUcdnRefreshCacheTask

Overview

Get domain refresh task status

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeNewUcdnRefreshCacheTask.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
TaskId.NstringThe task ID returned when submitting a taskNo
BeginTimeintThe start time of the query, in Unix Timestamp format. If there is an EndTime, BeginTime must be assigned.No
EndTimeintThe end time of the query, in Unix Timestamp format. EndTime defaults to the current time, and BeginTime defaults to the time one day before the current time.No
StatusstringThe status of the content that needs to be refreshed, enumeration values: success: successful; wait: waiting for processing; process: processing; failure: failure; unknow: unknown, all statuses are selected by default.No
OffsetintData offset, default is 0, natural numberNo
LimitintReturn data length, default is all, natural numberNo
IsDcdnbooleanWhether to accelerate the whole site by default falseNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
TotalCountintThe total number of refresh tasksNo
TaskListarray[TaskInfo]Refresh task information, refer to TaskInfoNo

Data Model

TaskInfo

Field NameTypeDescription InformationRequired
TaskIdstringThe task ID returned when submitting a taskNo
UrlListsarray[UrlProgressInfo]Information list of task url, refer to UrlProgressInfoNo
CreateTimeintThe time the refresh task was created. The format is Unix Timestamp.No
StatusstringRefresh the current status of the task, enumeration values: success: Success; wait: Queuing; process: Processing; failure: Failure; unknow: UnknownNo

UrlProgressInfo

Field NameTypeDescription InformationRequired
UrlstringSingle URL to refreshNo
CreateTimeintThe time the refresh task was created. The format is Unix Timestamp.No
FinishTimeintTask completion time. Format is Unix Timestamp.No
StatusstringRefresh the current status of the task, enumeration values: success: Success; wait: Queuing; process: Processing; failure: Failure; unknow: UnknownNo
ProgressintRefresh progress, unit %No

Example

Request Example

https://api.dezai.com/?Action=DescribeNewUcdnRefreshCacheTask
&ProjectId=xxxxxx
&TaskId.n=sHemHKgw
&BeginTime=2
&EndTime=6
&Status=JNhEgMiG
&Offset=3
&Limit=9
&IsDcdn=true

Response Example

{
  "Action": "DescribeNewUcdnRefreshCacheTaskResponse",
  "RetCode": 0,
  "TaskList": [
    {
      "CreateTime": 1548051097,
      "Status": "success",
      "TaskId": "20190121141137_4d8031d5",
      "Type": "file",
      "UrlLists": [
        {
          "CreateTime": 1548051097,
          "FinishTime": 1548051103,
          "Progress": 100,
          "Status": "success",
          "Url": "http://xxxxx/test2.jpg"
        },
        {
          "CreateTime": 1548051097,
          "FinishTime": 1548051103,
          "Progress": 100,
          "Status": "success",
          "Url": "http://xxxxx/test.jpg"
        }
      ]
    }
  ],
  "TotalCount": 2
}