Zone Detail
Returns the zone details.
Method | Link |
---|---|
GET |
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
user_key | string | Yes | API User Key |
user_secret | string | Yes | API User Secret |
zone_id | integer | Yes | Zone ID |
Return Values
Variable | Type |
---|---|
status | bool |
data | object |
Example Output
CODE
<?php
$user_key="Your User Key";
$user_secret="Your User Secret";
$zone_id="Zone Id";
$service_url = 'https://api.medianova.com/v1/zone/detail?user_key='.$user_key.'&user_secret='.$user_secret.'&zone_id='.$zone_id;
$ch = curl_init($service_url);
curl_setopt($ch,CURLOPT_CRLF, true);
$curl_response = curl_exec($ch);
curl_close($curl);$decoded = json_decode($curl_response);?>
{"status": true, "data": {
"alias": [
"alias.medianova.com"
],
"origin_authentication": {
"username": "username",
"password": "pass"
},
"browser_cache": "2h",
"cdn_url": "cdn_url.mncdn.com",
"create_at": "2016-08-20 11:00:00",
"sni": false,
"edge_cache": "7#d",
"gzip": true,
"http2": false,
"zone_id": 1,
"image_compress": true,
"label": "cdnlabel",
"name": "cdn_url",
"origin_url": "https://www.medianova.com",
"query_string": false,
"custom_404": "",
"custom_query_string": false,
"custom_query_string_args": [],
"custom_headers": [],
"robots": "disable",
"secure_token": false,
"secure_token_code": false,
"shared_ssl": false,
"status": true,
"whitelist": [
"whitelist1.mncdn.com",
"whitelist2.mncdn.com"
]
}
}