DescribePurgeTask
1. 接口描述
调用本接口用于查询刷新状态是否在全网生效。
2. 请求参数
以下请求参数列表仅列出了接口中需要的请求参数
3. 响应结果
唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 requestId。
4. 代码示例
POST / HTTP/1.1
Host: console.zenlayer.com/api/v2/cdn
Content-Type: application/json
X-ZC-Action: DescribePurgeTask
<Common Request Params>
Request:
{
"taskId": "taskId-xxxxxxx"
}
Response:
{
"requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
"response": {
"requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
"dataSet": [
{
"path": "http://cdntest.zenlayer.com/dir/1.jpg",
"status": "Success",
"createTime": "2022-09-08T12:00:00.000Z",
"updateTime": "2022-09-08T12:00:01.000Z"
},
{
"path": "http://cdntest.zenlayer.com/dir/2.jpg",
"status": "Success",
"createTime": "2022-09-08T12:00:00.000Z",
"updateTime": "2022-09-08T12:00:01.000Z"
}
]
}
}
5. 错误码
下面包含业务逻辑中遇到的错误码,其他错误码见公共错误码