object proxy.update(object/array proxies)
This method allows to update existing proxies.
(object/array) Proxy properties to be updated.
proxyid property must be defined for each proxy, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
Additionally to the standard proxy properties, the method accepts the following parameters.
|hosts||array||Hosts to be monitored by the proxy. If a host is already monitored by a different proxy, it will be reassigned to the current proxy.
The hosts must have the
|interface||object||Host interface to replace the existing interface for the passive proxy.|
(object) Returns an object containing the IDs of the updated proxies under the
Update the proxy to monitor the two given hosts.
Change the proxy to an active proxy and rename it to "Active proxy".
CProxy::update() in ui/include/classes/api/services/CProxy.php.