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.
(object/array)
Proxy groups to create.
The method accepts proxy groups with the standard proxy group properties.
(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.
Create a proxy group with custom settings.
{
"jsonrpc": "2.0",
"method": "proxygroup.create",
"params": {
"name": "Proxy group",
"failover_delay": "5m",
"min_online": "10"
},
"id": 1
}
Response:
CProxyGroup::create() in ui/include/classes/api/services/CProxyGroup.php.