内容分发网络 CDN-创建预热缓存任务:响应消息

时间:2024-04-23 16:29:51

响应消息

响应参数

响应参数如表3所示。

表3 响应参数

名称

参数类型

描述

id

String

任务id。

task_type

String

任务的类型, 其值可以为refresh| preheating。

status

String

预热结果。task_done表示预热成功

,task_inprocess表示预热中。

processing

Integer

处理中的url个数。

succeed

Integer

成功处理的url个数。

failed

Integer

处理失败的url个数。

total

Integer

总共的任务个数。

create_time

Integer

任务创建时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。

urls

Array of strings

预热的url。

响应示例
{
  "preheatingTask" : {
    "id" : "ff8080*********************c6e",
    "status" : "task_inprocess",
    "processing" : 2,
    "succeed" : 0,
    "failed" : 0,
    "urls" : [ "http://www.example1.com/index.html", "http://www.example2.com/web" ],
    "task_type" : "preheating",
    "total" : 2,
    "create_time" : 0
  }
}
support.huaweicloud.com/api-cdn/cdn_02_0046.html