UrlPurgeBatch【推送URL】¶
推送URL:可使用需要推送的URL域名来推送信息。如果不指定任何推送条件,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
urls | Array | 需要推送的 URL | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
data | Dict | 推送URL信息返回列表,每项参数可见下面 Data Item |
Data Item
Name | Type | Description |
---|---|---|
created_at | String | 推送时间 |
type | String | 类型 |
result | String | 推送结果 |
request_id | String | 推送请求 ID |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json
JSON Data:
{
"action": "UrlPurgeBatch",
"urls": [
"http://abc.com/index.html"
]
}
Example Response:
{
"message": "Success",
"code": 200,
"data": {
"created_at": "2015-02-10T02:44:58.322472",
"type": "cache",
"result": "success",
"request_id": "e88b1248-33b5-4198-a953-e068f65c294e"
}
}