調用DescribeDcdnRefreshTasks查詢重新整理、預熱狀態是否在全網生效,支援查詢3天內的資料。
介面說明
您可以根據任務 ID 或 URL 進行查詢。
支援同時指定 TaskId 與 ObjectPath,如果 TaskId 與 ObjectPath 都不指定,預設查詢 3 天內第一頁的資料(20 條)。
只可查詢最近 3 天內的資料。
當您指定 DomainName 或 Status 時,必須填寫 ObjectType。
單使用者調用頻率:5 次/秒。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dcdn:DescribeDcdnRefreshTasks |
get |
domain
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| TaskId |
string |
否 |
任務 ID,當您建立重新整理或預熱任務,會返回任務 ID。 |
704225667 |
| ObjectPath |
string |
否 |
按路徑查詢,準確匹配。 |
http://example.com/examplefile.txt |
| PageNumber |
integer |
否 |
取得頁數。取值範圍為:1~100000。 |
2 |
| ObjectType |
string |
否 |
任務類型。
當指定 DomainName 或 Status 時,該參數必填。 |
file |
| DomainName |
string |
否 |
加速網域名稱,僅支援單個查詢,預設查詢所有加速網域名稱。 |
example.com |
| Status |
string |
否 |
任務狀態。
|
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 |
| CreationTime |
string |
任務對象建立時間。為 UTC 時間。 |
2014-11-27T08:23:22Z |
| ObjectType |
string |
任務類型。
|
file |
| Process |
string |
進度百分比。 |
10 |
| Description |
string |
重新整理預熱失敗返回錯誤描述。
|
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. | 伺服器忙,請稍後再試 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。