This is a translation of the original English documentation page. Help us make it better.

discoveryruleprototype.delete

Description

object discoveryruleprototype.delete(array lldRuleIds)

This method allows to delete LLD rule prototypes.

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.

Parameters

(array) IDs of the LLD rule prototypes to delete.

Return values

(object) Returns an object containing the IDs of the deleted LLD rule prototypes under the ruleids property.

Примери

Deleting multiple LLD rule prototypes

Delete two LLD rule prototypes.

Request:

{
           "jsonrpc": "2.0",
           "method": "discoveryruleprototype.delete",
           "params": [
               "47252",
               "47253"
           ],
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "ruleids": [
                   "47252",
                   "47253"
               ]
           },
           "id": 1
       }

Source

CDiscoveryRulePrototype::delete() in ui/include/classes/api/services/CDiscoveryRulePrototype.php.