Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Control » Updating interfaces after search (Updating interfaces after search)
  •  
N1k0l4

Messages: 8
Karma: 0
Send a private message to this user
Hi

Is there any possibility for easy update Interface using Interface.set method in api.
I want just to change enabled property for some interface.
Do I have to send all properties for that interface?

Can I do than on some easy way after searching that interface:
For example:
//first:

Quote:

$params = array(
'combining' => 'And',
"sortByGroup" => false,
"query" => array(
"conditions" => array(array(
"fieldName" => "id",
"value" => "5010cc8b-9863-3c4c-b9b1-942c0f795e0c",
"comparator" => "Eq"
)),
"orderBy" => array(array(
"columnName" => "name",
"direction" => "Asc"
))
)
);

$response = $api->sendRequest("Interfaces.get", $params);



after this, I have interface in my $response.
If I change
$response['list'][0]['enabled'] = false;
Is there any method to generate entire $params for sending request for Interface.set or I must do that by myself

Thanks

-*
  •  
N1k0l4

Messages: 8
Karma: 0
Send a private message to this user
Oh, I found solution. Very simple

$params = array(
"ids" => array($response['list'][0]['id']),
"details"=> $response['list'][0]

);


-*
Previous Topic: Kerio 3130 Licence
Next Topic: Custom DynDNS - Service
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sun Dec 11 10:58:06 CET 2016

Total time taken to generate the page: 0.00658 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.