object proxy.create(object/array proxies)
This method allows to create new proxies.
This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(object/array) Proxies to create.
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 be created for the passive proxy.
Required for passive proxies.
(object) Restituisce un oggetto contenente gli ID dei proxy creati sotto la proprietà
proxyids. L'ordine degli ID restituiti corrisponde all' ordine dei proxy passati.
Create an action proxy "Active proxy" and assign a host to be monitored by it.
Create a passive proxy "Passive proxy" and assign two hosts to be monitored by it.
CProxy::create() in ui/include/classes/api/services/CProxy.php.