Zone Create

Allows you to create a new zone.

Parameters

Return Values

PHP Example

<?php
$curl_post_data = array(    
'user_key'   => 'Your User Key',    
'user_secret'  =>'Your User Secret',    
'label'   => 'Zone Label',    
'origin_url'  =>'Origin Url',    
'name' =>'Zone Name',    
'type'  => 'Zone Type' );
$request_body = json_encode($curl_post_data);
$service_url = 'https://api.medianova.com/v1/zone/create';
$ch = curl_init($service_url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");                                                                     
curl_setopt($ch, CURLOPT_POSTFIELDS, $request_body);                                                                  
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);                                                                      
curl_setopt($ch, CURLOPT_HTTPHEADER, array(                                                                              
'Content-Type: application/json',                                                                                    
'Content-Length: ' . strlen($request_body))                                                                       
); 
$response = curl_exec($ch);$decoded = json_decode($response);var_dump($decoded);  
?>

Return Example

{   
"status": true,   
"data": {     
"alias": [],     
"origin_authentication": false,     
"browser_cache": "no",     
"cdn_url": "zone.mncdn.com",     
"create_at": "2016-11-01 11:00:00",     
"sni": false,     
"edge_cache": "8#d",     
"gzip": true,     
"http2": true,     
"image_compress": true,     
"image_optimization": false,     
"label": "zone",     
"name": "zone",     
"origin_url": "http://www.medianova.com",     
"purge_username": "purgename-26aDMwAHQOb4",     
"query_string": false,     
"custom_query_string": false,     
"custom_query_string_args": [],     
"custom_headers": [],     
"robots": "disable",     
"secure_token": false,     
"shared_ssl": true,     
"status": true,     
"zone_id": 1   
}  
}