This method allows to create new proxies. 此方法用于创建新的代理

    Parameters 参数

    (object/array) Proxies to create. (object/array) 创建代理

    Additionally to the standard proxy properties, the method accepts the following parameters. 此外,此方法接受以下参数。

    (object) Returns an object containing the IDs of the created proxies under the property. The order of the returned IDs matches the order of the passed proxies.

    Examples 示例如下

    Create an active proxy 创建一个主动的代理

    Create an action proxy “Active proxy” and assign a host to be monitored by it. 创一个动作代理“Active proxy”,并分配一个由其监控的主机

    Request:

    Response:

    Create a passive proxy 创建一个反向代理

    Create a passive proxy “Passive proxy” and assign two hosts to be monitored by it. 创建一个反向代理“Passive proxy”,并分配2个由其监控的主机。

    Response:

    Source

    CProxy::create() in frontends/php/include/classes/api/services/CProxy.php.