根据预热计划ID更新一个定时预热。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Id |
string |
是 |
预热计划 ID。 |
66599bd7397885b43804901c |
| StartTime |
string |
否 |
定时预热计划开始时间,格式为 ISO 8601(如 2024-01-01T00:00:00+Z)。 |
2024-05-31T17:10:48.849+08:00 |
| EndTime |
string |
否 |
定时预热计划结束时间,格式为 ISO 8601(如 2024-01-01T00:00:00+Z)。 |
2024-05-31T18:10:48.849+08:00 |
| Interval |
integer |
否 |
定时预热计划每批执行间隔,单位秒。 |
60 |
| SliceLen |
integer |
否 |
每批定时预热 URL 个数。 |
10 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
15C66C7B-671A-4297-9187-2C4477247A123425345 |
| Id |
string |
预热计划 ID。 |
66599bd7397885b43804901c |
| StartTime |
string |
定时预热计划开始时间,格式为 ISO 8601(如 2024-01-01T00:00:00+Z)。 |
2024-05-31T17:10:48.849+08:00 |
| EndTime |
string |
定时预热计划结束时间,格式为 ISO 8601(如 2024-01-01T00:00:00+Z)。 |
2024-05-31T18:10:48.849+08:00 |
| Interval |
integer |
定时预热计划每批执行间隔,单位秒。 |
60 |
| SliceLen |
integer |
每批定时预热 URL 个数。 |
10 |
| Status |
string |
定时预热计划的状态,包括如下状态。
|
running |
| JobId |
string |
预热任务 ID。 |
665d3af3621bccf3fe29e1a4 |
| AliUid |
string |
阿里云账号 ID。 |
15685865xxx14622 |
示例
正常返回示例
JSON格式
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A123425345",
"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": "running",
"JobId": "665d3af3621bccf3fe29e1a4",
"AliUid": "15685865xxx14622"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 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. | 您提供的任务或执行计划ID不正确,请检查ID是否有效且输入无误。 |
| 400 | MissingOssUrl | OssUrl missing. Specify a valid URL of the OSS object that stores URLs to prefetch. | OssUrl字段缺失,请确保已提供有效的OSS预热任务链接。 |
| 400 | MissingUrlList | Enter the URLs you want to prefetch. | 预热的URL为空,请输入待预热的URL。 |
| 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. | 您无权操作此资源,请确认UID是否正确且具备相应权限。 |
| 404 | InvalidJob.NotFound | The task does not exist. Check whether the task ID is correct or whether the task has been deleted. | 任务不存在,请检查任务ID是否正确或该任务是否已被删除。 |
| 404 | LogNotFound | Failed to query the log. Check whether the task ID and execution ID are valid. | 未找到日志,请检查任务ID、执行ID等是否正确和有效。 |
| 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. | 执行计划不存在,请检查执行ID、开始时间或结束时间等参数是否准确无误。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。