discoveryrule.copy

    This method allows to copy LLD rules with all of the prototypes to the given hosts.

    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 User roles for more information.

    (boolean) Returns if the copying was successful.

    Copy an LLD rule to multiple hosts

    Copy an LLD rule to two hosts.

    Response:

    1. {
    2. "id": 1
    3. }

    CDiscoveryrule::copy() in ui/include/classes/api/services/CDiscoveryRule.php.