This method allows to update existing proxies. 此方法允许更新已存在的代理
Parameters 参数
(object/array)
Proxy properties to be updated. (object/array)
代理参数被更新
The property must be defined for each proxy, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged. 每个主机必须定义proxyid
参数,其他参数是可选的。仅仅传递的参数会被更新,其他的参数将保持不变。
Additionally to the , the method accepts the following parameters. 此外standard proxy properties,此方法接受以下参数
Examples 示例如下
Change hosts monitored by a proxy 改变一个主机的代理
Update the proxy to monitor the two given hosts.
Request:
Response:
Change proxy status 改变代理的状态
Change the proxy to an active proxy and rename it to “Active proxy”. 改变代理的模式是主动模式,并且重命名为“Active proxy”.
Response:
Source
CProxy::update() in frontends/php/include/classes/api/services/CProxy.php.