Purge Info
This operation returns the purge status of your requests.
Method | Link |
---|---|
GET |
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
user_key | string | Yes | API User Token |
user_secret | string | Yes | API User Secret Token |
zone_id | integer | Yes | Zone ID |
limit | int | Yes | Result count. Max 1000 row per request. |
page | int | No | Page number. Default 1. |
search | string | No | Any part of filename which can be letter or word. |
Return Values
Variable | Type |
---|---|
status | bool |
data | object |
Status Info
Status | Description |
---|---|
1 | Purge successful completed. |
-1 | No response from origin. (Origin Response Http Code: 504-301-499) |
Example PHP Code
<?php
$user_key="Your User Key";
$user_secret="Your User Secret";
$zone_id="Zone Id";
$limit="Limit Count";
$service_url = 'https://api.medianova.com/v1/zone/purge/info?user_key='.$user_key.'&user_secret='.$user_secret.'&zone_id='.$zone_id.'&limit='.$limit;
$ch = curl_init($service_url);
curl_setopt($ch,CURLOPT_CRLF, true);
$curl_response = curl_exec($ch);
curl_close($ch);
$decoded = json_decode($curl_response);
var_dump($decoded);
?>
Example Output
{
"status": true,
"data": {
"total": 11,
"limit": 10,
"page": 1,
"pages": 1,
"search": null,
"requests": [
{
"purge_id": "hidden",
"purge_date": null,
"url": "http://assets.mncdn.com/style.css",
"status": 0,
"message": "There is no file in cache."
},
{
"purge_id": "hidden",
"purge_date": null,
"url": "http://assets.mncdn.com/script.js",
"status": 0,
"message": "There is no file in cache."
},
{
"purge_id": "hidden",
"purge_date": null,
"url": "http://assets.mncdn.com/bg-img.png",
"status": 2,
"message": "The operation waiting to be processed."
},
{
"purge_id": "hidden",
"purge_date": null,
"url": "http://assets.mncdn.com/img-12.jpg",
"status": 2,
"message": "The operation waiting to be processed."
},
{
"purge_id": "hidden",
"purge_date": null,
"url": "http://assets.mncdn.com/img-12.jpg",
"status": 2,
"message": "The operation waiting to be processed."
},
{
"purge_id": "hidden",
"purge_date": "2016-10-01 10:00:21",
"url": "http://assets.mncdn.com/img-2.png",
"status": 1,
"message": "The purge operation has been successfully."
},
{
"purge_id": "hidden",
"purge_date": null,
"url": "http://assets.mncdn.com/img-1.jpg",
"status": 0,
"message": "There is no file in cache."
},
{
"purge_id": "hidden",
"purge_date": "2016-09-30 12:15:25",
"url": "http://assets.mncdn.com/img-2.png",
"status": 1,
"message": "The purge operation has been successfully."
},
{
"purge_id": "hidden",
"purge_date": null,
"url": "http://assets.mncdn.com/img-4.jpg",
"status": 0,
"message": "There is no file in cache."
},
{
"purge_id": "hidden",
"purge_date": null,
"url": "http://assets.mncdn.com/img-3.jpg",
"status": 0,
"message": "There is no file in cache."
}
]
}
}