This functionality is deprecated and will be removed in upcoming versions.
object hostinterface.massadd(object parameters)
This method allows to simultaneously add host interfaces to multiple hosts.
This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(object) Parameters containing the host interfaces to be created on the given hosts.
The method accepts the following parameters.
|object/array||Hosts to be updated.
The hosts must have the
|object/array||Host interfaces to create on the given hosts.|
(object) Returns an object containing the IDs of the created host interfaces under the
Create an interface on two hosts.
CHostInterface::massAdd() in ui/include/classes/api/services/CHostInterface.php.