Home

PHP

Delete network configuration

Delete a network configuration. Only joined or pending networks configurations can be deleted.

API Function: delete_network_configuration

API EndPoint

https://synced.io/api/v2_account?wsdl

Parameters:

Name Type Description
username string Your API username. You should have received this with your account
subscription_id string Your Subscription ID. You can copy or regenerate it from your API management interface.
configuration_id string The netwok configuration id that should be deleted.

 

Response fields:

Name Type Description
code string The result of the operation. Can be error or success
message string If code is error this filed will be filled with the error message
                    
                    

                    
                    

                    
                    
                                            
<?php   
$api_username      = '*******';
$api_subscription  = '*******';
$network_configuration_id  = '{replace with the configuration id}';
try
{

        $client     = new SoapClient('https://synced.io/api/v2_account?wsdl');
        $response   = $client->delete_network_configuration($api_username, $api_subscription, $network_configuration_id);

        print_r($response);            


} catch (Exception $e)
{

    print_r($e);
    echo $client->__getLastRequest() . "\n";
    exit;
}

?>