This method allows to simultaneously add host interfaces to multiple hosts.该方法允许同时向多个主机添加主机接口。
Parameters 参数
Parameters containing the host interfaces to be created on the given hosts.包含要在给定主机上创建的主机接口的参数。
The method accepts the following parameters.该方法接受以下参数。
Examples 示例
Creating interfaces创建接口
Create an interface on two hosts.在两台主机上创建一个接口。
Request:
Response:
- {
- "jsonrpc": "2.0",
- "result": {
- "interfaceids": [
- "30069",
- "30070"
- },
- "id": 1
- }
Source 来源
CHostInterface::massAdd() in frontends/php/include/classes/api/services/CHostInterface.php.