hostinterface.create
This method allows to create new host interfaces.
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.
Parameters
Returns an object containing the IDs of the created host interfaces under the property. The order of the returned IDs matches the order of the passed host interfaces.
Examples
Create a new interface
Create a secondary IP agent interface on host “30052.”
Response:
Create an interface with SNMP details
Request:
Source
CHostInterface::create() in ui/include/classes/api/services/CHostInterface.php.