Panggil operasi DescribeDcdnRefreshTasks untuk menanyakan status task refresh dan prefetch. Anda dapat mengambil data yang dihasilkan dalam tiga hari terakhir.
Deskripsi operasi
Anda dapat menanyakan task berdasarkan ID task atau URL.
Anda dapat menentukan TaskId dan ObjectPath sekaligus. Jika tidak menentukan keduanya, sistem secara default akan mengambil halaman pertama data (20 entri) yang dihasilkan dalam tiga hari terakhir.
Data yang tersedia mencakup periode tiga hari terakhir.
Jika Anda menentukan DomainName atau Status, Anda juga harus menentukan ObjectType.
Batas panggilan maksimum per pengguna adalah 5 kali per detik.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:DescribeDcdnRefreshTasks |
get |
domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TaskId |
string |
No |
ID task. ID task dikembalikan setelah Anda membuat task refresh atau prefetch. |
704225667 |
| ObjectPath |
string |
No |
Jalur objek yang ingin Anda tanyakan. Jalur tersebut harus sesuai persis. |
http://example.com/examplefile.txt |
| PageNumber |
integer |
No |
Nomor halaman yang dikembalikan. Nilai yang valid: 1 hingga 100000. |
2 |
| ObjectType |
string |
No |
Jenis task. Nilai yang valid:
Parameter ini wajib ditentukan jika Anda menentukan DomainName atau Status. |
file |
| DomainName |
string |
No |
Nama domain yang dipercepat. Anda hanya dapat menentukan satu nama domain. Jika Anda tidak menentukan parameter ini, semua nama domain yang dipercepat akan ditanyakan. |
example.com |
| Status |
string |
No |
Status task. Nilai yang valid:
|
Complete |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman. Nilai default: 20. Nilai maksimum: 50. Nilai yang valid: 1 hingga 50. |
20 |
| StartTime |
string |
No |
Awal rentang waktu untuk ditanyakan. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam Coordinated Universal Time (UTC). |
2017-01-01T12:12:20Z |
| EndTime |
string |
No |
Akhir rentang waktu untuk ditanyakan. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC. Catatan
Waktu akhir harus lebih lambat daripada waktu mulai. |
2017-01-01T12:13:20Z |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
174F6032-AA26-470D-B90E-36F0EB205BEE |
| PageNumber |
integer |
Nomor halaman. |
2 |
| PageSize |
integer |
Jumlah entri per halaman. |
2 |
| TotalCount |
integer |
Jumlah total task. |
20 |
| Tasks |
object |
||
| Task |
array<object> |
Daftar task. |
|
|
object |
|||
| Status |
string |
Status task. Nilai yang valid:
|
Complete |
| CreationTime |
string |
Waktu saat task dibuat. Waktu dalam UTC. |
2014-11-27T08:23:22Z |
| ObjectType |
string |
Jenis task. Nilai yang valid:
|
file |
| Process |
string |
Kemajuan task dalam persentase. |
10 |
| Description |
string |
Pesan kesalahan yang dikembalikan jika task refresh atau prefetch gagal.
|
InternalError |
| ObjectPath |
string |
Jalur objek yang direfresh. |
http://example.com/examplefile.txt |
| TaskId |
string |
ID task. |
123 |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidTaskId.Malformed | The specified TaskId is invalid. | The value specified for the TaskId parameter is invalid. |
| 400 | MissingParameter.ObjectType | The ObjectType parameter is required if DomainName or ObjectType is specified. | Specify the ObjectType parameter. |
| 400 | MissingTimeParameter | The StartTime and EndTime must be both specified. | You must set both the start time and the end time. |
| 400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | The end time is earlier than the start time. |
| 400 | DomainNameOverLimit | A maximum of 500 domains are supported for each request. | The number of domain names cannot exceed 500. |
| 400 | InvalidTime | The query time cannot exceed the last 3 days. | You can query data up to the last three days. |
| 400 | InvalidStartTime.Malformed | The specified StartTime parameter is invalid. | The format of the specified start time is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
| 400 | InvalidEndTime.Malformed | The specified EndTime is invalid. | The format of the specified end time is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
| 400 | InvalidStartTime.ValueNotSupported | The specified StartTime is invalid. | The specified start time is invalid. |
| 400 | InvalidObjectType.ValueNotSupported | The specified ObjectType is not supported. | The specified ObjectType parameter is invalid. |
| 400 | InvalidStatus.ValueNotSupported | The specified Status is not supported. | The specified Status parameter is invalid. |
| 429 | TooManyRequests | The server is busy. Please try again later. | The server is unavailable. Try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.