object proxy.create(object/array proxies)
This method allows to create new proxies. 此方法用于创建新的代理
(object/array) Proxies to create.
|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 be created for the passive proxy.
Required for passive proxies. 创建主机接口用于被动代理
(object) Returns an object containing the IDs of the created proxies under the
proxyids property. The order of the returned IDs matches the order of the passed proxies.
Create an action proxy "Active proxy" and assign a host to be monitored by it. 创一个动作代理"Active proxy"，并分配一个由其监控的主机
Create a passive proxy "Passive proxy" and assign two hosts to be monitored by it. 创建一个反向代理"Passive proxy"，并分配2个由其监控的主机。
CProxy::create() in frontends/php/include/classes/api/services/CProxy.php.