调用本接口查询刷新和预热状态是否生效。
接口说明
目前服务地址仅支持:华东 2(上海)。
若 Taskid 与 Objectpath 都不指定,则默认查询 3 天内,第一页的数据(20 条)。Taskid 与 Objectpath 可以同时指定。
当指定 DomainName 或 Status 时,ObjectType 该项为必填。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vod:DescribeVodRefreshTasks |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| TaskId |
string |
否 |
按任务 ID 查询刷新状态。 |
70422**** |
| ObjectPath |
string |
否 |
按路径查询,准确匹配。 |
http://example.com/***.txt |
| PageNumber |
integer |
否 |
页码。 |
1 |
| ObjectType |
string |
否 |
任务类型。取值范围:
说明
当指定 DomainName 或 Status 时,ObjectType 该项为必填。 |
file |
| DomainName |
string |
否 |
域名。 |
example.com |
| Status |
string |
否 |
任务状态。取值:
|
Complete |
| PageSize |
integer |
否 |
分页大小,每页显示的条目数。默认值:20。最大值:50。 |
20 |
| StartTime |
string |
否 |
开始时间。格式为:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。 说明
仅能查询 3 天内的数据。 |
2017-01-01T12:12:20Z |
| EndTime |
string |
否 |
结束时间。格式为:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。 |
2017-01-01T12:30:20Z |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
174F6032-AA26-470D-****-36F0EB205BEE |
| PageNumber |
integer |
页码。 |
1 |
| PageSize |
integer |
整页大小。 |
10 |
| TotalCount |
integer |
总条数。 |
2 |
| Tasks |
object |
||
| Task |
array<object> |
TaskItem 组成的 Task 任务列表。 |
|
|
object |
|||
| Status |
string |
状态。取值:
|
Complete |
| CreationTime |
string |
任务对象创建时间。格式为:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。 |
2014-11-27T08:23:22Z |
| ObjectType |
string |
任务类型。取值:
|
file |
| Process |
string |
进度百分比。 |
100% |
| Description |
string |
刷新预热失败返回的错误描述。目前有三种:
|
Internal Error |
| ObjectPath |
string |
刷新对象路径。 |
http://example.com/****.txt |
| TaskId |
string |
任务 ID。 |
704225667 |
示例
正常返回示例
JSON格式
{
"RequestId": "174F6032-AA26-470D-****-36F0EB205BEE",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 2,
"Tasks": {
"Task": [
{
"Status": "Complete",
"CreationTime": "2014-11-27T08:23:22Z",
"ObjectType": "file",
"Process": "100%",
"Description": "Internal Error",
"ObjectPath": "http://example.com/****.txt",
"TaskId": "704225667"
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidTaskId.Malformed | The specified TaskId is invalid. | TaskId无效 |
| 400 | MissingTimeParameter | The StartTime and EndTime must be both specified. | 必须同时指定开始时间和结束时间 |
| 400 | MissingParameter.ObjectType | The ObjectType parameter is required if DomainName or ObjectType is specified. | |
| 400 | InvalidStartTime.Malformed | The specified StartTime is invalid. | |
| 400 | InvalidEndTime.Malformed | The specified EndTime is invalid. | |
| 400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | 结束时间早于开始时间 |
| 400 | InvalidStartTime.ValueNotSupported | The specified StartTime 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. | 每个请求最多500个域名 |
| 400 | InvalidTime | The query time cannot exceed the last 3 days. | 请求时间返回不能超过3天 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。