查询刷新任务
POST /prod-api/acdn/dcdn/refreshCacheRest/describeRefreshTasks
Body 请求参数
{
"pageSize": 10,
"userId": null,
"objectType": "file",
"domainName": "demo.ruisuyun.com",
"status": "Complete",
"params": {},
"pageNum": 1
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
Authorization | header | string | 是 | none | |
body | body | DCDNQueryRefreshListVO | 否 | DCDNQueryRefreshListVO | none |
返回示例
OK
{
"msg": "操作成功",
"code": 200,
"data": {
"total": 1,
"rows": [
{
"taskId": "17671439116",
"status": "Complete",
"process": "100%",
"objectType": "file",
"objectPath": "https://demo.123.com/",
"description": "",
"creationTime": "2024-01-25 18:03:38"
}
]
}
}
201 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | [OK] | OK | Inline |
201 | [Created] | Created | Inline |
401 | [Unauthorized] | Unauthorized | Inline |
403 | [Forbidden] | Forbidden | Inline |
404 | [Not Found] | Not Found | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» additionalProperties | object | false | none | none | |
» data | object | true | none | none | |
»» taskId | string | true | none | 任务 | none |
»» objectPath | string | true | none | 操作内容 | none |
»» status | string | true | none | 状态 | Complete:完成 Refreshing:刷新中 Failed:刷新失败 |
»» objectType | string | true | none | 操作类型 | file:URL刷新 directory:目录刷新 regex:正则刷新 preload:URL预热 |
»» creationTime | string | true | none | 操作时间 | none |
»» process | string | true | none | 进度 | none |
数据模型
DCDNQueryRefreshListVO
{
"domainName": "string",
"objectType": "string",
"pageNum": 0,
"pageSize": 0,
"params": {},
"status": "string",
"userId": 0
}
DCDNQueryRefreshListVO
属性
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
domainName | string | true | none | 域名 | none |
objectType | string | true | none | 操作类型 | file:URL刷新 directory:目录刷新 regex:正则刷新 preload:URL预热 |
pageNum | integer(int32) | true | none | 当前页数 | none |
pageSize | integer(int32) | true | none | 每页显示条目个数 | none |
params | object | false | none | none | |
status | string | true | none | 状态 | Complete:完成 Refreshing:刷新中 Failed:刷新失败 |
userId | integer(int64) | false | none | none |