Menghentikan satu rencana eksekusi preload terjadwal berdasarkan ID rencana preload. Prasyarat: (1) API ini hanya berlaku ketika status rencana eksekusi adalah Berjalan. Rencana eksekusi dengan status waiting atau failed tidak dapat dihentikan. (2) Apakah rencana eksekusi dapat mencapai status Berjalan bergantung pada apakah situs tempatnya berada telah menyelesaikan verifikasi akses (Status situs=active).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:StopScheduledPreloadExecution |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
ID rencana preload, diperoleh dari bidang SuccessExecutions[].Id yang dikembalikan oleh CreateScheduledPreloadExecutions. Sebelum memanggil API ini, buat terlebih dahulu Tugas preload dengan memanggil CreateScheduledPreloadJob, lalu buat rencana eksekusi dengan memanggil CreateScheduledPreloadExecutions. |
66599bd7397885b43804901c |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
CB1A380B-09F0-41BB-A198-72F8FD6DA2FE |
| Id |
string |
ID rencana preload. |
66599bd7397885b43804901c |
| StartTime |
string |
Pengatur waktu mulai rencana preload terjadwal, dalam format ISO 8601 (misalnya, 2024-01-01T00:00:00+Z). |
2024-05-31T17:10:48.849+08:00 |
| EndTime |
string |
Pengatur waktu akhir rencana preload terjadwal, dalam format ISO 8601 (misalnya, 2024-01-01T00:00:00+Z). |
2024-05-31T18:10:48.849+08:00 |
| Interval |
integer |
Interval eksekusi antar Batch dalam rencana preload terjadwal, dalam detik. |
60 |
| SliceLen |
integer |
Jumlah URL per Batch dalam preload terjadwal. |
10 |
| Status |
string |
Status rencana preload terjadwal. Nilai valid:
|
stopped |
| JobId |
string |
ID Tugas preload. |
665d3af3621bccf3fe29e1a4 |
| AliUid |
string |
ID akun Alibaba Cloud. |
15685865xxx14622 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CB1A380B-09F0-41BB-A198-72F8FD6DA2FE",
"Id": "66599bd7397885b43804901c",
"StartTime": "2024-05-31T17:10:48.849+08:00",
"EndTime": "2024-05-31T18:10:48.849+08:00",
"Interval": 60,
"SliceLen": 10,
"Status": "stopped",
"JobId": "665d3af3621bccf3fe29e1a4",
"AliUid": "15685865xxx14622"
}
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.