Skip to content

Refresh cache

POST /prod-api/cdn/layer7/cache/refreshCache

Refresh cache

Body Request Parameters

{
  "action": 2,
  "urlList": ["http://user.qqapex.comn"]
}

Request Parameters

Name Location Type Required Chinese Name Description
Authorization header string Yes none
body body SaveRefreshVo No SaveRefreshVo none

Response Example

Success

{
  "msg": "Refresh successful",
  "code": 200
}

201 Response

{}

Response Results

Status Code Status Meaning Description 数据模型
200 [OK] Success Inline
201 [Created] Created Inline
401 [Unauthorized] Unauthorized Inline
403 [Forbidden] Forbidden Inline
404 [Not Found] Not Found Inline

Response Data Structure

Status Code 200

Name Type Required Constraints Chinese Name Description
» msg string true none none
» code integer true none none

Data Model

SaveRefreshVo

{
  "action": 0,
  "urlList": ["string"]
}

SaveRefreshVo

Properties

Name Type Required Constraints Chinese Name Description
action integer(int) false none Operation Type 1:URL preload
2:URL refresh
3:Directory refresh
urlList [string] false none URL Array type, refreshed URL, needs to carry the full path of HTTP or HTTPS