全部產品
Search
文件中心

Edge Security Acceleration:DescribeDcdnRefreshTasks - 查詢重新整理預熱任務

更新時間:Jan 26, 2026

調用DescribeDcdnRefreshTasks查詢重新整理、預熱狀態是否在全網生效,支援查詢3天內的資料。

介面說明

  • 您可以根據任務 ID 或 URL 進行查詢。

  • 支援同時指定 TaskIdObjectPath,如果 TaskIdObjectPath 都不指定,預設查詢 3 天內第一頁的資料(20 條)。

  • 只可查詢最近 3 天內的資料。

  • 當您指定 DomainNameStatus 時,必須填寫 ObjectType

  • 單使用者調用頻率:5 次/秒。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

dcdn:DescribeDcdnRefreshTasks

get

domain

acs:dcdn:*:{#accountId}:domain/{#domainName}

請求參數

名稱

類型

必填

描述

樣本值

TaskId

string

任務 ID,當您建立重新整理或預熱任務,會返回任務 ID。

704225667

ObjectPath

string

按路徑查詢,準確匹配。

http://example.com/examplefile.txt

PageNumber

integer

取得頁數。取值範圍為:1~100000

2

ObjectType

string

任務類型。

  • file:重新整理 URL。

  • directory:重新整理目錄。

  • regex:正則重新整理。

  • preload:預熱 URL。

當指定 DomainNameStatus 時,該參數必填。

file

DomainName

string

加速網域名稱,僅支援單個查詢,預設查詢所有加速網域名稱。

example.com

Status

string

任務狀態。

  • Complete:完成。

  • Refreshing:處理中。

  • Timeout:逾時未執行。

  • Canceled:取消。

  • Failed:失敗。

Complete

PageSize

integer

分頁大小。預設值:20,最大值:50,取值範圍:1~50

20

StartTime

string

開始時間。日期格式按照 ISO8601 標記法,並使用 UTC 時間,格式為 yyyy-MM-ddTHH:mm:ssZ。

2017-01-01T12:12:20Z

EndTime

string

結束時間。日期格式按照 ISO8601 標記法,並使用 UTC 時間,格式為 yyyy-MM-ddTHH:mm:ssZ。

說明

結束時間需大於起始時間。

2017-01-01T12:13:20Z

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

174F6032-AA26-470D-B90E-36F0EB205BEE

PageNumber

integer

頁碼。

2

PageSize

integer

整頁大小。

2

TotalCount

integer

任務數量。

20

Tasks

object

Task

array<object>

工作清單。

object

Status

string

狀態。

  • Complete:完成。

  • Refreshing:重新整理中。

  • Failed:重新整理失敗。

Complete

CreationTime

string

任務對象建立時間。為 UTC 時間。

2014-11-27T08:23:22Z

ObjectType

string

任務類型。

  • file:重新整理 URL。

  • path:重新整理目錄。

  • regex:正則重新整理。

  • preload:預熱 URL。

file

Process

string

進度百分比。

10

Description

string

重新整理預熱失敗返回錯誤描述。

  • InternalError:內部錯誤。

  • OriginTimeout:來源站點響應逾時。

  • OriginReturn StatusCode 5XX:來源站點響應 5xx 錯誤碼。

InternalError

ObjectPath

string

重新整理物件路徑。

http://example.com/examplefile.txt

TaskId

string

任務 ID。

123

樣本

正常返回樣本

JSON格式

{
  "RequestId": "174F6032-AA26-470D-B90E-36F0EB205BEE",
  "PageNumber": 2,
  "PageSize": 2,
  "TotalCount": 20,
  "Tasks": {
    "Task": [
      {
        "Status": "Complete",
        "CreationTime": "2014-11-27T08:23:22Z",
        "ObjectType": "file",
        "Process": "10",
        "Description": "InternalError",
        "ObjectPath": "http://example.com/examplefile.txt",
        "TaskId": "123"
      }
    ]
  }
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 InvalidTaskId.Malformed The specified TaskId is invalid. TaskId錯誤,請填寫正確的TaskId。
400 MissingParameter.ObjectType The ObjectType parameter is required if DomainName or ObjectType is specified. 請填寫ObjectType。
400 MissingTimeParameter The StartTime and EndTime must be both specified. 請同時提供開始時間和結束時間。
400 InvalidEndTime.Mismatch The specified EndTime is earlier than the StartTime. 結束時間早於開始時間,請檢查。
400 DomainNameOverLimit A maximum of 500 domains are supported for each request. 一次最多隻支援500個網域名稱,請減少網域名稱重新請求。
400 InvalidTime The query time cannot exceed the last 3 days. 查詢時間不能超過最近3天。
400 InvalidStartTime.Malformed The specified StartTime parameter is invalid. 請提供正確的開始時間格式。日期格式按照ISO8601標記法,並使用UTC時間,格式為:yyyy-MM-ddTHH:mm:ssZ。
400 InvalidEndTime.Malformed The specified EndTime is invalid. 請提供正確的結束時間格式。日期格式按照ISO8601標記法,並使用UTC時間。 格式為:yyyy-MM-ddTHH:mm:ssZ。
400 InvalidStartTime.ValueNotSupported The specified StartTime is invalid. 不支援該開始時間,請重新填寫。
400 InvalidObjectType.ValueNotSupported The specified ObjectType is not supported. ObjectType錯誤,請重新填寫ObjectType。
400 InvalidStatus.ValueNotSupported The specified Status is not supported. Status錯誤,請填寫正確的Status。
429 TooManyRequests The server is busy. Please try again later. 伺服器忙,請稍後再試

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情