Fixed api function

Former-commit-id: 9b376941609b04ac13da551e8253d5ed5a8085dc
This commit is contained in:
samucarc 2018-12-17 17:56:01 +01:00
parent 58289e73bc
commit a9d3d81757
1 changed files with 10 additions and 1 deletions

View File

@ -6449,7 +6449,16 @@ function api_set_update_snmp_module_policy($id, $thrash1, $other, $thrash3) {
array('type' => 'string', 'data' => __('SNMP policy module updated.'))); array('type' => 'string', 'data' => __('SNMP policy module updated.')));
} }
/**
* Remove an agent from a policy.
* @param $id Id of the policy
* @param $id2 Id of the agent policy
* @param $trash1
* @param $trash2
*
* Example:
* api.php?op=set&op2=remove_agent_from_policy&apipass=1234&user=admin&pass=pandora&id=11&id2=2
*/
function api_set_remove_agent_from_policy ($id, $id2, $thrash2, $thrash3) { function api_set_remove_agent_from_policy ($id, $id2, $thrash2, $thrash3) {
global $config; global $config;