Anda dapat memanggil DescribeRefreshTaskById untuk mengkueri status task refresh dan prefetch di seluruh jaringan.
Deskripsi operasi
Anda dapat mengkueri data dari tiga hari terakhir.
Setiap pengguna dapat melakukan hingga 30 panggilan per detik.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:DescribeRefreshTaskById |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TaskId |
string |
Yes |
ID task yang ingin Anda kueri. Panggil operasi RefreshObjectCaches untuk mendapatkan ID task refresh atau prefetch. Anda kemudian dapat menggunakan ID task tersebut untuk mengkueri status task tersebut. Anda dapat menentukan beberapa ID task. Pisahkan dengan koma (,). Anda dapat menentukan hingga 10 ID task. |
12345678 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
Jumlah total task. |
2 |
| RequestId |
string |
ID permintaan. |
E0C2EF95-B1EC-4C93-855E-2059A7DA2B7B |
| Tasks |
array<object> |
Daftar task. |
|
|
object |
|||
| Status |
string |
Status task. Nilai yang valid:
|
Complete |
| CreationTime |
string |
Waktu saat task dibuat. Waktu dalam UTC. |
2020-08-03T08:54:23Z |
| ObjectType |
string |
Jenis task. Nilai yang valid:
|
file |
| Process |
string |
Kemajuan task dalam persentase. |
100% |
| Description |
string |
Deskripsi error jika task refresh atau prefetch gagal. Nilai yang valid:
|
Internal Error |
| ObjectPath |
string |
Jalur objek task. |
http://example.com/abc.jpg |
| TaskId |
string |
ID task. |
24840 |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 2,
"RequestId": "E0C2EF95-B1EC-4C93-855E-2059A7DA2B7B",
"Tasks": [
{
"Status": "Complete",
"CreationTime": "2020-08-03T08:54:23Z",
"ObjectType": "file",
"Process": "100%",
"Description": "Internal Error",
"ObjectPath": "http://example.com/abc.jpg",
"TaskId": "24840"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidTaskId.Malformed | The specified TaskId is invalid. | |
| 400 | InvalidObjectPath.Malformed | The specified ObjectPath is invalid. | |
| 400 | MissingTimeParameter | The StartTime and EndTime must be both specified. | You must set both the start time and the end time. |
| 400 | MissingParameter.ObjectType | The ObjectType parameter is required if DomainName or ObjectType is specified. | |
| 400 | InvalidStartTime.Malformed | The specified StartTime is invalid. | The format of the start time is invalid. Specify a valid value. |
| 400 | InvalidEndTime.Malformed | The specified EndTime is invalid. | The EndTime parameter is set in an invalid format. For more information, see the API references. |
| 400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | EndTime is earlier than StartTime. |
| 400 | InvalidStartTime.ValueNotSupported | The specified StartTime is invalid. | The specified start time is invalid. For more information, see the API references. |
| 400 | InvalidEndTime.ValueNotSupported | The specified EndTime is invalid. | |
| 400 | InvalidObjectType.ValueNotSupported | The specified ObjectType is not supported. | |
| 400 | InvalidStatus.ValueNotSupported | The specified Status is not supported. | |
| 400 | DomainNameOverLimit | A maximum of 500 domains are supported for each request. | |
| 400 | InvalidParameters | The parameters you provided are invalid. | |
| 400 | InvalidTime | The query time cannot exceed the last 3 days. | |
| 429 | TooManyRequests | Too many requests, please try again later |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.