hostinterface.replacehostinterfaces
This method allows to replace all host interfaces on a given host.
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
(object)
Returns an object containing the IDs of the created host interfaces under the interfaceids
property.
Examples
Replacing host interfaces
Replace all host interfaces with a single agent interface.
Response:
"jsonrpc": "2.0",
"result": {
"interfaceids": [
]
},
"id": 1
Source
CHostInterface::replaceHostInterfaces() in ui/include/classes/api/services/CHostInterface.php.