Skip to main content

Zone SNI Delete

Allows you to delete an SNI for a zone. If you delete the SNI, the HTTP2 feature will be disabled.

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

Return Values

Variable

Type

status

bool

data

object

Example PHP Code

CODE
<?php

$data = array(
       "user_key": "user_key",
      "user_secret": "user_secret",
      "zone_id": zone_id
      );

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "http://api-local.medianova.com/v1/zone/sni/delete",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode($data),
  CURLOPT_HTTPHEADER => array(
    "Content-Type: application/json",
    "Postman-Token: 54299e68-95ca-446b-80fc-860c38e6ed43",
    "cache-control: no-cache"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

Example Output

CODE
{  
"status": true,  
"data": {    
"alias": [],    
"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_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"    
]  
}
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.