drule.update

    This method allows to update existing discovery rules.

    This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See for more information.

    Parameters

    The druleid property must be defined for each discovery rule, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.

    Additionally to the , the method accepts the following parameters.

    Examples

    Change the IP range of a discovery rule

    Change the IP range of a discovery rule to “192.168.2.1-255”.

    :

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. ]
    5. },
    6. }

    Source

    CDRule::update() in ui/include/classes/api/services/CDRule.php.