This is a translation of the original English documentation page. Help us make it better.

proxygroup.create

Description

object proxygroup.create(object/array proxyGroups)

This method allows to create new proxy groups.

This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.

Parameters

(object/array) Proxy groups to create.

The method accepts proxy groups with the standard proxy group properties.

Return values

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

プロキシグループを作成する

カスタム設定でプロキシグループを作成します。

リクエスト :

{
           "jsonrpc": "2.0",
           "method": "proxygroup.create",
           "params": {
               "name": "Proxy group",
               "failover_delay": "5m",
               "min_online": "10"
           },
           "id": 1
       }
Copy
✔ Copied

レスポンス :

{
           "jsonrpc": "2.0",
           "result": {
               "proxy_groupids": [
                   "5"
               ]
           },
           "id": 1
       }
Copy
✔ Copied

ソース

CProxyGroup::create() in ui/include/classes/api/services/CProxyGroup.php.

To toggle search highlight, press Ctrl+Alt+H
Have an improvement suggestion for this page? Select the text that could be improved and press Ctrl+Enter to send it to the editors.