DNSTemplatesDeleteRedirection

Delete a DNS redirection from DNS template.

Input

Parameter Value Example value
id ID van de DNS redirection
Retrieve with DNSListRedirectionsFromTemplate
Parameter is required
1245


Output

Parameter Value Example value
success command executed successfully 0 = fout
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "DNSTemplatesDeleteRedirection", "id" => "123" ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else { echo("De DNS redirection deleted from template."); } ?>