This API toggles the restrict group lookup flag on a Request Server. When enabled, this option will restrict group lookups from this request server to clients with the same @organization in their name. The request server does not need to be active for this restriction to be processed.
You can only enable restrict on a server with a name that includes @org (e.g. server@example).
Parameters:
Argument |
Required |
Type |
Description |
ip |
yes |
string |
The request server IP. |
restrict |
yes |
boolean |
A Boolean value 0 or 1 will set the flag to off or on. |
format |
no |
string |
The format of the output for the API: text, json or xml. The default is text. |
callback |
no |
string |
This only works with Direct APIs. This is a JavaScript function that should be called after the API is completed. This function will be called with the response of the API. Please note: It can only be used when requesting this API via AJAX request. |
Example
servername/webadmin/api/requestserver_restrict.php?ip=VALUE&restrict=VALUE
Output:
OK: Modified request server 'xxx.xxx.xxx.xx' successfully
ERROR: You must have a @organization in the Site Name 'servername' to restrict group lookups
Netsweeper Version: 6.3.7