Mengatur ulang progres tugas pra-ambil terjadwal dan memulai kembali pra-ambil dari awal. Sebelum memanggil operasi ini, Anda harus terlebih dahulu membuat tugas pra-ambil terjadwal dengan memanggil CreateScheduledPreloadJob untuk mendapatkan ID tugas yang valid, lalu meneruskan ID tersebut ke operasi ini untuk diatur ulang.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:ResetScheduledPreloadJob |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
No |
ID tugas pra-ambil terjadwal. Penting ID tugas pra-ambil terjadwal. Parameter ini wajib diisi. Anda dapat memperoleh ID dari tanggapan CreateScheduledPreloadJob setelah membuat tugas, atau mengkueri ID tugas yang ada dengan memanggil GetScheduledPreloadJob atau ListScheduledPreloadJobs. |
665d3af3621bccf3fe29e1a4 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
15C66C7B-671A-4297-9187-2C4477247A74 |
| AliUid |
string |
ID akun Alibaba Cloud. |
15685865xxx14622 |
| CreatedAt |
string |
Pengatur waktu pembuatan tugas, dalam format ISO 8601 (misalnya, 2024-01-01T00:00:00+Z). |
2024-06-02T02:23:26Z |
| Domains |
string |
Daftar nama domain yang akan di-pra-ambil. |
testurl.com |
| ErrorInfo |
string |
Paket error. |
invalid domain:test.com |
| FailedFileOss |
string |
URL OSS file yang gagal. |
https://xxxobject.oss-cn-region.aliyuncs.com/9d91_xxxxxxxxxxx_158bb6e0f97c477791209bb46bd599f7 |
| FileId |
string |
ID file daftar URL, yang digunakan untuk mengunduh. |
665d3b48621bccf3fe29e1a7 |
| Id |
string |
ID tugas. |
665d3af3621bccf3fe29e1a4 |
| InsertWay |
string |
Metode penyisipan URL. Nilai valid:
Valid values:
|
oss |
| Name |
string |
Nama tugas. |
example |
| SiteId |
integer |
ID situs. |
190007158391808 |
| TaskSubmitted |
integer |
Jumlah URL yang telah dikirim ke sistem untuk pra-ambil. |
1 |
| TaskType |
string |
Jenis tugas (refresh atau prefetch). Nilai valid:
Valid values:
|
preload |
| UrlCount |
integer |
Jumlah total URL. |
2 |
| UrlSubmitted |
integer |
Jumlah URL yang dikirim. |
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
"AliUid": "15685865xxx14622",
"CreatedAt": "2024-06-02T02:23:26Z",
"Domains": "testurl.com",
"ErrorInfo": "invalid domain:test.com",
"FailedFileOss": "https://xxxobject.oss-cn-region.aliyuncs.com/9d91_xxxxxxxxxxx_158bb6e0f97c477791209bb46bd599f7",
"FileId": "665d3b48621bccf3fe29e1a7",
"Id": "665d3af3621bccf3fe29e1a4",
"InsertWay": "oss",
"Name": "example",
"SiteId": 190007158391808,
"TaskSubmitted": 1,
"TaskType": "preload",
"UrlCount": 2,
"UrlSubmitted": 1
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | |
| 400 | InvalidJob.JobCountOfSiteFull | The maximum number of prefetch tasks for the website has been reached. Delete some unwanted ones and try again. | |
| 400 | InvalidParameter.ObjectId | Invalid task ID or execution plan ID. | |
| 400 | MissingOssUrl | OssUrl missing. Specify a valid URL of the OSS object that stores URLs to prefetch. | |
| 400 | MissingUrlList | Enter the URLs you want to prefetch. | |
| 400 | TooManyRequests | Too many requests.Please try again later. | |
| 403 | InvalidUid.PermissionDenied | You do not have the permissions to perform this operation on this resource. Check whether the specified UID is correct and has the required permissions. | |
| 404 | InvalidJob.NotFound | The task does not exist. Check whether the task ID is correct or whether the task has been deleted. | |
| 404 | LogNotFound | Failed to query the log. Check whether the task ID and execution ID are valid. | |
| 404 | InvalidExecution.NotFound | The execution plan does not exist. Check whether the parameters such as the execution ID, start time, and end time are correct. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.